Add new payment and shipping parsers for various integrations
- Implemented Google Pay parser in bongooglepay.js - Added Buckaroo 3 payment parser in buckaroo3.js - Introduced DataTrans CW Mastercard parser in datatranscw.js - Created DataTrans CW Credit Card parser in datatranscw_creditcard.js - Developed DHL Assistant shipping parser in dhlassistant.js - Added Estimated Delivery parser in estimateddelivery.js - Implemented Floapay payment parser in floapay.js - Created FS Pickup at Store shipping parser in fspickupatstore.js - Developed Generic Iframe parser in generic_iframe_parser.js - Added Geodis Officiel shipping parser in geodisofficiel.js - Implemented Glob Kurier module shipping parser in globkuriermodule.js - Created Latvija Post Express Pickup Terminal parser in latvijaspastsexpresspastspostterminalslv.js - Developed LP Shipping parser in lpshipping.js - Added Mijora Venipak parser in mijoravenipak.js - Implemented Apple Pay parser in pm_applepay.js - Created Przelewy24 payment parser in przelewy24.js - Developed Pshugls shipping parser in pshugls.js - Added Redsys Insite payment parser in redsysinsite.js - Implemented Tpay payment parser in tpay.js - Updated third-party integration documentation for FedEx DotCom
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
{if $field.type == 'hidden'}
|
||||
|
||||
{block name='form_field_item_hidden'}
|
||||
<input type="hidden" class="orig-field" name="{$field.name}" value="{$field.value}">
|
||||
<input type="hidden" class="orig-field" name="{$field.name|escape:'javascript':'UTF-8'}" value="{$field.value|escape:'javascript':'UTF-8'}">
|
||||
{/block}
|
||||
|
||||
{else}
|
||||
@@ -32,7 +32,7 @@
|
||||
{assign var="passwordShallBeVisible" value=false} {* default value, which we may change below *}
|
||||
{assign var="class" value="{if (true == $field.live)} live{/if}"}
|
||||
{if $field.type === 'password' && isset($parentTplName) && $parentTplName === 'account'}
|
||||
{assign var=show_create_account_checkbox value=$ps_config.PS_GUEST_CHECKOUT_ENABLED && $tc_config->create_account_checkbox && (!$customer.is_logged || $customer.is_guest)}
|
||||
{assign var=show_create_account_checkbox value=$ps_config.PS_GUEST_CHECKOUT_ENABLED && $z_tc_config->create_account_checkbox && (!$customer.is_logged || $customer.is_guest)}
|
||||
{if $show_create_account_checkbox}
|
||||
{assign var="passwordShallBeVisible" value=(isset($opc_form_checkboxes['create-account']) && 'true' == $opc_form_checkboxes['create-account'])}
|
||||
<div id="create_account" class="form-group checkbox">
|
||||
@@ -57,21 +57,21 @@
|
||||
|
||||
{capture name="form_group_classes"}
|
||||
form-group
|
||||
{$field.name}
|
||||
{$field.name|escape:'htmlall':'UTF-8'}
|
||||
{if isset($checkoutSection) && ('invoice' === $checkoutSection || 'delivery' === $checkoutSection) && in_array($field.name, $businessFieldsList)}business-field{/if}
|
||||
{if isset($checkoutSection) && ('invoice' === $checkoutSection || 'delivery' === $checkoutSection) && in_array($field.name, $privateFieldsList)}private-field{/if}
|
||||
{if isset($checkoutSection) && ('invoice' === $checkoutSection || 'delivery' === $checkoutSection) && in_array($field.name, $businessDisabledFieldsList)}business-disabled-field{/if}
|
||||
{$field.type}
|
||||
{$field.type|escape:'htmlall':'UTF-8'}
|
||||
{if (false == $field.visible) && !($field.type === 'password' && $passwordShallBeVisible)} hidden{/if}
|
||||
{if !empty($field.errors)} has-error{/if}
|
||||
{if $field.type === 'select' && empty($field.availableValues)} hidden{/if}
|
||||
{if $field.name==='address1' && $field.value|strlen>3 && !'/\d+/'|preg_match:$field.value}missing-street-number{/if}
|
||||
{if $field.css_class} {$field.css_class}{/if}
|
||||
{if $field.name==='address1' && $field.value|strlen>3 && !preg_match('/\d+/',$field.value)}missing-street-number{/if}
|
||||
{if $field.css_class} {$field.css_class|escape:'htmlall':'UTF-8'}{/if}
|
||||
{/capture}
|
||||
|
||||
<div
|
||||
class="{$smarty.capture.form_group_classes|strip|trim}"
|
||||
style="flex-basis: {$field.width}%"
|
||||
class="{$smarty.capture.form_group_classes|strip|trim|escape:'javascript':'UTF-8'}"
|
||||
style="flex-basis: {$field.width|escape:'javascript':'UTF-8'}%"
|
||||
>
|
||||
|
||||
{if $field.type === 'radio-buttons' || $field.type === 'checkbox' || $field.type === 'date' || $field.type === 'birthday'}
|
||||
@@ -81,7 +81,7 @@
|
||||
{/if}
|
||||
|
||||
|
||||
<label class="{$effectType}{if $field.required && $field.css_class != 'need-dni'} required{/if}"
|
||||
<label class="{$effectType|escape:'javascript':'UTF-8'}{if $field.required && $field.css_class != 'need-dni'} required{/if}"
|
||||
{if $field.name==='address1'}data-missing-street-nr-notice="{l s='Missing street number?' mod='thecheckout'}"{/if}
|
||||
>
|
||||
|
||||
@@ -89,11 +89,11 @@
|
||||
{if $field.type === 'select'}
|
||||
|
||||
{block name='form_field_item_select'}
|
||||
<select class="form-control orig-field form-control-select{$class}" name="{$field.name}"
|
||||
<select class="form-control orig-field form-control-select{$class|escape:'javascript':'UTF-8'}" name="{$field.name|escape:'javascript':'UTF-8'}"
|
||||
{if $field.required}required{/if}>
|
||||
<option value disabled selected>{l s='-- please choose --' d='Shop.Forms.Labels'}</option>
|
||||
{foreach from=$field.availableValues key="value" item="label"}
|
||||
<option value="{$value}" {if $value eq $field.value} selected {/if}>{$label}</option>
|
||||
<option value="{$value|escape:'javascript':'UTF-8'}" {if $value eq $field.value} selected {/if}>{$label|escape:'htmlall':'UTF-8'}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
{/block}
|
||||
@@ -102,20 +102,20 @@
|
||||
|
||||
{block name='form_field_item_country'}
|
||||
<select
|
||||
class="form-control orig-field form-control-select js-country{$class}"
|
||||
name="{$field.name}"
|
||||
class="form-control orig-field form-control-select js-country{$class|escape:'javascript':'UTF-8'}"
|
||||
name="{$field.name|escape:'javascript':'UTF-8'}"
|
||||
{if $field.required}required{/if}
|
||||
>
|
||||
<option value disabled selected>{l s='-- please choose --' d='Shop.Forms.Labels'}</option>
|
||||
{foreach from=$field.availableValues key="option_value" item="label"}
|
||||
{if is_array($label)}
|
||||
{assign var="label_label" value=$label.label}
|
||||
{assign var="option_data" value=$label.option_data}
|
||||
{assign var="label_label" value=$label.label|escape:'javascript':'UTF-8'}
|
||||
{assign var="option_data" value=$label.option_data|escape:'javascript':'UTF-8'}
|
||||
{else}
|
||||
{assign var="label_label" value=$label}
|
||||
{assign var="option_data" value=""}
|
||||
{/if}
|
||||
<option {$option_data} value="{$option_value}" {if $option_value eq $field.value} selected {/if}>{$label_label}</option>
|
||||
<option {$option_data|escape:'javascript':'UTF-8'} value="{$option_value|escape:'javascript':'UTF-8'}" {if $option_value eq $field.value} selected {/if}>{$label_label|escape:'htmlall':'UTF-8'}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
{/block}
|
||||
@@ -124,23 +124,23 @@
|
||||
|
||||
{block name='form_field_item_radio'}
|
||||
<span class="field-label">
|
||||
{$field.label}
|
||||
{$field.label|escape:'htmlall':'UTF-8'}
|
||||
</span>
|
||||
<div class="available-values {$field.name}">
|
||||
<div class="available-values {$field.name|escape:'javascript':'UTF-8'}">
|
||||
{foreach from=$field.availableValues item="label" key="value"}
|
||||
<label class="radio-inline">
|
||||
<span class="custom-radio">
|
||||
<input
|
||||
name="{$field.name}"
|
||||
name="{$field.name|escape:'javascript':'UTF-8'}"
|
||||
type="radio"
|
||||
value="{$value}"
|
||||
value="{$value|escape:'javascript':'UTF-8'}"
|
||||
class="orig-field"
|
||||
{if $field.required}required{/if}
|
||||
{if $value eq $field.value} checked {/if}
|
||||
>
|
||||
<span></span>
|
||||
</span>
|
||||
{$label}
|
||||
{$label|escape:'htmlall':'UTF-8'}
|
||||
</label>
|
||||
{/foreach}
|
||||
</div>
|
||||
@@ -150,7 +150,7 @@
|
||||
|
||||
{block name='form_field_item_checkbox'}
|
||||
<span class="custom-checkbox">
|
||||
<input class="orig-field" name="{$field.name}" type="checkbox" value="1"
|
||||
<input class="orig-field" name="{$field.name|escape:'javascript':'UTF-8'}" type="checkbox" value="1"
|
||||
{if $field.value}checked="checked"{/if} {if $field.required}required{/if}>
|
||||
<span><i class="material-icons rtl-no-flip checkbox-checked check-icon"></i></span>
|
||||
{*
|
||||
@@ -164,11 +164,11 @@
|
||||
{elseif $field.type === 'date'}
|
||||
|
||||
{block name='form_field_item_date'}
|
||||
<input name="{$field.name}" class="form-control orig-field" type="date" value="{$field.value}"
|
||||
placeholder="{if isset($field.availableValues.placeholder)}{$field.availableValues.placeholder}{/if}">
|
||||
<input name="{$field.name|escape:'javascript':'UTF-8'}" class="form-control orig-field" type="date" value="{$field.value|escape:'javascript':'UTF-8'}"
|
||||
placeholder="{if isset($field.availableValues.placeholder)}{$field.availableValues.placeholder|escape:'javascript':'UTF-8'}{/if}">
|
||||
{if isset($field.availableValues.comment)}
|
||||
<span class="form-control-comment">
|
||||
{$field.availableValues.comment}
|
||||
{$field.availableValues.comment|escape:'htmlall':'UTF-8'}
|
||||
</span>
|
||||
{/if}
|
||||
{/block}
|
||||
@@ -176,11 +176,11 @@
|
||||
{elseif $field.type === 'birthday'}
|
||||
{block name='form_field_item_birthday'}
|
||||
<div class="js-parent-focus">
|
||||
{$field.label}
|
||||
{$field.label|escape:'htmlall':'UTF-8'}
|
||||
{html_select_date
|
||||
field_order=DMY
|
||||
time={$field.value}
|
||||
field_array={$field.name}
|
||||
time={$field.value|escape:'javascript':'UTF-8'}
|
||||
field_array={$field.name|escape:'javascript':'UTF-8'}
|
||||
prefix=false
|
||||
reverse_years=true
|
||||
field_separator='<br>'
|
||||
@@ -200,7 +200,7 @@
|
||||
{block name='form_field_item_password'}
|
||||
<input
|
||||
class="form-control orig-field"
|
||||
name="{$field.name}"
|
||||
name="{$field.name|escape:'javascript':'UTF-8'}"
|
||||
type="password"
|
||||
value=""
|
||||
pattern=".{literal}{{/literal}5,{literal}}{/literal}"
|
||||
@@ -213,7 +213,7 @@
|
||||
{else} {* standard text inputs *}
|
||||
|
||||
{if $field.name === 'birthday' && isset($field.availableValues.placeholder)}
|
||||
{assign var='placeholder' value="{$field.availableValues.placeholder}" }
|
||||
{assign var='placeholder' value="{$field.availableValues.placeholder|escape:'javascript':'UTF-8'}" }
|
||||
{else}
|
||||
{assign 'placeholder' ' '}
|
||||
{/if}
|
||||
@@ -229,27 +229,27 @@
|
||||
|
||||
{* Remove call prefix from phone number - for display purposes, if prefix is shown separately *}
|
||||
{* Part 1 *}
|
||||
{if $tc_config->show_call_prefix && ($field.name === 'phone' || $field.name === 'phone_mobile')}
|
||||
{if $z_tc_config->show_call_prefix && ($field.name === 'phone' || $field.name === 'phone_mobile')}
|
||||
{assign 'callPrefix' '+'|cat:$field.custom_data['call_prefix']}
|
||||
{$field.value = $field.value|replace:{$callPrefix}:''}
|
||||
{$field.value = $field.value|replace:{$callPrefix|escape:'javascript':'UTF-8'}:''}
|
||||
{/if}
|
||||
|
||||
{block name='form_field_item_other'}
|
||||
<input
|
||||
class="form-control orig-field{$class}"
|
||||
name="{$field.name}"
|
||||
type="{$field.type}"
|
||||
value="{$field.value}"
|
||||
placeholder="{$placeholder}"
|
||||
{if $field.autoCompleteAttribute}autocomplete="{$field.autoCompleteAttribute}"{/if}
|
||||
{if $field.maxLength}maxlength="{$field.maxLength}"{/if}
|
||||
name="{$field.name|escape:'javascript':'UTF-8'}"
|
||||
type="{$field.type|escape:'javascript':'UTF-8'}"
|
||||
value="{$field.value|escape:'htmlall':'UTF-8'}"
|
||||
placeholder="{$placeholder|escape:'javascript':'UTF-8'}"
|
||||
{if $field.autoCompleteAttribute}autocomplete="{$field.autoCompleteAttribute|escape:'javascript':'UTF-8'}"{/if}
|
||||
{if $field.maxLength}maxlength="{$field.maxLength|escape:'javascript':'UTF-8'}"{/if}
|
||||
{if $field.required}required{/if}
|
||||
>
|
||||
{/block}
|
||||
|
||||
{* Part 2, displayed after input field, due to 'modern' theme, which uses placeholder shown CSS selectors *}
|
||||
{if $tc_config->show_call_prefix && ($field.name === 'phone' || $field.name === 'phone_mobile')}
|
||||
<span class="country-call-prefix">{$callPrefix}</span>
|
||||
{if $z_tc_config->show_call_prefix && ($field.name === 'phone' || $field.name === 'phone_mobile')}
|
||||
<span class="country-call-prefix">{$callPrefix|escape:'htmlall':'UTF-8'}</span>
|
||||
{/if}
|
||||
|
||||
{/if}
|
||||
@@ -259,7 +259,7 @@
|
||||
|
||||
{if $field.type !== 'checkbox' && $field.type !== 'radio-buttons' && $field.type !== 'birthday'}
|
||||
<span class="field-label"{if !$field.required} data-optional-label="{l s='(optional)' mod='thecheckout'}"{/if}>
|
||||
{$field.label}
|
||||
{$field.label|escape:'htmlall':'UTF-8'}
|
||||
</span>
|
||||
{/if}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user