feat(main): Add base theme: This is the falcon theme out of the box.
This is falcon v3.1.2
This commit is contained in:
48
falcon/templates/checkout/_partials/address-form.tpl
Normal file
48
falcon/templates/checkout/_partials/address-form.tpl
Normal file
@ -0,0 +1,48 @@
|
||||
{extends file='customer/_partials/address-form.tpl'}
|
||||
|
||||
{block name='form_field'}
|
||||
{if $field.name eq "alias" and $customer.is_guest}
|
||||
{* we don't ask for alias here if customer is not registered *}
|
||||
{else}
|
||||
{$smarty.block.parent}
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
{block name="address_form_url"}
|
||||
<form
|
||||
method="POST"
|
||||
action="{url entity='order' params=['id_address' => $id_address]}"
|
||||
data-id-address="{$id_address}"
|
||||
data-refresh-url="{url entity='order' params=['ajax' => 1, 'action' => 'addressForm']}"
|
||||
>
|
||||
{/block}
|
||||
|
||||
{block name='form_fields' append}
|
||||
<input type="hidden" name="saveAddress" value="{$type}">
|
||||
{if $type === "delivery"}
|
||||
<div class="custom-control custom-checkbox">
|
||||
<input name="use_same_address" type="checkbox" value="1" id="use_same_address"
|
||||
class="custom-control-input" value="1" {if $use_same_address} checked {/if}>
|
||||
<label class="custom-control-label" for="use_same_address">{l s='Use this address for invoice too' d='Shop.Theme.Checkout'}</label>
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
{block name='form_buttons'}
|
||||
{if !$form_has_continue_button}
|
||||
<div class="d-flex align-items-center justify-content-end">
|
||||
<a class="js-cancel-address cancel-address btn btn-link mr-auto" href="{url entity='order' params=['cancelAddress' => {$type}]}">{l s='Cancel' d='Shop.Theme.Actions'}</a>
|
||||
<button type="submit" class="btn btn-primary">{l s='Save' d='Shop.Theme.Actions'}</button>
|
||||
</div>
|
||||
|
||||
{else}
|
||||
<div class="d-flex align-items-center justify-content-end">
|
||||
{if $customer.addresses|count > 0}
|
||||
<a class="js-cancel-address cancel-address btn btn-link mr-auto" href="{url entity='order' params=['cancelAddress' => {$type}]}">{l s='Cancel' d='Shop.Theme.Actions'}</a>
|
||||
{/if}
|
||||
<button type="submit" class="continue btn btn-primary" name="confirm-addresses" value="1">
|
||||
{l s='Continue' d='Shop.Theme.Actions'}
|
||||
</button>
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
@ -0,0 +1,63 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
{block name='address_selector_blocks'}
|
||||
{foreach $addresses as $address}
|
||||
<article
|
||||
class="js-address-item address-item col-12 col-md-6 mb-3 checkout-option-block address-selector-block {if $address.id == $selected} selected{/if}"
|
||||
id="{$name|classname}-address-{$address.id}">
|
||||
<input type="radio" name="{$name}" value="{$address.id}" id="r-{$name|classname}-address-{$address.id}"
|
||||
class="custom-control-input" {if $address.id == $selected}checked{/if}>
|
||||
<label for="r-{$name|classname}-address-{$address.id}" class="card mb-0 cursor-pointer h-100">
|
||||
<div class="address__header card-header h5">
|
||||
{$address.alias}
|
||||
</div>
|
||||
<div class="card-body address__body">
|
||||
{$address.formatted nofilter}
|
||||
</div>
|
||||
{if $interactive}
|
||||
<div class="address__footer card-footer small">
|
||||
|
||||
<a class="edit-address d-flex justify-content-center align-items-center" data-link-action="edit-address"
|
||||
href="{url entity='order' params=['id_address' => $address.id, 'editAddress' => $type, 'token' => $token]}">
|
||||
<i class="material-icons mr-1"></i>{l s='Edit' d='Shop.Theme.Actions'}
|
||||
</a>
|
||||
<a class="delete-address d-flex justify-content-center align-items-center" data-link-action="delete-address"
|
||||
href="{url entity='order' params=['id_address' => $address.id, 'deleteAddress' => true, 'token' => $token]}">
|
||||
<i class="material-icons mr-1"></i>{l s='Delete' d='Shop.Theme.Actions'}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
{/if}
|
||||
|
||||
</label>
|
||||
</article>
|
||||
{/foreach}
|
||||
{if $interactive}
|
||||
<p>
|
||||
<button class="ps-hidden-by-js form-control-submit center-block"
|
||||
type="submit">{l s='Save' d='Shop.Theme.Actions'}</button>
|
||||
</p>
|
||||
{/if}
|
||||
{/block}
|
||||
@ -0,0 +1,45 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
{block name='cart_detailed_actions'}
|
||||
<div class="checkout cart-detailed-actions js-cart-detailed-actions card-block">
|
||||
{if $cart.minimalPurchaseRequired}
|
||||
<div class="alert alert-warning" role="alert">
|
||||
{$cart.minimalPurchaseRequired}
|
||||
</div>
|
||||
<div class="text-sm-center">
|
||||
<button type="button" class="btn btn-primary disabled" disabled>{l s='Proceed to checkout' d='Shop.Theme.Actions'}</button>
|
||||
</div>
|
||||
{elseif empty($cart.products) }
|
||||
<div class="text-sm-center">
|
||||
<button type="button" class="btn btn-primary disabled" disabled>{l s='Proceed to checkout' d='Shop.Theme.Actions'}</button>
|
||||
</div>
|
||||
{else}
|
||||
<div class="text-sm-center">
|
||||
<a href="{$urls.pages.order}" class="btn btn-primary">{l s='Proceed to checkout' d='Shop.Theme.Actions'}</a>
|
||||
{hook h='displayExpressCheckout'}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{/block}
|
||||
@ -0,0 +1,167 @@
|
||||
{**
|
||||
* 2007-2017 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2017 PrestaShop SA
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
<div class="product-line-grid">
|
||||
<div class="product-line-grid__row">
|
||||
<div class="product-line-grid__block product-line-grid__block--image">
|
||||
{images_block webpEnabled=$webpEnabled}
|
||||
<img
|
||||
{generateImagesSources image=$product.default_image size='cart_default' lazyload=false}
|
||||
alt="{$product.name|escape:'quotes'}"
|
||||
class="img-fluid rounded"
|
||||
width="{$product.default_image.bySize.cart_default.width}"
|
||||
height="{$product.default_image.bySize.cart_default.height}">
|
||||
{/images_block}
|
||||
</div>
|
||||
<div class="product-line-grid__block product-line-grid__block--prod">
|
||||
<p class="h6 product-line-grid__title mb-2">
|
||||
<a class="text-reset" href="{$product.url}" data-id_customization="{$product.id_customization|intval}">
|
||||
{$product.name}
|
||||
</a>
|
||||
</p>
|
||||
|
||||
{if $product.attributes}
|
||||
<ul class="mb-2">
|
||||
{foreach from=$product.attributes key="attribute" item="value"}
|
||||
<li class="text-muted small">
|
||||
<span>{$attribute}:</span>
|
||||
<span class="font-weight-bold">{$value}</span>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
|
||||
<div class="product-line-info product-price{if $product.has_discount} has-discount{/if}">
|
||||
<div class="current-price">
|
||||
{if $product.has_discount}
|
||||
<span class="price price--regular mr-1">{$product.regular_price}</span>
|
||||
{/if}
|
||||
<span
|
||||
class="current-price-display price{if $product.has_discount} current-price-discount{/if}">{$product.price}</span>
|
||||
{if $product.unit_price_full}
|
||||
<div class="unit-price-cart">{$product.unit_price_full}</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
{hook h='displayProductPriceBlock' product=$product type="unit_price"}
|
||||
</div>
|
||||
{* end product-price *}
|
||||
{if is_array($product.customizations) && $product.customizations|count}
|
||||
{block name='cart_detailed_product_line_customization'}
|
||||
<div class="mt-3">
|
||||
{foreach from=$product.customizations item="customization"}
|
||||
<a href="#" data-toggle="modal"
|
||||
data-target="#product-customizations-modal-{$customization.id_customization}">{l s='Product customization' d='Shop.Theme.Catalog'}</a>
|
||||
<div class="modal fade customization-modal js-customization-modal" id="product-customizations-modal-{$customization.id_customization}"
|
||||
tabindex="-1" role="dialog" aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title">{l s='Product customization' d='Shop.Theme.Catalog'}</h4>
|
||||
<button type="button" class="close" data-dismiss="modal"
|
||||
aria-label="{l s='Close' d='Shop.Theme.Global'}">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
{foreach from=$customization.fields item="field"}
|
||||
<div class="product-customization-line row">
|
||||
<div class="col-sm-3 col-4 label">
|
||||
{$field.label}
|
||||
</div>
|
||||
<div class="col-sm-9 col-8 value">
|
||||
{if $field.type == 'text'}
|
||||
{if (int)$field.id_module}
|
||||
{$field.text nofilter}
|
||||
{else}
|
||||
{$field.text}
|
||||
{/if}
|
||||
{elseif $field.type == 'image'}
|
||||
<img src="{$field.image.small.url}">
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
{/block}
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<div class="product-line-grid__block product-line-grid__block--qty">
|
||||
{if !empty($product.is_gift)}
|
||||
<span class="gift-quantity">{$product.quantity}</span>
|
||||
{else}
|
||||
<div>
|
||||
<input
|
||||
class="js-cart-line-product-quantity input-touchspin"
|
||||
data-down-url="{$product.down_quantity_url}"
|
||||
data-up-url="{$product.up_quantity_url}"
|
||||
data-update-url="{$product.update_quantity_url}"
|
||||
data-product-id="{$product.id_product}"
|
||||
type="number"
|
||||
inputmode="numeric"
|
||||
pattern="[0-9]*"
|
||||
value="{$product.quantity}"
|
||||
name="product-quantity-spin"
|
||||
min="{$product.minimal_quantity}"
|
||||
aria-label="{l s='%productName% product quantity field' sprintf=['%productName%' => $product.name] d='Shop.Theme.Checkout'}"
|
||||
/>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<div class="product-line-grid__block product-line-grid__block--total">
|
||||
<span class="product-price">
|
||||
{if !empty($product.is_gift)}
|
||||
<span class="gift">{l s='Gift' d='Shop.Theme.Checkout'}</span>
|
||||
{else}
|
||||
<span class="price">
|
||||
{$product.total}
|
||||
</span>
|
||||
{/if}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="product-line-grid__block product-line-grid__block--delete">
|
||||
{if empty($product.is_gift)}
|
||||
<a class="remove-from-cart text-danger" rel="nofollow" href="{$product.remove_from_cart_url}"
|
||||
data-link-action="delete-from-cart" data-id-product="{$product.id_product|escape:'javascript'}"
|
||||
data-id-product-attribute="{$product.id_product_attribute|escape:'javascript'}"
|
||||
data-id-customization="{$product.id_customization|default|escape:'javascript'}">
|
||||
<span class="material-icons font-reset">delete</span>
|
||||
</a>
|
||||
{/if}
|
||||
|
||||
{block name='hook_cart_extra_product_actions'}
|
||||
{hook h='displayCartExtraProductActions' product=$product}
|
||||
{/block}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
53
falcon/templates/checkout/_partials/cart-detailed-totals.tpl
Normal file
53
falcon/templates/checkout/_partials/cart-detailed-totals.tpl
Normal file
@ -0,0 +1,53 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
{block name='cart_detailed_totals'}
|
||||
<div class="cart-detailed-totals js-cart-detailed-totals">
|
||||
|
||||
{foreach from=$cart.subtotals item="subtotal"}
|
||||
{if $subtotal && $subtotal.value|count_characters > 0 && $subtotal.type !== 'tax'}
|
||||
<div class="cart-summary-line" id="cart-subtotal-{$subtotal.type}">
|
||||
<span class="label">
|
||||
{$subtotal.label}
|
||||
</span>
|
||||
<span class="value">
|
||||
{if 'discount' == $subtotal.type}- {/if}{$subtotal.value}
|
||||
{if $subtotal.type === 'shipping'}
|
||||
<small class="value d-block">{hook h='displayCheckoutSubtotalDetails' subtotal=$subtotal}</small>
|
||||
{/if}
|
||||
</span>
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
{block name='cart_summary_totals'}
|
||||
{include file='checkout/_partials/cart-summary-totals.tpl' cart=$cart}
|
||||
{/block}
|
||||
|
||||
{block name='cart_voucher'}
|
||||
{include file='checkout/_partials/cart-voucher.tpl'}
|
||||
{/block}
|
||||
|
||||
</div>
|
||||
{/block}
|
||||
41
falcon/templates/checkout/_partials/cart-detailed.tpl
Normal file
41
falcon/templates/checkout/_partials/cart-detailed.tpl
Normal file
@ -0,0 +1,41 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
{block name='cart_detailed_product'}
|
||||
<div class="cart-overview card-body js-cart position-relative" data-refresh-url="{url entity='cart' params=['ajax' => true, 'action' => 'refresh']}">
|
||||
<div class="cart-loader"><div class="spinner-border text-primary" role="status"><span class="sr-only">{l s='Loading...' d='Shop.Theme.Global'}</span></div></div>
|
||||
{if $cart.products}
|
||||
<div class="cart-items">
|
||||
{foreach from=$cart.products item=product}
|
||||
{block name='cart_detailed_product_line'}
|
||||
{include file='checkout/_partials/cart-detailed-product-line.tpl' product=$product}
|
||||
{/block}
|
||||
{if is_array($product.customizations) && $product.customizations|count >1}<hr>{/if}
|
||||
{/foreach}
|
||||
</div>
|
||||
{else}
|
||||
<span class="no-items">{l s='There are no more items in your cart' d='Shop.Theme.Checkout'}</span>
|
||||
{/if}
|
||||
</div>
|
||||
{/block}
|
||||
@ -0,0 +1,30 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
{block name='cart_summary_items_subtotal'}
|
||||
<div class="card-block cart-summary-line cart-summary-items-subtotal clearfix" id="items-subtotal">
|
||||
<span class="label">{$cart.summary_string}</span>
|
||||
<span class="value">{$cart.subtotals.products.amount}</span>
|
||||
</div>
|
||||
{/block}
|
||||
@ -0,0 +1,64 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
{block name='cart_summary_product_line'}
|
||||
<div class="cart-products">
|
||||
<div class="cart-products__thumb">
|
||||
{images_block webpEnabled=$webpEnabled}
|
||||
<img
|
||||
{if $product.default_image}
|
||||
{generateImagesSources image=$product.default_image size='cart_default' lazyload=false}
|
||||
{else}
|
||||
src="{$urls.no_picture_image.bySize.cart_default.url}"
|
||||
{/if}
|
||||
alt="{$product.name|escape:'quotes'}"
|
||||
class="img-fluid rounded"
|
||||
width="{$product.default_image.bySize.cart_default.width}"
|
||||
height="{$product.default_image.bySize.cart_default.height}">
|
||||
{/images_block}
|
||||
</div>
|
||||
<div class="cart-products__desc">
|
||||
<p class="h6 mb-2 font-sm">
|
||||
<span class="text-muted">{$product.quantity}x</span> {$product.name}
|
||||
</p>
|
||||
|
||||
<ul class="mb-2">
|
||||
<li class="text-muted small">
|
||||
<span>{l s='Quantity' d='Shop.Theme.Catalog'}:</span>
|
||||
<span class="font-weight-bold">{$product.quantity}</span>
|
||||
</li>
|
||||
{foreach from=$product.attributes key="attribute" item="value"}
|
||||
<li class="text-muted small">
|
||||
<span>{$attribute}:</span>
|
||||
<span class="font-weight-bold">{$value}</span>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
|
||||
<span class="price price--sm">
|
||||
{$product.price}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
@ -0,0 +1,34 @@
|
||||
{**
|
||||
* 2007-2020 PrestaShop SA and Contributors
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to https://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2020 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
<div class="cart-summary-products js-cart-summary-products">
|
||||
{block name='cart_summary_product_list'}
|
||||
<div id="cart-summary-product-list">
|
||||
{foreach from=$cart.products item=product}
|
||||
{include file='checkout/_partials/cart-summary-product-line.tpl' product=$product}
|
||||
{/foreach}
|
||||
</div>
|
||||
{/block}
|
||||
</div>
|
||||
@ -0,0 +1,41 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
{foreach from=$cart.subtotals item="subtotal"}
|
||||
{if $subtotal && $subtotal.value|count_characters > 0 && $subtotal.type !== 'tax'}
|
||||
<div class="cart-summary-line cart-summary-subtotals" id="cart-subtotal-{$subtotal.type}">
|
||||
|
||||
<span class="label">
|
||||
{$subtotal.label}
|
||||
</span>
|
||||
|
||||
<span class="value">
|
||||
{if 'discount' == $subtotal.type}- {/if}{$subtotal.value}
|
||||
</span>
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
|
||||
28
falcon/templates/checkout/_partials/cart-summary-top.tpl
Normal file
28
falcon/templates/checkout/_partials/cart-summary-top.tpl
Normal file
@ -0,0 +1,28 @@
|
||||
{**
|
||||
* 2007-2020 PrestaShop SA and Contributors
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to https://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2020 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
<div class="cart-summary-top">
|
||||
{hook h='displayCheckoutSummaryTop'}
|
||||
</div>
|
||||
52
falcon/templates/checkout/_partials/cart-summary-totals.tpl
Normal file
52
falcon/templates/checkout/_partials/cart-summary-totals.tpl
Normal file
@ -0,0 +1,52 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
{block name='cart_summary_total'}
|
||||
{if !$configuration.display_prices_tax_incl && $configuration.taxes_enabled}
|
||||
<div class="cart-summary-line">
|
||||
<span class="label">{$cart.totals.total.label} {$cart.labels.tax_short}</span>
|
||||
<span class="value">{$cart.totals.total.value}</span>
|
||||
</div>
|
||||
<div class="cart-summary-line cart-total">
|
||||
<span class="label">{$cart.totals.total_including_tax.label}</span>
|
||||
<span class="value">{$cart.totals.total_including_tax.value}</span>
|
||||
</div>
|
||||
{else}
|
||||
<div class="cart-summary-line cart-total">
|
||||
<span class="label">{$cart.totals.total.label} {if $configuration.display_taxes_label && $configuration.taxes_enabled}{$cart.labels.tax_short}{/if}</span>
|
||||
<span class="value">{$cart.totals.total.value}</span>
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
{block name='cart_summary_tax'}
|
||||
{if $cart.subtotals.tax}
|
||||
<div class="cart-summary-line">
|
||||
<span class="label sub">{l s='%label%:' sprintf=['%label%' => $cart.subtotals.tax.label] d='Shop.Theme.Global'}</span>
|
||||
<span class="value sub">{$cart.subtotals.tax.value}</span>
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
55
falcon/templates/checkout/_partials/cart-summary.tpl
Normal file
55
falcon/templates/checkout/_partials/cart-summary.tpl
Normal file
@ -0,0 +1,55 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
<section id="js-checkout-summary" class="card js-cart" data-refresh-url="{$urls.pages.cart}?ajax=1&action=refresh">
|
||||
|
||||
<div class="card-header">
|
||||
<p class="card-title mb-0 h4">
|
||||
{l s='Summary' d='Shop.Istheme'}
|
||||
</p>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
{block name='hook_checkout_summary_top'}
|
||||
{include file='checkout/_partials/cart-summary-top.tpl' cart=$cart}
|
||||
{/block}
|
||||
|
||||
{block name='cart_summary_products'}
|
||||
{include file='checkout/_partials/cart-summary-products.tpl' cart=$cart}
|
||||
{/block}
|
||||
|
||||
{block name='cart_summary_subtotals'}
|
||||
{include file='checkout/_partials/cart-summary-subtotals.tpl' cart=$cart}
|
||||
{/block}
|
||||
|
||||
{block name='cart_summary_totals'}
|
||||
{include file='checkout/_partials/cart-summary-totals.tpl' cart=$cart}
|
||||
{/block}
|
||||
|
||||
{block name='cart_summary_voucher'}
|
||||
{include file='checkout/_partials/cart-voucher.tpl'}
|
||||
{/block}
|
||||
</div>
|
||||
|
||||
|
||||
</section>
|
||||
96
falcon/templates/checkout/_partials/cart-voucher.tpl
Normal file
96
falcon/templates/checkout/_partials/cart-voucher.tpl
Normal file
@ -0,0 +1,96 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
{if $cart.vouchers.allowed}
|
||||
{block name='cart_voucher'}
|
||||
<div class="block-promo">
|
||||
<div class="cart-voucher js-cart-voucher">
|
||||
{if $cart.vouchers.added}
|
||||
{block name='cart_voucher_list'}
|
||||
<ul class="promo-name card-block">
|
||||
{foreach from=$cart.vouchers.added item=voucher}
|
||||
<li class="cart-summary-line">
|
||||
<span class="label">{$voucher.name}</span>
|
||||
<div class="value d-inline-flex align-items-center">
|
||||
<span>{$voucher.reduction_formatted}</span>
|
||||
{if isset($voucher.code) && $voucher.code !== ''}
|
||||
<a href="{$voucher.delete_url}" data-link-action="remove-voucher" class="text-danger ml-1">
|
||||
<span class="material-icons font-reset btn-icon">delete</span>
|
||||
</a>
|
||||
{/if}
|
||||
</div>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/block}
|
||||
{/if}
|
||||
|
||||
<p class="h6 mb-2">
|
||||
{l s='Have a promo code?' d='Shop.Theme.Checkout'}
|
||||
</p>
|
||||
|
||||
<div id="promo-code">
|
||||
<div class="promo-code">
|
||||
{block name='cart_voucher_form'}
|
||||
<form action="{$urls.pages.cart}" data-link-action="add-voucher" method="post">
|
||||
<input type="hidden" name="token" value="{$static_token}">
|
||||
<input type="hidden" name="addDiscount" value="1">
|
||||
|
||||
<div class="input-group js-parent-focus">
|
||||
<input class="promo-input form-control js-child-focus" type="text" name="discount_name" placeholder="{l s='Promo code' d='Shop.Theme.Checkout'}">
|
||||
<span class="input-group-append">
|
||||
<button type="submit" class="btn btn-primary">
|
||||
{l s='Add' d='Shop.Theme.Actions'}
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
</form>
|
||||
{/block}
|
||||
|
||||
{block name='cart_voucher_notifications'}
|
||||
<div class="alert alert-danger js-error mt-2" role="alert" style="display:none;">
|
||||
<span class="js-error-text"></span>
|
||||
</div>
|
||||
{/block}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{if $cart.discounts|count > 0}
|
||||
<p class="block-promo promo-highlighted h6 mb-1 mt-3">
|
||||
{l s='Take advantage of our exclusive offers:' d='Shop.Theme.Actions'}
|
||||
</p>
|
||||
<ul class="js-discount card-block promo-discounts mb-0">
|
||||
{foreach from=$cart.discounts item=discount}
|
||||
<li class="cart-summary-line">
|
||||
<span class="label">
|
||||
<a href="#" class="js-code font-weight-bold">{$discount.code}</a> - {$discount.name}
|
||||
</span>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
{/if}
|
||||
68
falcon/templates/checkout/_partials/customer-form.tpl
Normal file
68
falcon/templates/checkout/_partials/customer-form.tpl
Normal file
@ -0,0 +1,68 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
{extends "customer/_partials/customer-form.tpl"}
|
||||
|
||||
{block "form_field"}
|
||||
{if $field.name === 'password' and $guest_allowed}
|
||||
<p class="form-informations">
|
||||
<span class="font-weight-bold form-informations-title">
|
||||
{l s='Create an account' d='Shop.Theme.Checkout'}
|
||||
</span>
|
||||
<span class="font-italic form-informations-option">
|
||||
{l s='(optional)' d='Shop.Theme.Checkout'}
|
||||
</span>
|
||||
<br>
|
||||
<span class="text-muted form-informations-subtitle">
|
||||
{l s='And save time on your next order!' d='Shop.Theme.Checkout'}
|
||||
</span>
|
||||
</p>
|
||||
{$smarty.block.parent}
|
||||
{else}
|
||||
{$smarty.block.parent}
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
{block "form_buttons"}
|
||||
<div class="text-right">
|
||||
<button
|
||||
class="continue btn btn-primary d-none d-md-inline-block"
|
||||
name="continue"
|
||||
data-link-action="register-new-customer"
|
||||
type="submit"
|
||||
value="1"
|
||||
>
|
||||
{l s='Continue' d='Shop.Theme.Actions'}
|
||||
</button>
|
||||
<button
|
||||
class="continue btn btn-primary btn-block d-block d-md-none"
|
||||
name="continue"
|
||||
data-link-action="register-new-customer"
|
||||
type="submit"
|
||||
value="1"
|
||||
>
|
||||
{l s='Continue' d='Shop.Theme.Actions'}
|
||||
</button>
|
||||
</div>
|
||||
{/block}
|
||||
46
falcon/templates/checkout/_partials/footer.tpl
Normal file
46
falcon/templates/checkout/_partials/footer.tpl
Normal file
@ -0,0 +1,46 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
<div class="modal fade js-checkout-modal" id="checkout-modal">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="{l s='Close' d='Shop.Theme.Global'}">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="js-modal-content"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{if $tos_cms != false}
|
||||
<div class="py-3 text-center mt-3">
|
||||
<span class="d-block js-terms">{$tos_cms nofilter}</span>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
55
falcon/templates/checkout/_partials/header.tpl
Normal file
55
falcon/templates/checkout/_partials/header.tpl
Normal file
@ -0,0 +1,55 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
{block name='header_nav'}
|
||||
<nav class="header-nav py-2">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col text-md-left text-center">
|
||||
<a href="{$urls.base_url}">
|
||||
{images_block webpEnabled=$webpEnabled}
|
||||
<img
|
||||
{if !empty($shop.logo_details)}
|
||||
src="{$shop.logo_details.src}"
|
||||
width="{$shop.logo_details.width}"
|
||||
height="{$shop.logo_details.height}"
|
||||
{else}
|
||||
src="{$shop.logo}"
|
||||
{/if}
|
||||
class="logo img-fluid"
|
||||
alt="{$shop.name} {l s='logo' d='Shop.Theme.Global'}">
|
||||
{/images_block}
|
||||
</a>
|
||||
</div>
|
||||
<div class="col d-none d-md-block text-right">
|
||||
{hook h='displayNav1'}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
{/block}
|
||||
|
||||
{block name='header_top'}
|
||||
{/block}
|
||||
48
falcon/templates/checkout/_partials/login-form.tpl
Normal file
48
falcon/templates/checkout/_partials/login-form.tpl
Normal file
@ -0,0 +1,48 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
{extends file='customer/_partials/login-form.tpl'}
|
||||
|
||||
{block name='form_buttons'}
|
||||
<div class="text-right">
|
||||
<button
|
||||
class="continue btn btn-primary d-none d-md-inline-block"
|
||||
name="continue"
|
||||
data-link-action="sign-in"
|
||||
type="submit"
|
||||
value="1"
|
||||
>
|
||||
{l s='Continue' d='Shop.Theme.Actions'}
|
||||
</button>
|
||||
<button
|
||||
class="continue btn btn-primary btn-block d-block d-md-none"
|
||||
name="continue"
|
||||
data-link-action="sign-in"
|
||||
type="submit"
|
||||
value="1"
|
||||
>
|
||||
{l s='Continue' d='Shop.Theme.Actions'}
|
||||
</button>
|
||||
</div>
|
||||
{/block}
|
||||
@ -0,0 +1,32 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
<div id="order-items" class="order-confirmation-table">
|
||||
|
||||
{block name='order_confirmation_table'}
|
||||
{include file="customer/_partials/product-table.tpl"}
|
||||
{/block}
|
||||
|
||||
</div>
|
||||
@ -0,0 +1,38 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
{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='%product_count% item in your cart' sprintf=['%product_count%' => $products_count] d='Shop.Theme.Checkout'}
|
||||
{else}
|
||||
{l s='%products_count% items in your cart' sprintf=['%products_count%' => $products_count] d='Shop.Theme.Checkout'}
|
||||
{/if}
|
||||
<a href="{url entity=cart params=['action' => 'show']}"><span class="step-edit"><i class="edit">edit</i> {l s='edit' d='Shop.Theme.Actions'}</span></a>
|
||||
</h3>
|
||||
</div>
|
||||
{/block}
|
||||
109
falcon/templates/checkout/_partials/order-final-summary.tpl
Normal file
109
falcon/templates/checkout/_partials/order-final-summary.tpl
Normal file
@ -0,0 +1,109 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
<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>
|
||||
|
||||
{if !$cart.is_virtual}
|
||||
<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 js-edit-addresses"><i class="edit">edit</i> {l s='edit' d='Shop.Theme.Actions'}</span>
|
||||
</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="card noshadow">
|
||||
<div class="card-block">
|
||||
<h4 class="h5 black addresshead">{l s='Your 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="h5 black addresshead">{l s='Your Invoice Address' d='Shop.Theme.Checkout'}</h4>
|
||||
{$customer.addresses[$cart.id_address_invoice]['formatted'] nofilter}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<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 js-edit-delivery"><i class="edit">edit</i> {l s='edit' d='Shop.Theme.Actions'}</span>
|
||||
</h4>
|
||||
|
||||
<div class="col-md-12 summary-selected-carrier">
|
||||
<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}" loading="lazy">
|
||||
{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>
|
||||
|
||||
{if $is_recyclable_packaging}
|
||||
<em>{l s='You have given permission to receive your order in recycled packaging.' d="Shop.Theme.Customeraccount"}</em>
|
||||
{/if}
|
||||
</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
|
||||
add_product_link=true
|
||||
}
|
||||
{/block}
|
||||
</div>
|
||||
</section>
|
||||
139
falcon/templates/checkout/_partials/steps/addresses.tpl
Normal file
139
falcon/templates/checkout/_partials/steps/addresses.tpl
Normal file
@ -0,0 +1,139 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
{extends file='checkout/_partials/steps/checkout-step.tpl'}
|
||||
|
||||
{block name='step_content'}
|
||||
<div class="js-address-form">
|
||||
<form
|
||||
method="POST"
|
||||
data-id-address="{$id_address}"
|
||||
action="{url entity='order' params=['id_address' => $id_address]}"
|
||||
data-refresh-url="{url entity='order' params=['ajax' => 1, 'action' => 'addressForm']}"
|
||||
>
|
||||
|
||||
{if $use_same_address}
|
||||
<p class="mb-4">
|
||||
{if $cart.is_virtual}
|
||||
{l s='The selected address will be used as your personal address (for invoice).' d='Shop.Theme.Checkout'}
|
||||
{else}
|
||||
{l s='The selected address will be used both as your personal address (for invoice) and as your delivery address.' d='Shop.Theme.Checkout'}
|
||||
{/if}
|
||||
</p>
|
||||
{else}
|
||||
<h2 class="h4">{l s='Shipping Address' d='Shop.Theme.Checkout'}</h2>
|
||||
{/if}
|
||||
|
||||
{if $show_delivery_address_form}
|
||||
<div id="delivery-address">
|
||||
{render file = 'checkout/_partials/address-form.tpl'
|
||||
ui = $address_form
|
||||
use_same_address = $use_same_address
|
||||
type = "delivery"
|
||||
form_has_continue_button = $form_has_continue_button
|
||||
}
|
||||
</div>
|
||||
{elseif $customer.addresses|count > 0}
|
||||
<div id="delivery-addresses" class="address-selector js-address-selector row">
|
||||
{include file = 'checkout/_partials/address-selector-block.tpl'
|
||||
addresses = $customer.addresses
|
||||
name = "id_address_delivery"
|
||||
selected = $id_address_delivery
|
||||
type = "delivery"
|
||||
interactive = !$show_delivery_address_form and !$show_invoice_address_form
|
||||
}
|
||||
</div>
|
||||
|
||||
{if isset($delivery_address_error)}
|
||||
<p class="alert alert-danger js-address-error" name="alert-delivery" id="id-failure-address-{$delivery_address_error.id_address}">{$delivery_address_error.exception}</p>
|
||||
{else}
|
||||
<p class="alert alert-danger js-address-error" name="alert-delivery" style="display: none">{l s="Your address is incomplete, please update it." d="Shop.Notifications.Error"}</p>
|
||||
{/if}
|
||||
|
||||
<div class="add-address mt-2 mb-3">
|
||||
<a class="btn btn-outline-primary btn-sm" href="{$new_address_delivery_url}">{l s='add new address' d='Shop.Theme.Actions'}</a>
|
||||
</div>
|
||||
|
||||
{if $use_same_address && !$cart.is_virtual}
|
||||
<p>
|
||||
<a data-link-action="different-invoice-address" href="{$use_different_address_url}">
|
||||
{l s='Billing address differs from shipping address' d='Shop.Theme.Checkout'}
|
||||
</a>
|
||||
</p>
|
||||
{/if}
|
||||
|
||||
{/if}
|
||||
|
||||
{if !$use_same_address}
|
||||
|
||||
<h2 class="h4">{l s='Your Invoice Address' d='Shop.Theme.Checkout'}</h2>
|
||||
|
||||
{if $show_invoice_address_form}
|
||||
<div id="invoice-address">
|
||||
{render file = 'checkout/_partials/address-form.tpl'
|
||||
ui = $address_form
|
||||
use_same_address = $use_same_address
|
||||
type = "invoice"
|
||||
form_has_continue_button = $form_has_continue_button
|
||||
}
|
||||
</div>
|
||||
{else}
|
||||
<div id="invoice-addresses" class="address-selector js-address-selector row">
|
||||
{include file = 'checkout/_partials/address-selector-block.tpl'
|
||||
addresses = $customer.addresses
|
||||
name = "id_address_invoice"
|
||||
selected = $id_address_invoice
|
||||
type = "invoice"
|
||||
interactive = !$show_delivery_address_form and !$show_invoice_address_form
|
||||
}
|
||||
</div>
|
||||
|
||||
{if isset($invoice_address_error)}
|
||||
<p class="alert alert-danger js-address-error" name="alert-invoice" id="id-failure-address-{$invoice_address_error.id_address}">{$invoice_address_error.exception}</p>
|
||||
{else}
|
||||
<p class="alert alert-danger js-address-error" name="alert-invoice" style="display: none">{l s="Your address is incomplete, please update it." d="Shop.Notifications.Error"}</p>
|
||||
{/if}
|
||||
|
||||
<div class="add-address mt-2 mb-3">
|
||||
<a class="btn btn-outline-primary btn-sm" href="{$new_address_invoice_url}">{l s='add new address' d='Shop.Theme.Actions'}</a>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{/if}
|
||||
|
||||
{if !$form_has_continue_button}
|
||||
<div class="text-right">
|
||||
<button type="submit" class="btn btn-primary continue d-none d-md-inline-block" name="confirm-addresses" value="1">
|
||||
{l s='Continue' d='Shop.Theme.Actions'}
|
||||
</button>
|
||||
<button type="submit" class="btn btn-primary continue btn-block d-block d-md-none" name="confirm-addresses" value="1">
|
||||
{l s='Continue' d='Shop.Theme.Actions'}
|
||||
</button>
|
||||
<input type="hidden" id="not-valid-addresses" class="js-not-valid-addresses" value="{$not_valid_addresses}">
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
</form>
|
||||
</div>
|
||||
{/block}
|
||||
53
falcon/templates/checkout/_partials/steps/checkout-step.tpl
Normal file
53
falcon/templates/checkout/_partials/steps/checkout-step.tpl
Normal file
@ -0,0 +1,53 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
{block name='step'}
|
||||
<section id = "{$identifier}"
|
||||
class = "{[
|
||||
'checkout-step' => true,
|
||||
'-current' => $step_is_current,
|
||||
'-reachable' => $step_is_reachable,
|
||||
'-complete' => $step_is_complete,
|
||||
'js-current-step' => $step_is_current
|
||||
]|classnames}"
|
||||
>
|
||||
<div class="card-header checkout-step__header" id="heading-{$identifier}" data-identifier="{$identifier}">
|
||||
<p class="step-title js-step-title h5 mb-0">
|
||||
<span class="step-number">{$position}.</span>
|
||||
{$title}
|
||||
<i class="material-icons font-reset rtl-no-flip text-success mx-2"></i>
|
||||
|
||||
{if $step_is_reachable}
|
||||
<button class="step-edit text-muted btn btn-sm btn-link float-right py-0" data-toggle="collapse" data-target="#content-{$identifier}" aria-expanded="{if $step_is_current}true{else}false{/if}" aria-controls="content-{$identifier}">
|
||||
<i class="material-icons edit small">mode_edit</i> {l s='Edit' d='Shop.Theme.Actions'}
|
||||
</button>
|
||||
{/if}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="content checkout-step__content card-body">
|
||||
{block name='step_content'}DUMMY STEP CONTENT{/block}
|
||||
</div>
|
||||
</section>
|
||||
{/block}
|
||||
141
falcon/templates/checkout/_partials/steps/payment.tpl
Normal file
141
falcon/templates/checkout/_partials/steps/payment.tpl
Normal file
@ -0,0 +1,141 @@
|
||||
{extends file='checkout/_partials/steps/checkout-step.tpl'}
|
||||
|
||||
{block name='step_content'}
|
||||
|
||||
{hook h='displayPaymentTop'}
|
||||
|
||||
{* used by javascript to correctly handle cart updates when we are on payment step (eg vouchers added) *}
|
||||
<div style="display:none" class="js-cart-payment-step-refresh"></div>
|
||||
|
||||
{if !empty($display_transaction_updated_info)}
|
||||
<p class="cart-payment-step-refreshed-info">
|
||||
{l s='Transaction amount has been correctly updated' d='Shop.Theme.Checkout'}
|
||||
</p>
|
||||
{/if}
|
||||
|
||||
{if $is_free}
|
||||
<p class="cart-payment-step-not-needed-info">{l s='No payment needed for this order' d='Shop.Theme.Checkout'}</p>
|
||||
{/if}
|
||||
<div class="payment-options {if $is_free}d-none{/if}">
|
||||
{foreach from=$payment_options item="module_options"}
|
||||
{foreach from=$module_options item="option"}
|
||||
<div
|
||||
id="{$option.id}-container"
|
||||
class="mb-3 checkout-option-block checkout-option {if $selected_payment_option == $option.id || $is_free}selected{/if}">
|
||||
<input class="ps-shown-by-js custom-control-input{if $option.binary} binary{/if}" id="{$option.id}"
|
||||
data-module-name="{$option.module_name}" name="payment-option" type="radio" required
|
||||
{if $selected_payment_option == $option.id || $is_free} checked {/if}>
|
||||
|
||||
<label class="card mb-0 cursor-pointer h-100" for="{$option.id}">
|
||||
<div class="card-body checkout-option__body py-sm-3 px-sm-4 p-2">
|
||||
<div class="checkout-option__row row align-items-center">
|
||||
<div class="col-auto checkout-option__col checkout-option__col--thumb">
|
||||
<div class="checkout-option__thumb">
|
||||
{if $option.logo}
|
||||
<img src="{$option.logo}" class="checkout-option__img img-fluid" />
|
||||
{else}
|
||||
<img src="{$urls.img_url}checkout/payment_default.svg" class="checkout-option__img img-fluid" />
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col checkout-option__col">
|
||||
<p class="h5 mb-0">
|
||||
{$option.call_to_action_text}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
<div
|
||||
id="pay-with-{$option.id}-form"
|
||||
style="display:none"
|
||||
class="js-payment-option-form {if $option.id != $selected_payment_option} ps-hidden {/if}"
|
||||
>
|
||||
{if $option.form}
|
||||
{$option.form nofilter}
|
||||
{else}
|
||||
<form id="payment-form" method="POST" action="{$option.action nofilter}">
|
||||
{foreach from=$option.inputs item=input}
|
||||
<input type="{$input.type}" name="{$input.name}" value="{$input.value}">
|
||||
{/foreach}
|
||||
<button style="display:none" id="pay-with-{$option.id}" type="submit"></button>
|
||||
</form>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
{if $option.additionalInformation}
|
||||
<div id="{$option.id}-additional-information"
|
||||
style="display:none"
|
||||
class="mt-2 js-additional-information definition-list additional-information{if $option.id != $selected_payment_option} ps-hidden {/if}">
|
||||
<div class="alert alert-info">
|
||||
{$option.additionalInformation nofilter}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{foreachelse}
|
||||
<p class="alert alert-danger">{l s='Unfortunately, there are no payment method available.' d='Shop.Theme.Checkout'}</p>
|
||||
{/foreach}
|
||||
</div>
|
||||
|
||||
{if $conditions_to_approve|count}
|
||||
<p style="display:none;" class="ps-hidden-by-js">
|
||||
{* At the moment, we're not showing the checkboxes when JS is disabled
|
||||
because it makes ensuring they were checked very tricky and overcomplicates
|
||||
the template. Might change later.
|
||||
*}
|
||||
{l s='By confirming the order, you certify that you have read and agree with all of the conditions below:' d='Shop.Theme.Checkout'}
|
||||
</p>
|
||||
<form id="conditions-to-approve" method="GET" class="mt-3">
|
||||
{foreach from=$conditions_to_approve item="condition" key="condition_name"}
|
||||
<div class="custom-control custom-checkbox">
|
||||
<input id="conditions_to_approve[{$condition_name}]" name="conditions_to_approve[{$condition_name}]" required
|
||||
type="checkbox" value="1" class="ps-shown-by-js custom-control-input">
|
||||
<label class="custom-control-label js-terms"
|
||||
for="conditions_to_approve[{$condition_name}]">{$condition nofilter}</label>
|
||||
</div>
|
||||
{/foreach}
|
||||
</form>
|
||||
{/if}
|
||||
|
||||
{hook h='displayCheckoutBeforeConfirmation'}
|
||||
|
||||
{if $show_final_summary}
|
||||
{include file='checkout/_partials/order-final-summary.tpl'}
|
||||
{/if}
|
||||
|
||||
<div id="payment-confirmation" class="mt-4 js-payment-confirmation">
|
||||
<div class="ps-shown-by-js">
|
||||
<div class="text-center">
|
||||
<button type="submit" class="btn btn-primary btn-lg d-none d-md-inline-block {if !$selected_payment_option} disabled {/if}">
|
||||
{l s='Place order' d='Shop.Theme.Checkout'}
|
||||
</button>
|
||||
<button type="submit" class="btn btn-primary btn-lg btn-block d-block d-md-none {if !$selected_payment_option} disabled {/if}">
|
||||
{l s='Place order' d='Shop.Theme.Checkout'}
|
||||
</button>
|
||||
</div>
|
||||
{if $show_final_summary}
|
||||
<article class="alert alert-danger mt-2 js-alert-payment-conditions" role="alert" data-alert="danger">
|
||||
{l
|
||||
s='Please make sure you\'ve chosen a [1]payment method[/1] and accepted the [2]terms and conditions[/2].'
|
||||
sprintf=[
|
||||
'[1]' => '<a href="#checkout-payment-step">',
|
||||
'[/1]' => '</a>',
|
||||
'[2]' => '<a href="#conditions-to-approve">',
|
||||
'[/2]' => '</a>'
|
||||
]
|
||||
d='Shop.Theme.Checkout'
|
||||
}
|
||||
</article>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="ps-hidden-by-js">
|
||||
{if $selected_payment_option and $all_conditions_approved}
|
||||
<label for="pay-with-{$selected_payment_option}">{l s='Order with an obligation to pay' d='Shop.Theme.Checkout'}</label>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{hook h='displayPaymentByBinaries'}
|
||||
{/block}
|
||||
@ -0,0 +1,107 @@
|
||||
{extends file='checkout/_partials/steps/checkout-step.tpl'}
|
||||
|
||||
{block name='step_content'}
|
||||
{hook h='displayPersonalInformationTop' customer=$customer}
|
||||
|
||||
{if $customer.is_logged && !$customer.is_guest}
|
||||
|
||||
<p class="identity">
|
||||
{* [1][/1] is for a HTML tag. *}
|
||||
{l s='Connected as [1]%firstname% %lastname%[/1].'
|
||||
d='Shop.Theme.Customeraccount'
|
||||
sprintf=[
|
||||
'[1]' => "<a href='{$urls.pages.identity}'>",
|
||||
'[/1]' => "</a>",
|
||||
'%firstname%' => $customer.firstname,
|
||||
'%lastname%' => $customer.lastname
|
||||
]
|
||||
}
|
||||
</p>
|
||||
<p>
|
||||
{* [1][/1] is for a HTML tag. *}
|
||||
{l
|
||||
s='Not you? [1]Log out[/1]'
|
||||
d='Shop.Theme.Customeraccount'
|
||||
sprintf=[
|
||||
'[1]' => "<a href='{$urls.actions.logout}'>",
|
||||
'[/1]' => "</a>"
|
||||
]
|
||||
}
|
||||
</p>
|
||||
{if !isset($empty_cart_on_logout) || $empty_cart_on_logout}
|
||||
<p><small>{l s='If you sign out now, your cart will be emptied.' d='Shop.Theme.Checkout'}</small></p>
|
||||
{/if}
|
||||
|
||||
<div class="text-right">
|
||||
<form method="GET" action="{$urls.pages.order}">
|
||||
<button
|
||||
class="continue btn btn-primary d-none d-md-inline-block"
|
||||
name="controller"
|
||||
type="submit"
|
||||
value="order"
|
||||
>
|
||||
{l s='Continue' d='Shop.Theme.Actions'}
|
||||
</button>
|
||||
<button
|
||||
class="continue btn btn-primary btn-block d-block d-md-none"
|
||||
name="controller"
|
||||
type="submit"
|
||||
value="order"
|
||||
>
|
||||
{l s='Continue' d='Shop.Theme.Actions'}
|
||||
</button>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
{else}
|
||||
<div class="user-form user-form--sm">
|
||||
<ul class="nav nav-pills nav-fill mb-3" role="tablist">
|
||||
<li class="nav-item">
|
||||
<a
|
||||
class="nav-link {if !$show_login_form}active{/if}"
|
||||
data-toggle="tab"
|
||||
href="#checkout-guest-form"
|
||||
role="tab"
|
||||
aria-controls="checkout-guest-form"
|
||||
{if !$show_login_form} aria-selected="true"{/if}
|
||||
>
|
||||
{if $guest_allowed}
|
||||
{l s='Order as a guest' d='Shop.Theme.Checkout'}
|
||||
{else}
|
||||
{l s='Create an account' d='Shop.Theme.Customeraccount'}
|
||||
{/if}
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="nav-item">
|
||||
<a
|
||||
class="nav-link {if $show_login_form}active{/if}"
|
||||
data-link-action="show-login-form"
|
||||
data-toggle="tab"
|
||||
href="#checkout-login-form"
|
||||
role="tab"
|
||||
aria-controls="checkout-login-form"
|
||||
{if $show_login_form} aria-selected="true"{/if}
|
||||
>
|
||||
{l s='Sign in' d='Shop.Theme.Actions'}
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane {if !$show_login_form}active{/if}" id="checkout-guest-form" role="tabpanel" {if $show_login_form}aria-hidden="true"{/if}>
|
||||
{render file='checkout/_partials/customer-form.tpl' ui=$register_form guest_allowed=$guest_allowed}
|
||||
</div>
|
||||
<div class="tab-pane {if $show_login_form}active{/if}" id="checkout-login-form" role="tabpanel" {if !$show_login_form}aria-hidden="true"{/if}>
|
||||
<div class="user-form user-form--sm">
|
||||
{render file='checkout/_partials/login-form.tpl' ui=$login_form}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{/if}
|
||||
{/block}
|
||||
134
falcon/templates/checkout/_partials/steps/shipping.tpl
Normal file
134
falcon/templates/checkout/_partials/steps/shipping.tpl
Normal file
@ -0,0 +1,134 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
{extends file='checkout/_partials/steps/checkout-step.tpl'}
|
||||
|
||||
{block name='step_content'}
|
||||
<div id="hook-display-before-carrier">
|
||||
{$hookDisplayBeforeCarrier nofilter}
|
||||
</div>
|
||||
|
||||
<div class="delivery-options-list">
|
||||
{if $delivery_options|count}
|
||||
<form
|
||||
class="clearfix"
|
||||
id="js-delivery"
|
||||
data-url-update="{url entity='order' params=['ajax' => 1, 'action' => 'selectDeliveryOption']}"
|
||||
method="post"
|
||||
>
|
||||
<div class="form-fields">
|
||||
{block name='delivery_options'}
|
||||
<div class="delivery-options">
|
||||
{foreach from=$delivery_options item=carrier key=carrier_id}
|
||||
<div class="mb-3 checkout-option-block checkout-option js-delivery-option {if $delivery_option == $carrier_id} selected{/if}">
|
||||
<input class="custom-control-input" type="radio" name="delivery_option[{$id_address}]" id="delivery_option_{$carrier.id}" value="{$carrier_id}"{if $delivery_option == $carrier_id} checked{/if}>
|
||||
|
||||
<label class="card mb-0 cursor-pointer h-100" for="delivery_option_{$carrier.id}">
|
||||
<div class="card-body checkout-option__body py-sm-3 px-sm-4 p-2">
|
||||
<div class="checkout-option__row row align-items-center">
|
||||
<div class="col-auto checkout-option__col checkout-option__col--thumb">
|
||||
<div class="checkout-option__thumb">
|
||||
{if $carrier.logo}
|
||||
<img src="{$carrier.logo}" alt="{$carrier.name}" class="checkout-option__img img-fluid" />
|
||||
{else}
|
||||
<img src="{$urls.img_url}checkout/carrier_default.svg" class="checkout-option__img img-fluid" />
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col checkout-option__col">
|
||||
<div class="checkout-option__row checkout-option__row--inner row align-items-center">
|
||||
<div class="col checkout-option__col checkout-option__col--text">
|
||||
<p class="h5 mb-0">
|
||||
{$carrier.name}
|
||||
</p>
|
||||
<span class="checkout-option__delay text-muted font-sm">{$carrier.delay}</span>
|
||||
|
||||
</div>
|
||||
<div class="col-sm-auto col-12 checkout-option__col checkout-option__col--price mt-sm-0 mt-1">
|
||||
<div class="checkout-option__price price text-right">
|
||||
{$carrier.price}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</label>
|
||||
|
||||
</div>
|
||||
<div class="carrier-extra-content js-carrier-extra-content my-3"{if $delivery_option != $carrier_id} style="display:none;"{/if}>{$carrier.extraContent nofilter}</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
{/block}
|
||||
<div class="order-options">
|
||||
<div id="delivery">
|
||||
<label for="delivery_message">{l s='If you would like to add a comment about your order, please write it in the field below.' d='Shop.Theme.Checkout'}</label>
|
||||
<textarea class="form-control" rows="4" cols="120" id="delivery_message" name="delivery_message">{$delivery_message}</textarea>
|
||||
</div>
|
||||
|
||||
{if $recyclablePackAllowed}
|
||||
<div class="form-group my-3">
|
||||
<div class="custom-control custom-checkbox">
|
||||
<input class="custom-control-input" type="checkbox" id="input_recyclable" name="recyclable" value="1" {if $recyclable} checked {/if}>
|
||||
<label class="custom-control-label" for="input_recyclable">{l s='I would like to receive my order in recycled packaging.' d='Shop.Theme.Checkout'}</label>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $gift.allowed}
|
||||
<div class="form-group my-3">
|
||||
<div class="custom-control custom-checkbox">
|
||||
<input class="custom-control-input js-gift-checkbox" type="checkbox" id="input_gift" name="gift" value="1" {if $gift.isGift} checked {/if}>
|
||||
<label class="custom-control-label" for="input_gift">{$gift.label}</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="gift" class="collapse{if $gift.isGift} in{/if}">
|
||||
<label for="gift_message">{l s='If you\'d like, you can add a note to the gift:' d='Shop.Theme.Checkout'}</label>
|
||||
<textarea class="form-control" rows="4" cols="120" id="gift_message" name="gift_message">{$gift.message}</textarea>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="text-right mt-3">
|
||||
<button type="submit" class="continue btn btn-primary d-none d-md-inline-block" name="confirmDeliveryOption" value="1">
|
||||
{l s='Continue' d='Shop.Theme.Actions'}
|
||||
</button>
|
||||
<button type="submit" class="continue btn btn-primary btn-block d-block d-md-none" name="confirmDeliveryOption" value="1">
|
||||
{l s='Continue' d='Shop.Theme.Actions'}
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
{else}
|
||||
<p class="alert alert-danger">{l s='Unfortunately, there are no carriers available for your delivery address.' d='Shop.Theme.Checkout'}</p>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<div id="hook-display-after-carrier">
|
||||
{$hookDisplayAfterCarrier nofilter}
|
||||
</div>
|
||||
|
||||
<div id="extra_carrier"></div>
|
||||
{/block}
|
||||
34
falcon/templates/checkout/_partials/steps/unreachable.tpl
Normal file
34
falcon/templates/checkout/_partials/steps/unreachable.tpl
Normal file
@ -0,0 +1,34 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
{block name='step'}
|
||||
<section class="checkout-step -unreachable" id="{$identifier}">
|
||||
<div class="card-header checkout-step__header" id="heading-{$identifier}" data-identifier="{$identifier}">
|
||||
<p class="step-title h5 mb-0 js-step-title">
|
||||
<span class="step-number">{$position}.</span>
|
||||
{$title}
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
{/block}
|
||||
Reference in New Issue
Block a user