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

@@ -12,6 +12,13 @@
{block name='step_carrier'}
<style>
.delivery_option_title--highlight {
font-weight: bold !important;
color: red !important;
}
</style>
<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});
@@ -68,7 +75,7 @@
<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.name == 'DPD Pickup automaty paczkowe'} delivery_option_title--highlight{/if}">{$carrier.name}</div>
<div class="delivery_option_price">{$carrier.price}</div>
{/if}
@@ -85,7 +92,7 @@
</div>
{/if}
<div class="delivery_option_price">
<div class="delivery_option_title"><strong>{$carrier.name}</strong></div>
<div class="delivery_option_title{if $carrier.name == 'DPD Pickup automaty paczkowe'} delivery_option_title--highlight{/if}">{$carrier.name}</div>
({$carrier.price})
</div>
</div>

View File

@@ -0,0 +1,22 @@
{*
* We offer the best and most useful modules PrestaShop and modifications for your online store.
*
* We are experts and professionals in PrestaShop
*
* @author PresTeamShop.com <support@presteamshop.com>
* @copyright 2011-2017 PresTeamShop
* @license see file: LICENSE.txt
* @category PrestaShop
* @category Module
*}
{if !$register_customer}
<div id="onepagecheckoutps_step_review_container" class="{$classes|escape:'htmlall':'UTF-8'}">
<div class="loading_small"><i class="fa-pts fa-pts-spin fa-pts-refresh fa-pts-2x"></i></div>
<h5 class="onepagecheckoutps_p_step onepagecheckoutps_p_step_four">
<i class="fa-pts fa-pts-check fa-pts-2x"></i>
{l s='Order Summary' mod='onepagecheckoutps'}
</h5>
<div id="onepagecheckoutps_step_review"></div>
</div>
{/if}