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:
2025-11-18 14:04:01 +01:00
parent 3a7f2db331
commit 6849b8eefd
605 changed files with 49820 additions and 0 deletions

View File

@ -0,0 +1,40 @@
{block name='account_transformation_form'}
<div class="card">
<div class="card-header">
<h5 class="card-title mb-0">
{l s='Registration' d='Shop.Istheme'}
</h5>
</div>
<div class="card-body">
<h6>
{l s='Save time on your next order, sign up now' d='Shop.Theme.Checkout'}
</h6>
<ul class="mb-3 font-sm">
<li> - {l s='Personalized and secure access' d='Shop.Theme.Customeraccount'}</li>
<li> - {l s='Fast and easy checkout' d='Shop.Theme.Customeraccount'}</li>
<li> - {l s='Easier merchandise return' d='Shop.Theme.Customeraccount'}</li>
</ul>
<form method="post" class="mb-0">
<div class="form-group">
<label class="form-label required" for="field-email">
{l s='Set your password:' d='Shop.Forms.Labels'}
</label>
<input type="password" class="form-control" data-validate="isPasswd" required name="password" value="">
</div>
<footer class="form-footer">
<input type="hidden" name="submitTransformGuestToCustomer" value="1">
<div class="text-center mt-3">
<button class="btn btn-primary d-none d-md-inline-block" type="submit">
{l s='Create account' d='Shop.Theme.Actions'}
</button>
<button class="btn btn-primary btn-block d-block d-md-none" type="submit">
{l s='Create account' d='Shop.Theme.Actions'}
</button>
</div>
</footer>
</form>
</div>
</div>
{/block}

View File

@ -0,0 +1,66 @@
{**
* 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_form"}
<div class="js-address-form user-form user-form--sm">
{include file='_partials/form-errors.tpl' errors=$errors['']}
{block name="address_form_url"}
<form
method="POST"
action="{url entity='address' params=['id_address' => $id_address]}"
data-id-address="{$id_address}"
data-refresh-url="{url entity='address' params=['ajax' => 1, 'action' => 'addressForm']}"
>
{/block}
{block name="address_form_fields"}
<section class="form-fields">
{block name='form_fields'}
{foreach from=$formFields item="field"}
{block name='form_field'}
{form_field field=$field}
{/block}
{/foreach}
{/block}
</section>
{/block}
{block name="address_form_footer"}
<footer class="form-footer text-center mt-3">
<input type="hidden" name="submitAddress" value="1">
{block name='form_buttons'}
<button class="btn btn-primary form-control-submit d-none d-md-inline-block" type="submit">
{l s='Save' d='Shop.Theme.Actions'}
</button>
<button class="btn btn-primary form-control-submit btn-block d-block d-md-none" type="submit">
{l s='Save' d='Shop.Theme.Actions'}
</button>
{/block}
</footer>
{/block}
</form>
</div>
{/block}

View File

@ -0,0 +1,45 @@
{**
* 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
*}
{block name='address_block_item'}
<article id="address-{$address.id}" class="address card h-100" data-id-address="{$address.id}">
<p class="address__header card-header h5">{$address.alias}</p>
<div class="address__body card-body">
<address>{$address.formatted nofilter}</address>
</div>
{block name='address_block_item_actions'}
<div class="address__footer small card-footer">
<a class="d-flex align-items-center justify-content-center" href="{url entity=address id=$address.id}" data-link-action="edit-address">
<i class="material-icons mr-1 font-reset">&#xE254;</i>
<span>{l s='Update' d='Shop.Theme.Actions'}</span>
</a>
<a class="d-flex align-items-center justify-content-center" href="{url entity=address id=$address.id params=['delete' => 1, 'token' => $token]}" data-link-action="delete-address">
<i class="material-icons mr-1 font-reset">&#xE872;</i>
<span>{l s='Delete' d='Shop.Theme.Actions'}</span>
</a>
</div>
{/block}
</article>
{/block}

View File

@ -0,0 +1,65 @@
{**
* 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='customer_form'}
{block name='customer_form_errors'}
{include file='_partials/form-errors.tpl' errors=$errors['']}
{/block}
<form action="{block name='customer_form_actionurl'}{$action}{/block}" id="customer-form" class="js-customer-form needs-validation user-form user-form--sm"
method="post">
<div>
{block "form_fields"}
{foreach from=$formFields item="field"}
{block "form_field"}
{if $field.type === "password"}
<div class="field-password-policy">
{form_field field=$field}
</div>
{else}
{form_field field=$field}
{/if}
{/block}
{/foreach}
{$hook_create_account_form nofilter}
{/block}
</div>
{block name='customer_form_footer'}
<footer class="form-footer text-center mt-3">
<input type="hidden" name="submitCreate" value="1">
{block "form_buttons"}
<button class="btn btn-primary form-control-submit d-none d-md-inline-block" data-link-action="save-customer" type="submit">
{l s='Save' d='Shop.Theme.Actions'}
</button>
<button class="btn btn-primary form-control-submit btn-block d-block d-md-none" data-link-action="save-customer" type="submit">
{l s='Save' d='Shop.Theme.Actions'}
</button>
{/block}
</footer>
{/block}
</form>
{/block}

View File

@ -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='login_form'}
{block name='login_form_errors'}
{include file='_partials/form-errors.tpl' errors=$errors['']}
{/block}
<form id="login-form" action="{block name='login_form_actionurl'}{$action}{/block}" method="post">
<div>
{block name='login_form_fields'}
{foreach from=$formFields item="field"}
{block name='form_field'}
{form_field field=$field}
{/block}
{/foreach}
{/block}
<div class="forgot-password text-center mb-3">
<a href="{$urls.pages.password}" rel="nofollow">
{l s='Forgot your password?' d='Shop.Theme.Customeraccount'}
</a>
</div>
</div>
{block name='login_form_footer'}
<footer class="form-footer text-center clearfix">
<input type="hidden" name="submitLogin" value="1">
{block name='form_buttons'}
<button id="submit-login" class="btn btn-primary d-none d-md-inline-block" data-link-action="sign-in" type="submit" class="form-control-submit">
{l s='Sign in' d='Shop.Theme.Actions'}
</button>
<button id="submit-login" class="btn btn-primary btn-block d-block d-md-none" data-link-action="sign-in" type="submit" class="form-control-submit">
{l s='Sign in' d='Shop.Theme.Actions'}
</button>
{/block}
</footer>
{/block}
</form>
{/block}

View File

@ -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)
*}
{block name='my_account_links'}
<a href="{$urls.pages.my_account}" class="account-link">
<span>{l s='Back to your account' d='Shop.Theme.Customeraccount'}</span>
</a>
<a href="{$urls.pages.index}" class="account-link">
<span>{l s='Home' d='Shop.Theme.Global'}</span>
</a>
{/block}

View File

@ -0,0 +1,73 @@
{**
* 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='order_products_table'}
<div class="card my-4">
{include file="customer/_partials/product-table.tpl" products=$order.products}
</div>
<div class="row card-group no-gutters my-4">
{block name='order_details'}
<div class="col-sm-6 col-12 card mb-sm-0 mb-4">
<div class="card-header">
<h3 class="h5 mb-0 card-title">{l s='Order details' d='Shop.Theme.Checkout'}</h3>
</div>
<div class="card-body">
<ul class="m-0">
<li class="cart-summary-line">
<span>{l s='Carrier' d='Shop.Theme.Checkout'}: <strong>{$order.carrier.name}</strong></span>
</li>
<li class="cart-summary-line">
<span>{l s='Payment method' d='Shop.Theme.Checkout'}: <strong>{$order.details.payment}</strong></span>
</li>
</ul>
</div>
</div>
{/block}
<div class="col-sm-6 col-12 card mb-0">
<div class="card-header">
<h3 class="h5 mb-0 card-title">{l s='Order subtotals' d='Shop.Istheme'}</h3>
</div>
<div class="card-body">
{foreach $order.subtotals as $line}
{if $line.value}
<div class="cart-summary-line">
<span class="label">{$line.label}</span>
<span class="value">{if 'discount' == $line.type}-&nbsp;{/if}{$line.value}</span>
</div>
{/if}
{/foreach}
<div class="cart-summary-line cart-total">
<span class="label">{$order.totals.total.label}</span>
<div class="value">{$order.totals.total.value}</div>
</div>
</div>
</div>
</div>
{/block}

View File

@ -0,0 +1,92 @@
{**
* 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='order_products_table'}
<div class="card my-4">
{include file="customer/_partials/product-table.tpl" products=$order.products}
</div>
<div class="row card-group no-gutters my-4">
{block name='order_details'}
<div class="col-sm-6 col-12 card mb-sm-0 mb-4">
<div class="card-header">
<h3 class="h5 mb-0 card-title">{l s='Order details' d='Shop.Theme.Checkout'}</h3>
</div>
<div class="card-body">
<ul class="m-0">
<li class="cart-summary-line">
<span>{l s='Carrier' d='Shop.Theme.Checkout'}: <strong>{$order.carrier.name}</strong></span>
</li>
<li class="cart-summary-line">
<span>{l s='Payment method' d='Shop.Theme.Checkout'}: <strong>{$order.details.payment}</strong></span>
</li>
</ul>
</div>
</div>
{/block}
<div class="col-sm-6 col-12 card mb-0">
<div class="card-header">
<h3 class="h5 mb-0 card-title">{l s='Order subtotals' d='Shop.Istheme'}</h3>
</div>
<div class="card-body">
{foreach $order.subtotals as $line}
{if $line.value}
<div class="cart-summary-line">
<span class="label">{$line.label}</span>
<span class="value">{if 'discount' == $line.type}-&nbsp;{/if}{$line.value}</span>
</div>
{/if}
{/foreach}
<div class="cart-summary-line cart-total">
<span class="label">{$order.totals.total.label}</span>
<div class="value">{$order.totals.total.value}</div>
</div>
</div>
</div>
</div>
<div class="my-4">
<h3 class="h4 mb-1">
{l s='Merchandise returns' d='Shop.Theme.Customeraccount'}
</h3>
<p class="mb-4">
{l s='If you wish to return one or more products, click on \'Request a return\' button' d='Shop.Theme.Customeraccount'}
</p>
<div class="text-center">
<button class="btn btn-primary d-none d-md-inline-block" data-toggle="modal" data-target="#order-return-modal">
{l s='Request a return' d='Shop.Theme.Customeraccount'}
</button>
<button class="btn btn-primary btn-block d-block d-md-none" data-toggle="modal" data-target="#order-return-modal">
{l s='Request a return' d='Shop.Theme.Customeraccount'}
</button>
</div>
</div>
{include file="customer/_partials/order-details-return-modal.tpl" order=$order}
{/block}

View File

@ -0,0 +1,57 @@
{extends file='components/modal.tpl'}
{block name='modal_extra_attribues'}id="order-return-modal"{/block}
{block name='modal_dialog_extra_class'}modal-lg{/block}
{block name='modal_content'}
<form id="order-return-form" class="modal-content js-order-return-form" action="{$urls.pages.order_follow}" method="post">
{block name='modal_header'}
<div class="modal-header {block name='modal_header_extra_class'}{/block}">
{block name='modal_title'}
<h5 class="modal-title">{l s='Merchandise return' d='Shop.Theme.Customeraccount'}</h5>
{/block}
{block name='modal_close'}
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
{/block}
</div>
{/block}
{block name='modal_body'}
<div class="modal-body {block name='modal_body_extra_class'}{/block}">
<div class="mb-3">
<p>{l s='If you wish to return one or more products, please mark the corresponding boxes and provide an explanation for the return. When complete, click the button below.' d='Shop.Theme.Customeraccount'}</p>
</div>
<div class="card my-4">
{include file="customer/_partials/order-details-return-table.tpl" products=$order.products}
</div>
<section class="form-fields">
<label for="returnText" class="form-control-label">
{l s='Reason for the return' d='Shop.Theme.Customeraccount'}
</label>
<div class="form-group">
<textarea cols="67" rows="3" name="returnText" id="returnText" class="form-control"></textarea>
</div>
</section>
</div>
{/block}
{block name='modal_footer'}
<div class="modal-footer {block name='modal_footer_extra_class'}{/block}">
<input type="hidden" name="id_order" value="{$order.details.id}">
<button class="form-control-submit btn btn-primary d-none d-md-inline-block" type="submit" name="submitReturnMerchandise">
{l s='Request a return' d='Shop.Theme.Customeraccount'}
</button>
<button class="form-control-submit btn btn-primary btn-block d-block d-md-none" type="submit" name="submitReturnMerchandise">
{l s='Request a return' d='Shop.Theme.Customeraccount'}
</button>
</div>
{/block}
</form>
{/block}

View File

@ -0,0 +1,184 @@
<table id="order-products" class="table product-table product-table--return return">
<thead class="thead-default product-table__head">
<tr>
<th class="head-checkbox">
<div class="custom-control custom-checkbox custom-checkbox-block">
<input
class="custom-control-input"
type="checkbox"
id="return_bulk">
<label class="custom-control-label" for="return_bulk"></label>
</div>
</th>
<th>
</th>
<th>
{l s='Product' d='Shop.Theme.Catalog'}
</th>
<th>
{l s='Price' d='Shop.Theme.Catalog'}
</th>
<th>
{l s='Quantity' d='Shop.Theme.Catalog'}
</th>
</tr>
</thead>
{foreach from=$order.products item=product name=products}
<tr class="product-table__row product-line product-line--return">
<td class="product-line__cell product-line__cell--checkbox">
{if !$product.product.is_virtual}
<label class="custom-control custom-checkbox product-line__checkbox-block mb-0 custom-checkbox-block">
<input
class="custom-control-input"
type="checkbox"
id="cb_{$product.id_order_detail}"
name="ids_order_detail[{$product.id_order_detail}]"
value="{$product.id_order_detail}">
<span class="custom-control-label" for="cb_{$product.id_order_detail}"></span>
</label>
{else}
{foreach $product.customizations as $customization}
<label class="custom-control custom-checkbox product-line__checkbox-block mb-0 custom-checkbox-block">
<input
class="custom-control-input"
type="checkbox"
id="cb_{$product.id_order_detail}_{$customization.id_customization}"
name="customization_ids[{$product.id_order_detail}][]"
value="{$customization.id_customization}">
<span class="custom-control-label"></span>
</label>
{/foreach}
{/if}
</td>
<td class="product-line__cell product-line__cell--img">
{images_block webpEnabled=$webpEnabled}
{if $product.default_image}
<img
{generateImagesSources image=$product.cover size='cart_default' lazyload=false}
alt="{$product.name|escape:'quotes'}"
class="product-line__img rounded img-fluid"
width="{$product.cover.bySize.cart_default.width}"
height="{$product.cover.bySize.cart_default.height}">
{else}
<img
src="{$urls.no_picture_image.bySize.cart_default.url}"
width="{$urls.no_picture_image.bySize.cart_default.width}"
height="{$urls.no_picture_image.bySize.cart_default.height}"
class="product-line__img rounded img-fluid">
{/if}
{/images_block}
</td>
<td class="product-line__cell product-line__cell--prod">
{assign var="productAttrs" value=[]}
{foreach from=$product.attributes key="attribute" item="value"}
{$productAttrs[]= "- `$attribute` : `$value`"}
{/foreach}
{$productAttrs = ""|implode:$productAttrs}
<p class="product-line__title h6 mb-2">
{if $product.attributes|count > 0}
{$product.name|replace:$productAttrs : ''}
{else}
{$product.name}
{/if}
</p>
{if $product.attributes}
<ul class="product-line__attributes mb-0">
{foreach from=$product.attributes key="attribute" item="value"}
<li class="product-line__attribute text-muted small">
<span>{$attribute}</span>: <span class="font-weight-bold">{$value}</span>
</li>
{/foreach}
</ul>
{/if}
{if $product.is_virtual}
{l s='Virtual products can\'t be returned.' d='Shop.Theme.Customeraccount'}<br/>
{/if}
{if isset($product.download_link)}
<a href="{$product.download_link}">{l s='Download' d='Shop.Theme.Actions'}</a><br/>
{/if}
{if $product.customizations}
{foreach from=$product.customizations item="customization"}
<div class="customization">
<a href="#" data-toggle="modal" data-target="#product-customizations-modal-{$customization.id_customization}">{l s='Product customization' d='Shop.Theme.Catalog'}</a>
</div>
<div id="_desktop_product_customization_modal_wrapper_{$customization.id_customization}">
<div class="modal fade 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">
<button type="button" class="close" data-dismiss="modal" aria-label="{l s='Close' d='Shop.Theme.Global'}">
<span aria-hidden="true">&times;</span>
</button>
<h4 class="modal-title">{l s='Product customization' d='Shop.Theme.Catalog'}</h4>
</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}" loading="lazy">
{/if}
</div>
</div>
{/foreach}
</div>
</div>
</div>
</div>
</div>
{/foreach}
{/if}
</td>
<td class="product-line__cell product-line__cell--price" data-title="{l s='Price' d='Shop.Theme.Catalog'}">
<div class="price product-line__price">
{$product.price}
</div>
</td>
<td class="product-line__cell product-line__cell--qty qty" {if $product.quantity > $product.qty_returned} data-title="{l s='Quantity' d='Shop.Theme.Catalog'}"{/if}>
{if !$product.customizations}
{if $product.quantity > $product.qty_returned}
<div class="select" id="_desktop_return_qty_{$product.id_order_detail}">
<select name="order_qte_input[{$product.id_order_detail}]" class="custom-select">
{section name=quantity start=1 loop=$product.quantity+1-$product.qty_returned}
<option value="{$smarty.section.quantity.index}">{$smarty.section.quantity.index}</option>
{/section}
</select>
</div>
{/if}
{else}
{foreach $product.customizations as $customization}
<div class="select" id="_desktop_return_qty_{$product.id_order_detail}_{$customization.id_customization}">
<select
name="customization_qty_input[{$customization.id_customization}]"
class="custom-select"
>
{section name=quantity start=1 loop=$customization.quantity+1}
<option value="{$smarty.section.quantity.index}">{$smarty.section.quantity.index}</option>
{/section}
</select>
</div>
{/foreach}
{/if}
</td>
</tr>
{/foreach}
</table>

View File

@ -0,0 +1,87 @@
{**
* 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='order_messages_table'}
{if $order.messages}
<div class="box messages">
<h3>{l s='Messages' d='Shop.Theme.Customeraccount'}</h3>
{foreach from=$order.messages item=message}
<div class="message row">
<div class="col-sm-4">
<strong>{$message.name}</strong><br/>
<small>
{$message.message_date}
</small>
</div>
<div class="col-sm-8">
{$message.message|escape:'html'|nl2br nofilter}
</div>
</div>
{/foreach}
</div>
{/if}
{/block}
{block name='order_message_form'}
<section class="order-message-form my-4">
<form class="card" action="{$urls.pages.order_detail}" method="post">
<header class="card-header">
<h3 class="h4 card-title mb-0">{l s='Add a message' d='Shop.Theme.Customeraccount'}</h3>
</header>
<div class="card-body">
<section class="form-fields">
<p>{l s='If you would like to add a comment about your order, please write it in the field below.' d='Shop.Theme.Customeraccount'}</p>
<div class="form-group">
<label class="form-control-label">{l s='Product' d='Shop.Forms.Labels'}</label>
<select name="id_product" class="custom-select" data-role="product">
<option value="0">{l s='-- please choose --' d='Shop.Forms.Labels'}</option>
{foreach from=$order.products item=product}
<option value="{$product.id_product}">{$product.name}</option>
{/foreach}
</select>
</div>
<div class="form-group">
<textarea rows="4" name="msgText" class="form-control" data-role="msg-text"></textarea>
</div>
</section>
<footer class="form-footer text-center mt-3">
<input type="hidden" name="id_order" value="{$order.details.id}">
<button type="submit" name="submitMessage" class="btn btn-primary d-block btn-block d-md-none form-control-submit">
{l s='Send' d='Shop.Theme.Actions'}
</button>
<button type="submit" name="submitMessage" class="btn btn-primary form-control-submit d-none d-md-inline-block">
{l s='Send' d='Shop.Theme.Actions'}
</button>
</footer>
</div>
</form>
</section>
{/block}

View File

@ -0,0 +1,76 @@
<td class="product-line__cell product-line__cell--img">
{images_block webpEnabled=$webpEnabled}
{if $product.default_image}
<img
{generateImagesSources image=$product.default_image size='cart_default' lazyload=false}
alt="{$product.name|escape:'quotes'}"
class="product-line__img rounded img-fluid"
width="{$product.default_image.bySize.cart_default.width}"
height="{$product.default_image.bySize.cart_default.height}">
{else}
<img
src="{$urls.no_picture_image.bySize.cart_default.url}"
width="{$urls.no_picture_image.bySize.cart_default.width}"
height="{$urls.no_picture_image.bySize.cart_default.height}"
class="product-line__img rounded img-fluid">
{/if}
{/images_block}
</td>
<td class="product-line__cell product-line__cell--prod">
{assign var="productAttrs" value=[]}
{foreach from=$product.attributes key="attribute" item="value"}
{$productAttrs[]= "- `$attribute` : `$value`"}
{/foreach}
{$productAttrs = ""|implode:$productAttrs}
<p class="product-line__title h6 mb-2">
{if $product.attributes|count > 0}
{$product.name|replace:$productAttrs : ''}
{else}
{$product.name}
{/if}
</p>
{if $product.attributes}
<ul class="product-line__attributes mb-0">
{foreach from=$product.attributes key="attribute" item="value"}
<li class="product-line__attribute text-muted small">
<span>{$attribute}</span>: <span class="font-weight-bold">{$value}</span>
</li>
{/foreach}
</ul>
{/if}
</td>
<td class="product-line__cell product-line__cell--price" data-title="{l s='Price' d='Shop.Theme.Catalog'}">
<div class="price product-line__price">
{$product.price}
</div>
</td>
<td class="product-line__cell product-line__cell--qty" data-title="{l s='Quantity' d='Shop.Theme.Catalog'}">
<span class="price product-line__price">{$product.quantity}</span>
</td>
{if $page.page_name == 'order-detail' && $order.details.is_returnable && isset($product.qty_returned)}
<td class="product-line__cell product-line__cell--returned" data-title="{l s='Returned' d='Shop.Theme.Customeraccount'}">
<div class="price product-line__price">
{$product.qty_returned}
</div>
</td>
{/if}
<td class="product-line__cell product-line__cell--total" data-title="{l s='Total' d='Shop.Theme.Checkout'}">
<div class="price product-line__price">
{if isset($product.is_gift) && $product.is_gift}
{l s='Gift' d='Shop.Theme.Checkout'}
{else}
{$product.total}
{/if}
</div>
</td>

View File

@ -0,0 +1,36 @@
<table class="table product-table">
<div class="card-header d-md-none">
<p class="card-title mb-0 h5">
{l s='Products' d='Shop.Theme.Catalog'}
</p>
</div>
<thead class="thead-default product-table__head">
<tr>
<th></th>
<th>
{l s='Product' d='Shop.Theme.Catalog'}
</th>
<th>
{l s='Price' d='Shop.Theme.Catalog'}
</th>
<th>
{l s='Quantity' d='Shop.Theme.Catalog'}
</th>
{if $page.page_name == 'order-detail' && $order.details.is_returnable}
<th>
{l s='Returned' d='Shop.Theme.Customeraccount'}
</th>
{/if}
<th>
{l s='Total' d='Shop.Theme.Checkout'}
</th>
</tr>
</thead>
{foreach from=$products item=product}
<tr class="product-table__row product-line {if $page.page_name == 'order-detail' && $order.details.is_returnable}product-line--extended{/if}">
{block name='cart_detailed_product_line'}
{include file='customer/_partials/product-table-line.tpl' product=$product interactive=$interactive|default:false}
{/block}
</tr>
{/foreach}
</table>

View File

@ -0,0 +1,39 @@
{**
* 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/page.tpl'}
{block name='page_title'}
{if $editing}
{l s='Update your address' d='Shop.Theme.Customeraccount'}
{else}
{l s='New address' d='Shop.Theme.Customeraccount'}
{/if}
{/block}
{block name='page_content'}
<div class="address-form">
{render template="customer/_partials/address-form.tpl" ui=$address_form}
</div>
{/block}

View 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)
*}
{extends file='customer/page.tpl'}
{block name='page_title'}
{l s='Your addresses' d='Shop.Theme.Customeraccount'}
{/block}
{block name='page_content'}
{if $customer.addresses}
<div class="row">
{foreach $customer.addresses as $address}
<div class="col-md-6 col-sm-6 mb-3">
{block name='customer_address'}
{include file='customer/_partials/block-address.tpl' address=$address}
{/block}
</div>
{/foreach}
</div>
{else}
<div class="alert alert-info" role="alert" data-alert="info">
{l s='No addresses are available.' d='Shop.Notifications.Success'} <a href="{$urls.pages.address}" title="{l s='Add a new address' d='Shop.Theme.Actions'}">{l s='Add a new address' d='Shop.Theme.Actions'}</a>
</div>
{/if}
<div class="addresses-footer mt-2 text-center">
<a class="btn btn-primary" href="{$urls.pages.address}" data-link-action="add-address">
{l s='Create new address' d='Shop.Theme.Actions'}
</a>
</div>
{/block}

View File

@ -0,0 +1,75 @@
{**
* 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='page.tpl'}
{block name='page_title'}
{l s='Login and registration' d='Shop.Istheme'}
{/block}
{block name='page_content'}
<div class="card user-form">
<div class="row user-form__row">
{block name='login_form_container'}
<section class="col-md-6 col-12 user-form__block">
<div class="user-form__content card-body h-100 bg-light d-flex flex-column">
<h4 class="text-center h3 mb-3">
{l s='Login' d='Shop.Istheme'}
</h4>
{render file='customer/_partials/login-form.tpl' ui=$login_form}
{block name='display_after_login_form'}
{hook h='displayCustomerLoginFormAfter'}
{/block}
</div>
</section>
{/block}
<div class="user-form__block col-md-6 col-12">
<div class="user-form__content card-body h-100 d-flex flex-column">
<h4 class="text-center h3 mb-3">
{l s='Registration' d='Shop.Istheme'}
</h4>
<p class="mb-4 text-muted">
{l s='Creating an account is simple, and thanks to this you will complete the order faster! Additionally, you have the option of tracking your order and viewing purchase history.' d='Shop.Istheme'}
</p>
<div class="mt-auto text-center">
<a href="{$urls.pages.register}" class="btn btn-primary d-none d-md-inline-block">
{l s='I want to create an account' d='Shop.Istheme'}
</a>
<a href="{$urls.pages.register}" class="btn btn-primary btn-block d-block d-md-none">
{l s='I want to create an account' d='Shop.Istheme'}
</a>
</div>
</div>
</div>
</div>
</div>
{/block}
{block name='page_footer'}
{/block}

View File

@ -0,0 +1,81 @@
{$pageIdentity = ['identity']}
{$pageAddresses = ['addresses', 'address']}
{$pageHistory = ['history', 'order-detail']}
{$pageDiscount = ['discount']}
{$pageCartHistory = ['cart-history']}
{$pageOrderSlip = ['order-slip']}
{$pageOrderFollow = ['order-follow', 'order-return']}
<div class="customer-links">
<div class="customer-links__list js-customer-links">
<a class="col-lg-4 col-md-6 col-sm-6 col-12 {if in_array($page.page_name, $pageIdentity)}active{/if}" id="identity-link" href="{$urls.pages.identity}">
<span class="link-item">
<i class="material-icons">&#xE853;</i>
{l s='Information' d='Shop.Theme.Customeraccount'}
</span>
</a>
{if $customer.addresses|count}
<a class="col-lg-4 col-md-6 col-sm-6 col-12 {if in_array($page.page_name, $pageAddresses)}active{/if}" id="addresses-link" href="{$urls.pages.addresses}">
<span class="link-item">
<i class="material-icons">&#xE56A;</i>
{l s='Addresses' d='Shop.Theme.Customeraccount'}
</span>
</a>
{else}
<a class="col-lg-4 col-md-6 col-sm-6 col-12 {if in_array($page.page_name, $pageAddresses)}active{/if}" id="address-link" href="{$urls.pages.address}">
<span class="link-item">
<i class="material-icons">&#xE567;</i>
{l s='Add first address' d='Shop.Theme.Customeraccount'}
</span>
</a>
{/if}
{if !$configuration.is_catalog}
<a class="col-lg-4 col-md-6 col-sm-6 col-12 {if in_array($page.page_name, $pageHistory)}active{/if}" id="history-link" href="{$urls.pages.history}">
<span class="link-item">
<i class="material-icons">&#xE916;</i>
{l s='Order history and details' d='Shop.Theme.Customeraccount'}
</span>
</a>
{/if}
{if !$configuration.is_catalog}
<a class="col-lg-4 col-md-6 col-sm-6 col-12 {if in_array($page.page_name, $pageOrderSlip)}active{/if}" id="order-slips-link" href="{$urls.pages.order_slip}">
<span class="link-item">
<i class="material-icons">&#xE8B0;</i>
{l s='Credit slips' d='Shop.Theme.Customeraccount'}
</span>
</a>
{/if}
{if $configuration.voucher_enabled && !$configuration.is_catalog}
<a class="col-lg-4 col-md-6 col-sm-6 col-12 {if in_array($page.page_name, $pageDiscount)}active{/if}" id="discounts-link" href="{$urls.pages.discount}">
<span class="link-item">
<i class="material-icons">&#xE54E;</i>
{l s='Vouchers' d='Shop.Theme.Customeraccount'}
</span>
</a>
{/if}
{if $configuration.return_enabled && !$configuration.is_catalog}
<a class="col-lg-4 col-md-6 col-sm-6 col-12 {if in_array($page.page_name, $pageOrderFollow)}active{/if}" id="returns-link" href="{$urls.pages.order_follow}">
<span class="link-item">
<i class="material-icons">&#xE860;</i>
{l s='Merchandise returns' d='Shop.Theme.Customeraccount'}
</span>
</a>
{/if}
{block name='display_customer_account'}
{hook h='displayCustomerAccount'}
{/block}
</div>
<div class="text-center customer-links__footer">
<a href="{$link->getPageLink('index', true, null, 'mylogout')}" class="customer-links__logout">
{l s='Sign out' d='Shop.Theme.Actions'}
</a>
</div>
</div>

View File

@ -0,0 +1,121 @@
{**
* 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/page.tpl'}
{block name='page_title'}
{l s='Your vouchers' d='Shop.Theme.Customeraccount'}
{/block}
{block name='page_content'}
{if $cart_rules}
<table class="table table-striped table-bordered hidden-sm-down">
<thead class="thead-default">
<tr>
<th>{l s='Code' d='Shop.Theme.Checkout'}</th>
<th>{l s='Description' d='Shop.Theme.Checkout'}</th>
<th>{l s='Quantity' d='Shop.Theme.Checkout'}</th>
<th>{l s='Value' d='Shop.Theme.Checkout'}</th>
<th>{l s='Minimum' d='Shop.Theme.Checkout'}</th>
<th>{l s='Cumulative' d='Shop.Theme.Checkout'}</th>
<th>{l s='Expiration date' d='Shop.Theme.Checkout'}</th>
</tr>
</thead>
<tbody>
{foreach from=$cart_rules item=cart_rule}
<tr>
<th scope="row" class="align-middle">{$cart_rule.code}</th>
<td class="align-middle">{$cart_rule.name}</td>
<td class="text-xs-right">{$cart_rule.quantity_for_user}</td>
<td class="align-middle">
<span class="text-primary font-weight-bold text-lowercase align-middle">
{$cart_rule.value}
</span>
</td>
<td class="align-middle">{$cart_rule.voucher_minimal}</td>
<td class="align-middle">{$cart_rule.voucher_cumulable}</td>
<td class="align-middle">
<span class="text-nowrap">
{$cart_rule.voucher_date}
</span>
</td>
</tr>
{/foreach}
</tbody>
</table>
<div class="cart-rules hidden-md-up">
{foreach from=$cart_rules item=cart_rule}
<div class="card mb-5">
<div class="card-header">
<h5 class="mb-0">{$cart_rule.name}</h5>
</div>
<div class="card-body">
<ul class="mb-0 row">
<li class="col-sm-6 mb-2">
<strong>
{l s='Code' d='Shop.Theme.Checkout'}:
</strong>
{$cart_rule.code}
</li>
<li class="col-sm-6 mb-2">
<strong>
{l s='Quantity' d='Shop.Theme.Checkout'}:
</strong>
{$cart_rule.quantity_for_user}
</li>
<li class="col-sm-6 mb-2">
<strong>
{l s='Value' d='Shop.Theme.Checkout'}:
</strong>
<span class="text-lowercase">
{$cart_rule.value}
</span>
</li>
<li class="col-sm-6 mb-2">
<strong>
{l s='Minimum' d='Shop.Theme.Checkout'}:
</strong>
{$cart_rule.voucher_minimal}
</li>
<li class="col-sm-6 mb-2">
<strong>
{l s='Cumulative' d='Shop.Theme.Checkout'}:
</strong>
{$cart_rule.voucher_cumulable}
</li>
<li class="col-sm-6 mb-2">
<strong>
{l s='Expiration date' d='Shop.Theme.Checkout'}:
</strong>
{$cart_rule.voucher_date}
</li>
</ul>
</div>
</div>
{/foreach}
</div>
{else}
<div class="alert alert-info" role="alert" data-alert="info">{l s='You do not have any vouchers.' d='Shop.Notifications.Warning'}</div>
{/if}
{/block}

View File

@ -0,0 +1,83 @@
{**
* 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='page.tpl'}
{block name='page_title'}
{l s='Guest Order Tracking' d='Shop.Theme.Customeraccount'}
{/block}
{block name='page_content'}
<form id="guestOrderTrackingForm" action="{$urls.pages.guest_tracking}" method="get">
<header>
<p>{l s='To track your order, please enter the following information:' d='Shop.Theme.Customeraccount'}</p>
</header>
<section class="form-fields">
<input type="hidden" name="controller" value="guest-tracking" >
<div class="form-group row">
<label class="col-md-3 form-control-label required">
{l s='Order Reference:' d='Shop.Forms.Labels'}
</label>
<div class="col-md-6">
<input
class="form-control"
name="order_reference"
type="text"
size="8"
value="{if isset($smarty.request.order_reference)}{$smarty.request.order_reference}{/if}"
>
<div class="form-control-comment">
{l s='For example: QIIXJXNUI or QIIXJXNUI#1' d='Shop.Theme.Customeraccount'}
</div>
</div>
</div>
<div class="form-group row">
<label class="col-md-3 form-control-label required">
{l s='Email:' d='Shop.Forms.Labels'}
</label>
<div class="col-md-6">
<input
class="form-control"
name="email"
type="email"
value="{if isset($smarty.request.email)}{$smarty.request.email}{/if}"
>
</div>
</div>
</section>
<footer class="form-footer text-center clearfix">
<button class="btn btn-primary d-none d-md-inline-block" type="submit">
{l s='Send' d='Shop.Theme.Actions'}
</button>
<button class="btn btn-primary btn-block d-block d-md-none" type="submit">
{l s='Send' d='Shop.Theme.Actions'}
</button>
</footer>
</form>
{/block}

View 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)
*}
{extends file='customer/order-detail.tpl'}
{block name='page_title'}
{l s='Guest Tracking' d='Shop.Theme.Customeraccount'}
{/block}
{block name='order_detail'}
{include file='customer/_partials/order-detail-no-return.tpl'}
{/block}
{block name='order_messages'}
{/block}
{if !$registered_customer_exists}
{block name='page_content' append}
<div class="row">
<div class="col-lg-6 col-md-8 col-12 mx-auto">
{include file='customer/_partials/account-transformation-form.tpl'}
</div>
</div>
{/block}
{/if}

View File

@ -0,0 +1,127 @@
{**
* 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/page.tpl'}
{block name='page_title'}
{l s='Order history' d='Shop.Theme.Customeraccount'}
{/block}
{block name='page_content'}
<h6>{l s='Here are the orders you\'ve placed since your account was created.' d='Shop.Theme.Customeraccount'}</h6>
{if $orders}
<table class="table table-striped table-bordered hidden-sm-down">
<thead class="thead-default">
<tr>
<th>{l s='Order reference' d='Shop.Theme.Checkout'}</th>
<th>{l s='Date' d='Shop.Theme.Checkout'}</th>
<th>{l s='Total price' d='Shop.Theme.Checkout'}</th>
<th class="hidden-md-down">{l s='Payment' d='Shop.Theme.Checkout'}</th>
<th class="hidden-md-down">{l s='Status' d='Shop.Theme.Checkout'}</th>
<th>&nbsp;</th>
</tr>
</thead>
<tbody>
{foreach from=$orders item=order}
<tr>
<th scope="row" class="align-middle">{$order.details.reference}</th>
<td class="align-middle">
<span class="text-nowrap">
{$order.details.order_date}
</span>
</td>
<td class="text-xs-right align-middle">
<span class="text-primary font-weight-bold text-lowercase">
{$order.totals.total.value}
</span>
</td>
<td class="hidden-md-down align-middle">{$order.details.payment}</td>
<td class="align-middle">
<span
class="label label-pill badge {if Tools::getBrightness($order.history.current.color) < 128}text-white{/if}"
style="background-color:{$order.history.current.color}"
>
{$order.history.current.ostate_name}
</span>
</td>
<td class="text-sm-center order-actions align-middle">
<a class="view-order-details-link btn btn-sm btn-primary" href="{$order.details.details_url}" data-link-action="view-order-details">
{l s='Details' d='Shop.Theme.Customeraccount'}
</a>
{if $order.details.reorder_url}
<div class="col-sm-6 mt-2">
<a class="reorder-link btn btn-sm btn-primary" href="{$order.details.reorder_url}" data-link-action="view-order-details">
{l s='Reorder' d='Shop.Theme.Actions'}
</a>
</div>
{/if}
</td>
</tr>
{/foreach}
</tbody>
</table>
<div class="orders d-md-none">
{foreach from=$orders item=order}
<div class="card mb-5">
<div class="card-header">
<h5 class="mb-0">{l s='Order reference' d='Shop.Theme.Checkout'}: {$order.details.reference}</h5>
</div>
<div class="card-body">
<ul class="mb-0 row">
<li class="col-sm-6 mb-2">
<strong>{l s='Date' d='Shop.Theme.Checkout'}:</strong> {$order.details.order_date}
</li>
<li class="col-sm-6 mb-2">
<strong>{l s='Total price' d='Shop.Theme.Checkout'}:</strong> {$order.totals.total.value}
</li>
<li class="col-sm-6 mb-2">
<strong>{l s='Status' d='Shop.Theme.Checkout'}:</strong> {$order.history.current.ostate_name}
</li>
</ul>
</div>
<div class="card-footer">
<div class="row mt-n2">
<div class="col-sm-6 mt-2">
<a class="view-order-details-link btn btn-primary btn-block btn-sm" href="{$order.details.details_url}" data-link-action="view-order-details">
{l s='Details' d='Shop.Theme.Customeraccount'}
</a>
</div>
{if $order.details.reorder_url}
<div class="col-sm-6 mt-2">
<a class="reorder-link btn btn-light btn-block btn-sm" href="{$order.details.reorder_url}" data-link-action="view-order-details">
{l s='Reorder' d='Shop.Theme.Actions'}
</a>
</div>
{/if}
</div>
</div>
</div>
{/foreach}
</div>
{else}
<div class="alert alert-info" role="alert" data-alert="info">{l s='You have not placed any orders.' d='Shop.Notifications.Warning'}</div>
{/if}
{/block}

View File

@ -0,0 +1,33 @@
{**
* 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/page.tpl'}
{block name='page_title'}
{l s='Your personal information' d='Shop.Theme.Customeraccount'}
{/block}
{block name='page_content'}
{render file='customer/_partials/customer-form.tpl' ui=$customer_form}
{/block}

View File

@ -0,0 +1,113 @@
{**
* 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/page.tpl'}
{block name='page_title'}
{l s='Your account' d='Shop.Theme.Customeraccount'}
{/block}
{block name='page_content'}
{Tools::redirect('identity')}
<div class="row">
<div class="links">
<a class="col-lg-4 col-md-6 col-sm-6 col-12" id="identity-link" href="{$urls.pages.identity}">
<span class="link-item">
<i class="material-icons">account_circle</i>
{l s='Information' d='Shop.Theme.Customeraccount'}
</span>
</a>
{if $customer.addresses|count}
<a class="col-lg-4 col-md-6 col-sm-6 col-12" id="addresses-link" href="{$urls.pages.addresses}">
<span class="link-item">
<i class="material-icons">location_on</i>
{l s='Addresses' d='Shop.Theme.Customeraccount'}
</span>
</a>
{else}
<a class="col-lg-4 col-md-6 col-sm-6 col-12" id="address-link" href="{$urls.pages.address}">
<span class="link-item">
<i class="material-icons">location_on</i>
{l s='Add first address' d='Shop.Theme.Customeraccount'}
</span>
</a>
{/if}
{if !$configuration.is_catalog}
<a class="col-lg-4 col-md-6 col-sm-6 col-12" id="history-link" href="{$urls.pages.history}">
<span class="link-item">
<i class="material-icons">library_books</i>
{l s='Order history and details' d='Shop.Theme.Customeraccount'}
</span>
</a>
{/if}
{if !$configuration.is_catalog}
<a class="col-lg-4 col-md-6 col-sm-6 col-12" id="order-slips-link" href="{$urls.pages.order_slip}">
<span class="link-item">
<i class="material-icons">&#xE8B0;</i>
{l s='Credit slips' d='Shop.Theme.Customeraccount'}
</span>
</a>
{/if}
{if $configuration.voucher_enabled && !$configuration.is_catalog}
<a class="col-lg-4 col-md-6 col-sm-6 col-12" id="discounts-link" href="{$urls.pages.discount}">
<span class="link-item">
<i class="material-icons">&#xE54E;</i>
{l s='Vouchers' d='Shop.Theme.Customeraccount'}
</span>
</a>
{/if}
{if $configuration.return_enabled && !$configuration.is_catalog}
<a class="col-lg-4 col-md-6 col-sm-6 col-12" id="returns-link" href="{$urls.pages.order_follow}">
<span class="link-item">
<i class="material-icons">&#xE860;</i>
{l s='Merchandise returns' d='Shop.Theme.Customeraccount'}
</span>
</a>
{/if}
{block name='display_customer_account'}
{hook h='displayCustomerAccount'}
{/block}
</div>
</div>
{/block}
{block name='page_footer'}
{block name='my_account_links'}
<div class="text-sm-center">
<a href="{$urls.actions.logout}" >
{l s='Sign out' d='Shop.Theme.Actions'}
</a>
</div>
{/block}
{/block}

View File

@ -0,0 +1,232 @@
{**
* 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/page.tpl'}
{block name='page_title'}
{l s='Order details' d='Shop.Theme.Customeraccount'}
{/block}
{block name='page_content'}
{block name='order_infos'}
<div id="order-infos">
<strong>
{l
s='Order Reference %reference% - placed on %date%'
d='Shop.Theme.Customeraccount'
sprintf=['%reference%' => $order.details.reference, '%date%' => $order.details.order_date]
}
</strong>
<ul>
{if $order.carrier.name}
<li><strong>{l s='Carrier' d='Shop.Theme.Checkout'}</strong> {$order.carrier.name}</li>
{/if}
{if $order.details.invoice_url}
<li>
<a href="{$order.details.invoice_url}">
{l s='Download your invoice as a PDF file.' d='Shop.Theme.Customeraccount'}
</a>
</li>
{/if}
{if $order.details.recyclable}
<li>
{l s='You have given permission to receive your order in recycled packaging.' d='Shop.Theme.Customeraccount'}
</li>
{/if}
{if $order.details.gift_message}
<li>{l s='You have requested gift wrapping for this order.' d='Shop.Theme.Customeraccount'}</li>
<li>{l s='Message' d='Shop.Theme.Customeraccount'} {$order.details.gift_message nofilter}</li>
{/if}
</ul>
{if $order.details.reorder_url}
<div class="mt-2 text-right">
<a href="{$order.details.reorder_url}" class="btn btn-outline-primary">{l s='Reorder' d='Shop.Theme.Actions'}</a>
</div>
{/if}
{/block}
{block name='order_history'}
<section id="order-history" class="my-4">
<div class="d-none d-md-block">
<h3 class="h4">{l s='Follow your order\'s status step-by-step' d='Shop.Theme.Customeraccount'}</h3>
<table class="table table-striped table-bordered hidden-xs-down">
<thead class="thead-default">
<tr>
<th>{l s='Date' d='Shop.Theme.Global'}</th>
<th>{l s='Status' d='Shop.Theme.Global'}</th>
</tr>
</thead>
<tbody>
{foreach from=$order.history item=state}
<tr>
<td>{$state.history_date}</td>
<td>
<span
class="label label-pill badge {if Tools::getBrightness($state.color) < 128}text-white{/if}"
style="background-color:{$state.color}">
{$state.ostate_name}
</span>
</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
<div class="d-md-none">
<div class="card">
<div class="card-header">
<h4 class="h5 card-title mb-0">
{l s='Follow your order\'s status step-by-step' d='Shop.Theme.Customeraccount'}
</h4>
</div>
<div class="card-body">
<ul class="mb-0">
{foreach from=$order.history item=state}
<li class="mb-2">
<strong class="date">
{$state.history_date}:
</strong>
<strong style="color:{$state.color}">
{$state.ostate_name}
</strong>
</li>
{/foreach}
</ul>
</div>
</div>
</div>
</section>
{/block}
{if $order.follow_up}
<div class="mb-4">
<p>{l s='Click the following link to track the delivery of your order' d='Shop.Theme.Customeraccount'}</p>
<a href="{$order.follow_up}">{$order.follow_up}</a>
</div>
{/if}
{block name='addresses'}
<div class="row mt-4 mb-n2">
{if $order.addresses.delivery}
<div class="col-sm-6 col-12 mb-3">
<article id="delivery-address" class="address card h-100">
<p class="address__header card-header h5">{l s='Delivery address %alias%' d='Shop.Theme.Checkout' sprintf=['%alias%' => $order.addresses.delivery.alias]}</p>
<div class="address__body card-body">
<address>{$order.addresses.delivery.formatted nofilter}</address>
</div>
</article>
</div>
{/if}
<div class="col-sm-6 col-12 mb-3">
<article id="invoice-address" class="address card h-100">
<p class="address__header card-header h5">{l s='Invoice address %alias%' d='Shop.Theme.Checkout' sprintf=['%alias%' => $order.addresses.invoice.alias]}</p>
<div class="address__body card-body">
<address>{$order.addresses.invoice.formatted nofilter}</address>
</div>
</article>
</div>
</div>
{/block}
{$HOOK_DISPLAYORDERDETAIL nofilter}
{block name='order_detail'}
{if $order.details.is_returnable && !$orderIsVirtual}
{include file='customer/_partials/order-detail-return.tpl'}
{else}
{include file='customer/_partials/order-detail-no-return.tpl'}
{/if}
{/block}
{block name='order_carriers'}
{if $order.shipping}
<div class="mb-4">
<table class="table table-striped table-bordered hidden-sm-down">
<thead class="thead-default">
<tr>
<th>{l s='Date' d='Shop.Theme.Global'}</th>
<th>{l s='Carrier' d='Shop.Theme.Checkout'}</th>
<th>{l s='Weight' d='Shop.Theme.Checkout'}</th>
<th>{l s='Shipping cost' d='Shop.Theme.Checkout'}</th>
<th>{l s='Tracking number' d='Shop.Theme.Checkout'}</th>
</tr>
</thead>
<tbody>
{foreach from=$order.shipping item=line}
<tr>
<td>{$line.shipping_date}</td>
<td>{$line.carrier_name}</td>
<td>{$line.shipping_weight}</td>
<td>{$line.shipping_cost}</td>
<td>{$line.tracking nofilter}</td>
</tr>
{/foreach}
</tbody>
</table>
<div class="hidden-md-up shipping-lines">
<div class="card">
<div class="card-header">
<h4 class="h5 mb-0 card-title">
{l s='Shipping infromations' d='Shop.Theme.Customeraccount'}
</h4>
</div>
<div class="card-body">
{foreach from=$order.shipping item=line}
<ul class="mb-0 row {if !$line@last} mb-2 border-bottom{/if}">
<li class="col-sm-6 mb-2">
<strong>{l s='Date' d='Shop.Theme.Global'}:</strong> {$line.shipping_date}
</li>
<li class="col-sm-6 mb-2">
<strong>{l s='Carrier' d='Shop.Theme.Checkout'}:</strong> {$line.carrier_name}
</li>
<li class="col-sm-6 mb-2">
<strong>{l s='Weight' d='Shop.Theme.Checkout'}:</strong> {$line.shipping_weight}
</li>
<li class="col-sm-6 mb-2">
<strong>{l s='Shipping cost' d='Shop.Theme.Checkout'}:</strong> {$line.shipping_cost}
</li>
<li class="col-sm-6 mb-2">
<strong>{l s='Tracking number' d='Shop.Theme.Checkout'}:</strong> {$line.tracking nofilter}
</li>
</ul>
{/foreach}
</div>
</div>
</div>
</div>
{/if}
{/block}
{block name='order_messages'}
{include file='customer/_partials/order-messages.tpl'}
{/block}
{/block}

View File

@ -0,0 +1,123 @@
{**
* 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/page.tpl'}
{block name='page_title'}
{l s='Merchandise returns' d='Shop.Theme.Customeraccount'}
{/block}
{block name='page_content'}
<h6>{l s='Here is a list of pending merchandise returns' d='Shop.Theme.Customeraccount'}</h6>
{if $ordersReturn && count($ordersReturn)}
<table class="table table-striped table-bordered hidden-sm-down">
<thead class="thead-default">
<tr>
<th>{l s='Order' d='Shop.Theme.Customeraccount'}</th>
<th>{l s='Return' d='Shop.Theme.Customeraccount'}</th>
<th>{l s='Package status' d='Shop.Theme.Customeraccount'}</th>
<th>{l s='Date issued' d='Shop.Theme.Customeraccount'}</th>
<th>{l s='Returns form' d='Shop.Theme.Customeraccount'}</th>
</tr>
</thead>
<tbody>
{foreach from=$ordersReturn item=return}
<tr>
<td class="align-middle"><a href="{$return.details_url}">{$return.reference}</a></td>
<td class="align-middle"><a href="{$return.return_url}">{$return.return_number}</a></td>
<td class="align-middle">{$return.state_name}</td>
<td class="align-middle">
<span class="text-nowrap">
{$return.return_date}
</span>
</td>
<td class="text-sm-center align-middle">
{if $return.print_url}
<a href="{$return.print_url}" class="btn btn-primary btn-sm">
<span class="material-icons btn-icon ml-1">file_download</span>
{l s='Print out' d='Shop.Theme.Actions'}
</a>
{else}
-
{/if}
</td>
</tr>
{/foreach}
</tbody>
</table>
<div class="order-returns hidden-md-up">
{foreach from=$ordersReturn item=return}
<div class="card">
<div class="card-header">
<p class="card-title mb-0 h5">
{l s='Return' d='Shop.Theme.Customeraccount'}: {$return.return_number}
</p>
</div>
<div class="card-body">
<ul class="mb-0 row">
<li class="col-sm-6 mb-2">
<strong>{l s='Order' d='Shop.Theme.Customeraccount'}:</strong>
<a href="{$return.details_url}">{$return.reference}</a>
</li>
<li class="col-sm-6 mb-2">
<strong>{l s='Package status' d='Shop.Theme.Customeraccount'}:</strong>
{$return.state_name}
</li>
<li class="col-sm-6 mb-2">
<strong>{l s='Date issued' d='Shop.Theme.Customeraccount'}:</strong>
{$return.return_date}
</li>
</ul>
</div>
<div class="card-footer">
<div class="row mt-n2">
<div class="col-sm-6 mt-2">
<a class="btn btn-primary btn-block btn-sm" href="{$return.return_url}">
{l s='Details' d='Shop.Theme.Customeraccount'}
</a>
</div>
{if $return.print_url}
<div class="col-sm-6 mt-2">
<a class="btn btn-light btn-block btn-sm" href="{$return.print_url}">
{l s='Print out' d='Shop.Theme.Actions'}
</a>
</div>
{/if}
</div>
</div>
</div>
{/foreach}
</div>
{else}
<div class="alert alert-info" role="alert" data-alert="info">{l s='You have no merchandise return authorizations.' d='Shop.Notifications.Error'}</div>
{/if}
{/block}

View File

@ -0,0 +1,158 @@
{extends file='customer/page.tpl'}
{block name='page_title'}
<h1 class="h1">{l s='Return details' d='Shop.Theme.Customeraccount'}</h1>
{/block}
{block name='page_content'}
{block name='order_return_infos'}
<div id="order-return-infos" class="mb-4">
<div class="mb-4">
<p class="mb-1">
<strong>{l
s='%number% on %date%'
d='Shop.Theme.Customeraccount'
sprintf=['%number%' => $return.return_number, '%date%' => $return.return_date]}
</strong>
</p>
<p class="mb-1">{l s='We have logged your return request.' d='Shop.Theme.Customeraccount'}</p>
<p class="mb-1">{l
s='Your package must be returned to us within %number% days of receiving your order.'
d='Shop.Theme.Customeraccount'
sprintf=['%number%' => $configuration.number_of_days_for_return]}</p>
<p class="mb-1">
{* [1][/1] is for a HTML tag. *}
{l
s='The current status of your merchandise return is: [1] %status% [/1]'
d='Shop.Theme.Customeraccount'
sprintf=[
'[1]' => '<strong>',
'[/1]' => '</strong>',
'%status%' => $return.state_name
]
}
</p>
</div>
<p class="h5 mb-2">
{l s='List of items to be returned:' d='Shop.Theme.Customeraccount'}
</p>
<table class="table table-striped table-bordered">
<thead class="thead-default">
<tr>
<th>{l s='Product' d='Shop.Theme.Catalog'}</th>
<th>{l s='Quantity' d='Shop.Theme.Checkout'}</th>
</tr>
</thead>
<tbody>
{foreach from=$products item=product}
<tr>
<td>
<strong>{$product.product_name}</strong>
{if $product.product_reference}
<br />
{l s='Reference' d='Shop.Theme.Catalog'}: {$product.product_reference}
{/if}
{if $product.customizations}
{foreach from=$product.customizations item="customization"}
<div class="customization">
<a href="#" data-toggle="modal" data-target="#product-customizations-modal-{$customization.id_customization}">{l s='Product customization' d='Shop.Theme.Catalog'}</a>
</div>
<div class="modal fade 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">
<button type="button" class="close" data-dismiss="modal" aria-label="{l s='Close' d='Shop.Theme.Global'}">
<span aria-hidden="true">&times;</span>
</button>
<h4 class="modal-title">{l s='Product customization' d='Shop.Theme.Catalog'}</h4>
</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}" loading="lazy">
{/if}
</div>
</div>
{/foreach}
</div>
</div>
</div>
</div>
{/foreach}
{/if}
</td>
<td>
{$product.product_quantity}
</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
{/block}
{if $return.state == 2}
<section class="card">
<div class="card-title">
<h3 class="card-title h5 mb-0">{l s='Reminder' d='Shop.Theme.Customeraccount'}</h3>
</div>
<div class="card-body">
<p class="card-text">
{l
s='All merchandise must be returned in its original packaging and in its original state.'
d='Shop.Theme.Customeraccount'
}<br>
{* [1][/1] is for a HTML tag. *}
{l
s='Please print out the [1]returns form[/1] and include it with your package.'
d='Shop.Theme.Customeraccount'
sprintf=[
'[1]' => '<a href="'|cat:$return.print_url|cat:'">',
'[/1]' => '</a>'
]
}
<br>
{* [1][/1] is for a HTML tag. *}
{l
s='Please check the [1]returns form[/1] for the correct address.'
d='Shop.Theme.Customeraccount'
sprintf=[
'[1]' => '<a href="'|cat:$return.print_url|cat:'">',
'[/1]' => '</a>'
]
}
</p>
<p class="card-text">
{l
s='When we receive your package, we will notify you by email. We will then begin processing order reimbursement.'
d='Shop.Theme.Customeraccount'
}<br>
<a href="{$urls.pages.contact}">
{l
s='Please let us know if you have any questions.'
d='Shop.Theme.Customeraccount'
}
</a><br>
{l
s='If the conditions of return listed above are not respected, we reserve the right to refuse your package and/or reimbursement.'
d='Shop.Theme.Customeraccount'
}
</p>
</div>
</section>
{/if}
{/block}

View File

@ -0,0 +1,92 @@
{**
* 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/page.tpl'}
{block name='page_title'}
{l s='Credit slips' d='Shop.Theme.Customeraccount'}
{/block}
{block name='page_content'}
<h6>{l s='Credit slips you have received after canceled orders.' d='Shop.Theme.Customeraccount'}</h6>
{if $credit_slips}
<table class="table table-striped table-bordered hidden-sm-down">
<thead class="thead-default">
<tr>
<th>{l s='Order' d='Shop.Theme.Customeraccount'}</th>
<th>{l s='Credit slip' d='Shop.Theme.Customeraccount'}</th>
<th>{l s='Date issued' d='Shop.Theme.Customeraccount'}</th>
<th>{l s='View credit slip' d='Shop.Theme.Customeraccount'}</th>
</tr>
</thead>
<tbody>
{foreach from=$credit_slips item=slip}
<tr>
<td class="align-middle"><a href="{$slip.order_url_details}" data-link-action="view-order-details">{$slip.order_reference}</a></td>
<td class="align-middle" scope="row">{$slip.credit_slip_number}</td>
<td class="align-middle">{$slip.credit_slip_date}</td>
<td class="align-middle text-sm-center">
<a href="{$slip.url}" class="btn btn-primary btn-sm">
<span class="material-icons btn-icon ml-1">file_download</span>
{l s='Download' d='Shop.Theme.Catalog'}
</a>
</td>
</tr>
{/foreach}
</tbody>
</table>
<div class="credit-slips hidden-md-up">
{foreach from=$credit_slips item=slip}
<div class="card mb-5">
<div class="card-header">
<p class="card-title h5 mb-0">
{l s='Credit slip' d='Shop.Theme.Customeraccount'} - {$slip.credit_slip_number}
</p>
</div>
<div class="card-body">
<ul class="mb-0 row">
<li class="col-sm-6 mb-2">
<strong>{l s='Order' d='Shop.Theme.Customeraccount'}:</strong>
<a href="{$slip.order_url_details}" data-link-action="view-order-details">{$slip.order_reference}</a>
</li>
<li class="col-sm-6 mb-2">
<strong>{l s='Date issued' d='Shop.Theme.Customeraccount'}:</strong>
{$slip.credit_slip_date}
</li>
</ul>
</div>
<div class="card-footer">
<a href="{$slip.url}" class="btn btn-primary btn-sm btn-block">
<span class="material-icons btn-icon ml-1">file_download</span>
{l s='View credit slip' d='Shop.Theme.Customeraccount'}
</a>
</div>
</div>
{/foreach}
</div>
{else}
<div class="alert alert-info" role="alert" data-alert="info">{l s='You have not received any credit slips.' d='Shop.Notifications.Warning'}</div>
{/if}
{/block}

View File

@ -0,0 +1,58 @@
{**
* 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='page.tpl'}
{block name='page_header_container'}
{capture name="acc_title"}
{$smarty.block.parent}
{/capture}
{/block}
{block name='notifications'}
{/block}
{block name='page_content_container'}
<div class="row">
<div class="col-lg-3 col-12">
{include file='customer/customer-links.tpl'}
</div>
<div class="pl-lg-5 col-lg-9 col-12">
<section id="content" class="{block name='pageContentClass'}page-content {/block}page-content--{$page.page_name}">
{$smarty.capture.acc_title nofilter}
{block name='page_content_top'}
{block name='customer_notifications'}
{include file='_partials/notifications.tpl'}
{/block}
{/block}
{block name='page_content'}
<!-- Page content -->
{/block}
</section>
</div>
</div>
{/block}

View File

@ -0,0 +1,76 @@
{**
* 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='page.tpl'}
{block name='page_title'}
{l s='Forgot your password?' d='Shop.Theme.Customeraccount'}
{/block}
{block name='page_content'}
<form action="{$urls.pages.password}" class="forgotten-password card user-form user-form--sm" method="post">
<div class="card-body">
{if $errors}
<div class="alert alert-danger">
{foreach $errors as $error}
{$error}<br>
{/foreach}
</div>
{/if}
<header>
<p class="send-renew-password-link">{l s='Please enter the email address you used to register. You will receive a temporary link to reset your password.' d='Shop.Theme.Customeraccount'}</p>
</header>
<section class="form-fields">
<div class="form-group">
<label class="form-control-label required">{l s='Email address' d='Shop.Forms.Labels'}</label>
<input type="email" name="email" id="email" value="{if isset($smarty.post.email)}{$smarty.post.email|stripslashes}{/if}" class="form-control" required>
<div class="text-center mt-3">
<button class="form-control-submit btn btn-primary d-none d-md-inline-block" name="submit" type="submit">
{l s='Send reset link' d='Shop.Theme.Actions'}
</button>
<button class="form-control-submit btn btn-primary btn-block d-block d-md-none" name="submit" type="submit">
{l s='Send reset link' d='Shop.Theme.Actions'}
</button>
</div>
</div>
</section>
</div>
<div class="card-footer text-center">
<a href="{$urls.pages.my_account}" class="account-link">
<span>{l s='Back to login' d='Shop.Theme.Actions'}</span>
</a>
</div>
</form>
{/block}
{block name='page_footer'}
{/block}

View File

@ -0,0 +1,49 @@
{**
* 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='page.tpl'}
{block name='page_title'}
{l s='Forgot your password?' d='Shop.Theme.Customeraccount'}
{/block}
{block name='page_content'}
<div class="card user-form user-form--sm">
<div class="card-body">
{if $successes}
<div class="alert alert-success mb-0">
{foreach $successes as $success}
{$success}<br>
{/foreach}
</div>
{/if}
</div>
<div class="card-footer text-center">
<a href="{$urls.pages.authentication}">{l s='Back to Login' d='Shop.Theme.Actions'}</a>
</div>
</div>
{/block}
{block name='page_footer'}
{/block}

View File

@ -0,0 +1,81 @@
{**
* 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='page.tpl'}
{block name='page_title'}
{l s='Reset your password' d='Shop.Theme.Customeraccount'}
{/block}
{block name='page_content'}
<form action="{$urls.pages.password}" method="post" class="card user-form user-form--sm">
<section class="form-fields card-body">
{if $errors}
<div class="alert alert-error">
{foreach $errors as $error}
{$error}<br>
{/foreach}
</div>
{/if}
<p>
{l
s='Email address: %email%'
d='Shop.Theme.Customeraccount'
sprintf=['%email%' => $customer_email|stripslashes]}
</p>
<div class="form-group">
<label class="form-control-label">{l s='New password' d='Shop.Forms.Labels'}</label>
<input class="form-control" type="password" data-validate="isPasswd" name="passwd" value="">
</div>
<div class="form-group">
<label class="form-control-label">{l s='Confirmation' d='Shop.Forms.Labels'}</label>
<input class="form-control" type="password" data-validate="isPasswd" name="confirmation" value="">
</div>
<input type="hidden" name="token" id="token" value="{$customer_token}">
<input type="hidden" name="id_customer" id="id_customer" value="{$id_customer}">
<input type="hidden" name="reset_token" id="reset_token" value="{$reset_token}">
<div class="text-center mt-3">
<button class="btn btn-primary d-none d-md-inline-block" type="submit" name="submit">
{l s='Change Password' d='Shop.Theme.Actions'}
</button>
<button class="btn btn-primary btn-block d-block d-md-none" type="submit" name="submit">
{l s='Change Password' d='Shop.Theme.Actions'}
</button>
</div>
</section>
<div class="card-footer text-center">
<a href="{$urls.pages.authentication}">{l s='Back to Login' d='Shop.Theme.Actions'}</a>
</div>
</form>
{/block}
{block name='page_footer'}
{/block}

View 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)
*}
{extends file='page.tpl'}
{block name='page_title'}
{l s='Create an account' d='Shop.Theme.Customeraccount'}
{/block}
{block name='page_content'}
{block name='register_form_container'}
<div class="card user-form user-form--sm">
<div class="card-body">
{$hook_create_account_top nofilter}
<section class="register-form">
{render file='customer/_partials/customer-form.tpl' ui=$register_form}
</section>
{/block}
</div>
<div class="card-footer text-center">
<p class="mb-0">{l s='Already have an account?' d='Shop.Theme.Customeraccount'} <a
href="{$urls.pages.authentication}">{l s='Log in instead!' d='Shop.Theme.Customeraccount'}</a></p>
</div>
</div>
{/block}