forked from PrestaShop/PrestaShop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optional final checkout summary before payment
- Loading branch information
Showing
8 changed files
with
150 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
themes/classic/templates/checkout/_partials/order-confirmation-table.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
themes/classic/templates/checkout/_partials/order-final-summary-table.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{extends file='checkout/_partials/order-confirmation-table.tpl'} | ||
|
||
{block name='order-items-table-head'} | ||
<div id="order-items" class="col-md-12"> | ||
<h3 class="card-title h3"> | ||
{if $products_count == 1} | ||
{l s='%s item in your cart' sprintf=$products_count d='Shop.Theme.Checkout'} | ||
{else} | ||
{l s='%s items in your cart' sprintf=$products_count d='Shop.Theme.Checkout'} | ||
{/if} | ||
<a href="{url entity=cart params=['action' => 'show']}"><span class="step-edit"><i class="material-icons edit">mode_edit</i> edit</span></a> | ||
</h3> | ||
{/block} |
78 changes: 78 additions & 0 deletions
78
themes/classic/templates/checkout/_partials/order-final-summary.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<section id="order-summary-content" class="page-content page-order-confirmation"> | ||
<div class="row"> | ||
<div class="col-md-12"> | ||
<h4 class="h4 black">{l s='Please check your order before payment' d='Shop.Theme.Checkout'}</h4> | ||
</div> | ||
</div> | ||
|
||
<div class="row"> | ||
<div class="col-md-12"> | ||
<h4 class="h4"> | ||
{l s='Addresses' d='Shop.Theme.Checkout'} | ||
<span class="step-edit step-to-addresses"><i class="material-icons edit">mode_edit</i> edit</span> | ||
</h4> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-md-6"> | ||
<div class="card noshadow"> | ||
<div class="card-block"> | ||
<h4 class="h4 black addresshead">{l s='My Delivery Address' d='Shop.Theme.Checkout'}</h4> | ||
{$customer.addresses[$cart.id_address_delivery]['formatted'] nofilter} | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-md-6"> | ||
<div class="card noshadow"> | ||
<div class="card-block"> | ||
<h4 class="h4 black addresshead">{l s='My Invoice Address' d='Shop.Theme.Checkout'}</h4> | ||
{$customer.addresses[$cart.id_address_invoice]['formatted'] nofilter} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="row"> | ||
<div class="col-md-12"> | ||
<h4 class="h4"> | ||
{l s='Shipping Method' d='Shop.Theme.Checkout'} | ||
<span class="step-edit step-to-delivery"><i class="material-icons edit">mode_edit</i> edit</span> | ||
</h4> | ||
|
||
<div class="col-md-12"> | ||
<div class="row"> | ||
<div class="col-md-2"> | ||
<div class="logo-container"> | ||
{if $selected_delivery_option.logo} | ||
<img src="{$selected_delivery_option.logo}" alt="{$selected_delivery_option.name}"> | ||
{else} | ||
| ||
{/if} | ||
</div> | ||
</div> | ||
<div class="col-md-4"> | ||
<span class="carrier-name">{$selected_delivery_option.name}</span> | ||
</div> | ||
<div class="col-md-4"> | ||
<span class="carrier-delay">{$selected_delivery_option.delay}</span> | ||
</div> | ||
<div class="col-md-2"> | ||
<span class="carrier-price">{$selected_delivery_option.price}</span> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="row"> | ||
{block name='order_confirmation_table'} | ||
{include file='checkout/_partials/order-final-summary-table.tpl' | ||
products=$cart.products | ||
products_count=$cart.products_count | ||
subtotals=$cart.subtotals | ||
totals=$cart.totals | ||
labels=$cart.labels | ||
} | ||
{/block} | ||
</div> | ||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters