Add review step template for one page checkout module

- Introduced a new template file 'review copy.tpl' for the order summary step in the one page checkout process.
- The template includes a loading indicator and a header for the order summary section.
- Conditional rendering based on customer registration status is implemented.
This commit is contained in:
2026-02-27 00:04:16 +01:00
parent 2a98067d9e
commit 3fc0519f9d
61 changed files with 11187 additions and 13 deletions

View File

@@ -9,9 +9,7 @@
* @category PrestaShop
* @category Module
*}
{block name='step_carrier'}
<script type="text/javascript">
var is_necessary_postcode = Boolean({if isset($is_necessary_postcode)}{$is_necessary_postcode}{/if});
var is_necessary_city = Boolean({if isset($is_necessary_city)}{$is_necessary_city}{/if});
@@ -62,13 +60,13 @@
--><div class="delivery_option_logo {if !$CONFIGS.OPC_SHOW_IMAGE_CARRIER && !$CONFIGS.OPC_SHOW_DESCRIPTION_CARRIER}col-xs-11 col-11{else}{if $CONFIGS.OPC_SHOW_IMAGE_CARRIER}col-xs-3 col-3{else}col-xs-4 col-4{/if}{/if}">
{if ($CONFIGS.OPC_SHOW_IMAGE_CARRIER)}
{if $carrier.logo}
<img src="{$carrier.logo}" alt="{$carrier.name}" class="img-thumbnail"/>
{else}
<img src="{$ONEPAGECHECKOUTPS_IMG}shipping.png" alt="{$carrier.name}" class="img-thumbnail"/>
{/if}
{else}
<div class="delivery_option_title">{$carrier.name}</div>
<div class="delivery_option_title{if $carrier.external_module_name == 'dpdpoland'} delivery_option_title--highlight{/if}">{$carrier.name}</div>
{/if}
{if $carrier.external_module_name != ''}
@@ -84,7 +82,7 @@
</div>
{/if}
<div class="delivery_option_price">
<div class="delivery_option_title">{$carrier.name}</div>
<div class="delivery_option_title{if $carrier.external_module_name == 'dpdpoland'} delivery_option_title--highlight{/if}">{$carrier.name}</div>
({$carrier.price})
</div>
</div>