{** * NOTICE OF LICENSE * * This source file is subject to the Software License Agreement * that is bundled with this package in the file LICENSE.txt. * * @author Peter Sliacky (Zelarg) * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) *} {extends file='page.tpl'} {block name="page_content"} {* necessary here, core's checkout.js script looks for #checkout element and binds handlers only then - setUpCheckout() *} {*
*} {*
*} {*
*} {*{debug}*}

{l s='Cart is empty' d='Shop.Notifications.Error'}

«{l s='Continue shopping' d='Shop.Theme.Actions'}
{l s='Test mode is enabled, only you can see The Checkout module active.' mod='thecheckout'}
{l s='OK, close' mod='thecheckout'}
{assign 'k' 1} {function blockContainer} {foreach $data as $key=>$sub_block} {if "blocks" === $key}
{foreach $sub_block as $checkout_block} {foreach $checkout_block as $blockName=>$classes} {if !in_array($blockName, $excludeBlocks)}
{if "cart-summary" == $blockName} {*cart-summary block loaded via Ajax, display dummy container only*}
{l s='Shopping Cart' d='Shop.Theme.Checkout'}
{include file='module:thecheckout/views/templates/front/_partials/blocks-loader.tpl'}
{/if} {if "login-form" == $blockName} {*won't be set in front.php for logged-in customers*} {include file='module:thecheckout/views/templates/front/blocks/login-form.tpl'} {/if} {if "account" == $blockName} {include file='module:thecheckout/views/templates/front/blocks/account.tpl'} {/if} {if "address-invoice" == $blockName} {include file='module:thecheckout/views/templates/front/blocks/address-invoice.tpl'} {/if} {if "address-delivery" == $blockName} {include file='module:thecheckout/views/templates/front/blocks/address-delivery.tpl'} {/if} {if "shipping" == $blockName} {*shipping block loaded via Ajax, display dummy container only*}
{l s='Shipping Method' d='Shop.Theme.Checkout'}
{include file='module:thecheckout/views/templates/front/_partials/blocks-loader.tpl'} {/if} {if "payment" == $blockName}
{*payment block loaded via Ajax, display dummy container only*}
{l s='Payment method' d='Shop.Theme.Checkout'}
{include file='module:thecheckout/views/templates/front/_partials/blocks-loader.tpl'}
{/if} {if "order-message" == $blockName} {include file='module:thecheckout/views/templates/front/blocks/order-message.tpl'} {/if} {if "confirm" == $blockName} {include file='module:thecheckout/views/templates/front/blocks/confirm.tpl'} {/if} {if "html-box-1" == $blockName} {$z_tc_config->html_box_1 nofilter} {/if} {if "html-box-2" == $blockName} {$z_tc_config->html_box_2 nofilter} {/if} {if "html-box-3" == $blockName} {$z_tc_config->html_box_3 nofilter} {/if} {if "html-box-4" == $blockName} {$z_tc_config->html_box_4 nofilter} {/if} {if "required-checkbox-1" == $blockName && isset($separateModuleFields['thecheckout_required-checkbox-1'])} {/if} {if "required-checkbox-2" == $blockName && isset($separateModuleFields['thecheckout_required-checkbox-2'])} {/if} {if "newsletter" == $blockName && isset($separateModuleFields['ps_emailsubscription_newsletter'])} {/if} {if "psgdpr" == $blockName && isset($separateModuleFields['psgdpr_psgdpr'])} {/if} {if "data-privacy" == $blockName && isset($separateModuleFields['ps_dataprivacy_customer_privacy'])} {/if}
{/if} {/foreach} {/foreach}
{elseif "size" === $key} {*intentionally empty*} {else} {if 0 === strpos($key,'flex-split')}
{/if} {blockContainer data=$sub_block} {if 0 === strpos($key,'flex-split')}
{/if} {/if} {/foreach} {/function} {function step} {if $z_tc_config->step_label_{$stepId|escape:'javascript':'UTF-8'}|trim} {* {assign number_of_steps $stepId scope='root'}*}
{$z_tc_config->step_label_{$stepId|escape:'javascript':'UTF-8'}|escape:'javascript':'UTF-8'}
{assign var=blocksArr value=","|explode:$z_tc_config->step_blocks_{$stepId|escape:'javascript':'UTF-8'}} {* Blocks: {$z_tc_config->step_blocks_{$stepId}}*} {* Blocks array: {$blocksArr|print_r}*} {/if} {/function} {function steps} {if $z_tc_config->checkout_steps}
{step stepId=1} {step stepId=2} {step stepId=3} {step stepId=4}
{/if} {/function} {function steps_prev_next} {if $z_tc_config->checkout_steps}
{/if} {/function}
{steps} {blockContainer data=$blocksLayout} {* This element will be added by JS script as overlay on binary payment methods *} {* This element is artificaly created, as "parent" element for calling prepareConfirmation *}
{steps_prev_next} {/block}