{* Other helpers *} {function renderScheduleExtraWorkday day=[]} [`from`] [`to`] [`to`] {/function} {function renderScheduleWeekend date=''} {/function} {function fieldLocalizedType field=null} {strip} {if $field instanceof waContactBranchField} {$field_types['Branch']} {elseif $field instanceof waContactStringField && $field->getParameter('input_height') > 1} {$field_types['Text']} {else} {ifempty($field_types[$field->getType()], $field->getType())} {/if} {/strip} {/function} {function renderContactFieldsEditor _fields=[] _type='contact'} {foreach $_fields as $_field_id => $_field} {if $_type == 'address'} {$_f = $address_fields[$_field_id]} {$_format_f = ifempty($format_address_fields[$_field_id])} {else} {$_f = $contact_fields[$_field_id]} {$_format_f = ifempty($format_contact_fields[$_field_id])} {/if} {* ignore special tech fields *} {if $_field_id === 'company_contact_id'} {continue} {/if} {* Sort, used and name *} {* Required *} {* Width *} {if !empty($_format_f.type) && $_format_f.type == 'input'} {/if} {/foreach} {/function} {function renderShippingLocation _location=[]} {* Sort / used *} {* Name *} {$_location.name|default:null|escape} {* Country *} {$countries[$_location.country|default:null].name|default:null|escape} {* Region *} {if isset($_location.region)} {foreach $regions as $_region} {if $_location.country|default:null == $_region.country_iso3 && $_location.region === $_region.code} {$_region.name|escape|truncate:30:'...'} {/if} {/foreach} {/if} {* City *} {$_location.city|default:null|escape} {* Edit / Remove *} {/function} {function renderShippingNoLocations} [`No shipping areas added`] {/function} {* This template included in SettingsCheckout2.html *} {* Design block *} {function design_block settings=[]}
{* Default design style *}
[`Enable default design`]
{/function} {* Cart block *} {function cart_block settings=[]}
{* Block name *}
[`Block name`]
{* Empty cart text *}
[`Empty cart text`]
{* Change sku *}
[`SKU selection`]
[`For example, to change product properties such as color or size`]
{* Item discount *}
[`Discount information per product`]
{foreach $cart_discount_item_variants as $_id => $_variant}
{/foreach}
{* General discount *}
[`Total discount information`]
{foreach $cart_discount_general_variants as $_id => $_variant}
{/foreach}
{* Show weight *}
{/function} {* Recommendations block *} {function recommendations_block settings=[]}
[`Configure recommendations (cross-selling)`]
{* Block name *}
[`Block name`]
{/function} {* Order block *} {function order_block settings=[]}
{* Block name *}
{* Schedule mode *} {$_schedule = $checkout_config.schedule}
[`Store working schedule`]
{foreach $schedule_mode_variants as $_id => $_variant}
{$_variant.description}
{* CUSTOM MODE PARAMS *} {if shopCheckoutConfig::SCHEDULE_MODE_CUSTOM === $_id} {/if}
{/foreach}
{/function} {* Customer block *} {function customer_block settings=[]}
{* Block name *}
{* Offer login *}
{* Offer login *}
{* Customer type *}
[`Customer types`]
{foreach $customer_type_variants as $_id => $_variant}
{/foreach}
[`Persons:`]
{renderContactFieldsEditor _fields=$settings.fields_person}
{sprintf(_w('Edit contact fields in Settings app.'), "`$wa_backend_url`webasyst/settings/field/")}
[`Companies:`]
{renderContactFieldsEditor _fields=$settings.fields_company}
{sprintf(_w('Edit contact fields in Settings app.'), "`$wa_backend_url`webasyst/settings/field/")}
{* Service greement *}
{foreach $customer_service_agreement_variants as $_id => $_variant}
{/foreach}
{/function} {* Shipping block *} {function shipping_block settings=[]}
{sprintf(_w('Add and configure shipping methods '), '?action=settings#/shipping/')}
{* Block name *}
{* Courier name *}
{* Pickuppoint name *}
{* Post name *}
{* Plugin timeout *}
[`Shipping options provided by plugins which process external requests longer than specified will not be available for choice.`]
[`The update of available shipping options will be started automatically after the specified timeout once a customer has finished to enter a locality name or a ZIP code. It is advisable to use a value of 3 seconds or greater to ensure smooth checkout process.
If 0 is specified, then the update of shipping options will be started only once a customer interacts with other page elements; e.g., clicks anywhere else on the checkout page.`]
{* Checkout mode *}
[`Shipping area selection`]
{foreach $shipping_mode_variants as $_id => $_variant}
{/foreach}
{* Pickup map *}
[`Shipping option selection`]
{foreach $shipping_show_pickuppoint_map_variants as $_map_variant_id => $_map_variant} {$_is_active = false} {if $settings.show_pickuppoint_map === $_map_variant_id}{$_is_active = true}{/if}
{if !empty($_map_variant.description)} {/if}
{/foreach}
[`A small map with one pickup point will be shown by a click on an address in the pickup point selection dialog.`]
{* Adress fields *}
[`Address fields`]
{* Ask zip *}
[`ZIP code`]
{* Fake Fields. They are required because there are separate settings for them. *} {renderContactFieldsEditor _fields=$settings.address_fields _type='address'}
{sprintf(_w('Edit address fields in Settings app.'), "`$wa_backend_url`webasyst/settings/field/")}

[`Address fields provided by shipping plugins will be displayed before custom fields that you may add.`]

[`Disable address fields which are not required for all shipping options. Shipping plugins will add required address fields during checkout, if necessary. Plugin fields’ size is defined by the selected “Field width” values.`]
{* Service greement *}
{/function} {* Payment block *} {function payment_block settings=[]}
{sprintf(_w('Add and configure payment methods '), '?action=settings#/payment/')}
{* Block name *}
{/function} {* Confirmation block *} {function confirmation_block settings=[]}
{* Auto submit *}
{* Order comment *}
{* Terms *}
HTML
{* Order without auth *}
[`Customer profiles updating & auto-signup`]
{foreach $confirmation_order_without_auth_variants as $_id => $_variant}
{/foreach}

{sprintf('[`How to choose the correct option for this setting.`]', '[`https://www.shop-script.com/help/29297/in-cart-checkout/#customer-profiles-updating`]')}

{*
Проверочный код для подтверждения будет отправлен на email-адрес или телефон покупателя в зависимости от настроек авторизации для этого сайта.

После подтверждения покупатель будет авторизован и сможет войти в личный кабинет.

Покупатель может пропустить подтверждение email-адрес или телефона.
*}
{* Recode timeout *}
[`After this timeout, a customer will be able to re-request a confirmation code by email or SMS when logging in to confirm checkout completion.`]
{* Thank you header *}
{* Thank you header *}
HTML
{/function}