What's New
Viewing 17 posts - 1 through 17 (of 17 total)
Viewing 17 posts - 1 through 17 (of 17 total)
You must be logged in to reply to this topic.
hello, i want your help,
i have a problem in easy checkout when i enable type of customer,
when i choose individual and complete the adress data,
when i push the button to place the order displays an error message to complete the address,
i dont understand why all the needed data is completed,
can you help me?
Thanks so much for reportting the problem.
It’s not a bug of the “Type of customer” feature, it’s a problem of the error message.
The error message should be “Please save this address first”, not “Please complete address information”. I’ve improved that for you.
Things are different for logged in customers and guests. For logged in customers, they have to save addresses first, and then they can checkout. For guests, they can check as long as they fill in address forms correctly, no need to save addresses.
You need to do two changes.
1. Replace this code in the \modules\steasycheckout\views\templates\hook\_partials\address-form.tpl file
$field_name_temp=='company' || $field_name_temp=='vat_number'
with
$field_name_temp=='company' || $field_name_temp=='vat_number' || $field_name_temp=='dni' || $field_name_temp=='other'
I guess the DNI and the Other aren’t mandatory fields.
so you need to change this code {if $is_p_or_c && !$field[‘value’]}{$is_p_or_c=0}{/if} to be {if ($field_name_temp==’company’ || $field_name_temp==’vat_number’) && $is_p_or_c && !$field[‘value’]}{$is_p_or_c=0}{/if}
2. Replace this code in the \modules\steasycheckout\views\js\front.js file
.st_form_item_company, .st_form_item_vat_number
with
.st_form_item_company, .st_form_item_vat_number, .st_form_item_dni, .st_form_item_other
BTW your site looks nice, can I add it to the showcase page https://www.sunnytoo.com/showcase
You must be logged in to reply to this topic.