first commit
This commit is contained in:
63
themes/classic/templates/customer/_partials/address-form.tpl
Normal file
63
themes/classic/templates/customer/_partials/address-form.tpl
Normal 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="address_form"}
|
||||
<div class="js-address-form">
|
||||
{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 clearfix">
|
||||
<input type="hidden" name="submitAddress" value="1">
|
||||
{block name='form_buttons'}
|
||||
<button class="btn btn-primary form-control-submit float-xs-right" type="submit">
|
||||
{l s='Save' d='Shop.Theme.Actions'}
|
||||
</button>
|
||||
{/block}
|
||||
</footer>
|
||||
{/block}
|
||||
|
||||
</form>
|
||||
</div>
|
||||
{/block}
|
||||
@@ -0,0 +1,47 @@
|
||||
{**
|
||||
* 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_block_item'}
|
||||
<article id="address-{$address.id}" class="address" data-id-address="{$address.id}">
|
||||
<div class="address-body">
|
||||
<h4>{$address.alias}</h4>
|
||||
<address>{$address.formatted nofilter}</address>
|
||||
{* Display the extra field values added in an address from using hook 'additionalCustomerAddressFields' *}
|
||||
{hook h='displayAdditionalCustomerAddressFields' address=$address}
|
||||
</div>
|
||||
|
||||
{block name='address_block_item_actions'}
|
||||
<div class="address-footer">
|
||||
<a href="{url entity=address id=$address.id}" data-link-action="edit-address">
|
||||
<i class="material-icons"></i>
|
||||
<span>{l s='Update' d='Shop.Theme.Actions'}</span>
|
||||
</a>
|
||||
<a href="{url entity=address id=$address.id params=['delete' => 1, 'token' => $token]}" data-link-action="delete-address">
|
||||
<i class="material-icons"></i>
|
||||
<span>{l s='Delete' d='Shop.Theme.Actions'}</span>
|
||||
</a>
|
||||
</div>
|
||||
{/block}
|
||||
</article>
|
||||
{/block}
|
||||
@@ -0,0 +1,54 @@
|
||||
{**
|
||||
* 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" method="post">
|
||||
<div>
|
||||
{block "form_fields"}
|
||||
{foreach from=$formFields item="field"}
|
||||
{block "form_field"}
|
||||
{form_field field=$field}
|
||||
{/block}
|
||||
{/foreach}
|
||||
{$hook_create_account_form nofilter}
|
||||
{/block}
|
||||
</div>
|
||||
|
||||
{block name='customer_form_footer'}
|
||||
<footer class="form-footer clearfix">
|
||||
<input type="hidden" name="submitCreate" value="1">
|
||||
{block "form_buttons"}
|
||||
<button class="btn btn-primary form-control-submit float-xs-right" data-link-action="save-customer" type="submit">
|
||||
{l s='Save' d='Shop.Theme.Actions'}
|
||||
</button>
|
||||
{/block}
|
||||
</footer>
|
||||
{/block}
|
||||
|
||||
</form>
|
||||
{/block}
|
||||
60
themes/classic/templates/customer/_partials/login-form.tpl
Normal file
60
themes/classic/templates/customer/_partials/login-form.tpl
Normal file
@@ -0,0 +1,60 @@
|
||||
{**
|
||||
* 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">
|
||||
<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-sm-center clearfix">
|
||||
<input type="hidden" name="submitLogin" value="1">
|
||||
{block name='form_buttons'}
|
||||
<button id="submit-login" class="btn btn-primary" 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}
|
||||
@@ -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='my_account_links'}
|
||||
<a href="{$urls.pages.my_account}" class="account-link">
|
||||
<i class="material-icons"></i>
|
||||
<span>{l s='Back to your account' d='Shop.Theme.Customeraccount'}</span>
|
||||
</a>
|
||||
<a href="{$urls.pages.index}" class="account-link">
|
||||
<i class="material-icons"></i>
|
||||
<span>{l s='Home' d='Shop.Theme.Global'}</span>
|
||||
</a>
|
||||
{/block}
|
||||
@@ -0,0 +1,175 @@
|
||||
{**
|
||||
* 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="box hidden-sm-down">
|
||||
<table id="order-products" class="table table-bordered">
|
||||
<thead class="thead-default">
|
||||
<tr>
|
||||
<th>{l s='Product' d='Shop.Theme.Catalog'}</th>
|
||||
<th>{l s='Quantity' d='Shop.Theme.Catalog'}</th>
|
||||
<th>{l s='Unit price' d='Shop.Theme.Catalog'}</th>
|
||||
<th>{l s='Total price' d='Shop.Theme.Catalog'}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
{foreach from=$order.products item=product}
|
||||
<tr>
|
||||
<td>
|
||||
<strong>
|
||||
<a {if isset($product.download_link)}href="{$product.download_link}"{/if}>
|
||||
{$product.name}
|
||||
</a>
|
||||
</strong><br/>
|
||||
{if $product.product_reference}
|
||||
{l s='Reference' d='Shop.Theme.Catalog'}: {$product.product_reference}<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">×</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-xs-4 label">
|
||||
{$field.label}
|
||||
</div>
|
||||
<div class="col-sm-9 col-xs-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>
|
||||
{if $product.customizations}
|
||||
{foreach $product.customizations as $customization}
|
||||
{$customization.quantity}
|
||||
{/foreach}
|
||||
{else}
|
||||
{$product.quantity}
|
||||
{/if}
|
||||
</td>
|
||||
<td class="text-xs-right">{$product.price}</td>
|
||||
<td class="text-xs-right">{$product.total}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
<tfoot>
|
||||
{foreach $order.subtotals as $line}
|
||||
{if $line.value}
|
||||
<tr class="text-xs-right line-{$line.type}">
|
||||
<td colspan="3">{$line.label}</td>
|
||||
<td>{$line.value}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/foreach}
|
||||
<tr class="text-xs-right line-{$order.totals.total.type}">
|
||||
<td colspan="3">{$order.totals.total.label}</td>
|
||||
<td>{$order.totals.total.value}</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="order-items hidden-md-up box">
|
||||
{foreach from=$order.products item=product}
|
||||
<div class="order-item">
|
||||
<div class="row">
|
||||
<div class="col-sm-5 desc">
|
||||
<div class="name">{$product.name}</div>
|
||||
{if $product.product_reference}
|
||||
<div class="ref">{l s='Reference' d='Shop.Theme.Catalog'}: {$product.product_reference}</div>
|
||||
{/if}
|
||||
{if $product.customizations}
|
||||
{foreach $product.customizations as $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="_mobile_product_customization_modal_wrapper_{$customization.id_customization}">
|
||||
</div>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</div>
|
||||
<div class="col-sm-7 qty">
|
||||
<div class="row">
|
||||
<div class="col-xs-4 text-sm-left text-xs-left">
|
||||
{$product.price}
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
{if $product.customizations}
|
||||
{foreach $product.customizations as $customization}
|
||||
{$customization.quantity}
|
||||
{/foreach}
|
||||
{else}
|
||||
{$product.quantity}
|
||||
{/if}
|
||||
</div>
|
||||
<div class="col-xs-4 text-xs-right">
|
||||
{$product.total}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
<div class="order-totals hidden-md-up box">
|
||||
{foreach $order.subtotals as $line}
|
||||
{if $line.value}
|
||||
<div class="order-total row">
|
||||
<div class="col-xs-8"><strong>{$line.label}</strong></div>
|
||||
<div class="col-xs-4 text-xs-right">{$line.value}</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
<div class="order-total row">
|
||||
<div class="col-xs-8"><strong>{$order.totals.total.label}</strong></div>
|
||||
<div class="col-xs-4 text-xs-right">{$order.totals.total.value}</div>
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
@@ -0,0 +1,253 @@
|
||||
{**
|
||||
* 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'}
|
||||
<form id="order-return-form" class="js-order-return-form" action="{$urls.pages.order_follow}" method="post">
|
||||
|
||||
<div class="box hidden-sm-down">
|
||||
<table id="order-products" class="table table-bordered return">
|
||||
<thead class="thead-default">
|
||||
<tr>
|
||||
<th class="head-checkbox"><input type="checkbox"/></th>
|
||||
<th>{l s='Product' d='Shop.Theme.Catalog'}</th>
|
||||
<th>{l s='Quantity' d='Shop.Theme.Catalog'}</th>
|
||||
<th>{l s='Returned' d='Shop.Theme.Customeraccount'}</th>
|
||||
<th>{l s='Unit price' d='Shop.Theme.Catalog'}</th>
|
||||
<th>{l s='Total price' d='Shop.Theme.Catalog'}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
{foreach from=$order.products item=product name=products}
|
||||
<tr>
|
||||
<td>
|
||||
{if !$product.customizations}
|
||||
<span id="_desktop_product_line_{$product.id_order_detail}">
|
||||
<input type="checkbox" id="cb_{$product.id_order_detail}" name="ids_order_detail[{$product.id_order_detail}]" value="{$product.id_order_detail}">
|
||||
</span>
|
||||
{else}
|
||||
{foreach $product.customizations as $customization}
|
||||
<span id="_desktop_product_customization_line_{$product.id_order_detail}_{$customization.id_customization}">
|
||||
<input type="checkbox" id="cb_{$product.id_order_detail}" name="customization_ids[{$product.id_order_detail}][]" value="{$customization.id_customization}">
|
||||
</span>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</td>
|
||||
<td>
|
||||
<strong>{$product.name}</strong><br/>
|
||||
{if $product.product_reference}
|
||||
{l s='Reference' d='Shop.Theme.Catalog'}: {$product.product_reference}<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">×</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-xs-4 label">
|
||||
{$field.label}
|
||||
</div>
|
||||
<div class="col-sm-9 col-xs-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="qty">
|
||||
{if !$product.customizations}
|
||||
<div class="current">
|
||||
{$product.quantity}
|
||||
</div>
|
||||
{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="form-control form-control-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="current">
|
||||
{$customization.quantity}
|
||||
</div>
|
||||
<div class="select" id="_desktop_return_qty_{$product.id_order_detail}_{$customization.id_customization}">
|
||||
<select
|
||||
name="customization_qty_input[{$customization.id_customization}]"
|
||||
class="form-control form-control-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}
|
||||
<div class="clearfix"></div>
|
||||
{/if}
|
||||
</td>
|
||||
<td class="text-xs-right">{$product.qty_returned}</td>
|
||||
<td class="text-xs-right">{$product.price}</td>
|
||||
<td class="text-xs-right">{$product.total}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
<tfoot>
|
||||
{foreach $order.subtotals as $line}
|
||||
{if $line.value}
|
||||
<tr class="text-xs-right line-{$line.type}">
|
||||
<td colspan="5">{$line.label}</td>
|
||||
<td colspan="2">{$line.value}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/foreach}
|
||||
<tr class="text-xs-right line-{$order.totals.total.type}">
|
||||
<td colspan="5">{$order.totals.total.label}</td>
|
||||
<td colspan="2">{$order.totals.total.value}</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="order-items hidden-md-up box">
|
||||
{foreach from=$order.products item=product}
|
||||
<div class="order-item">
|
||||
<div class="row">
|
||||
<div class="checkbox">
|
||||
{if !$product.customizations}
|
||||
<span id="_mobile_product_line_{$product.id_order_detail}"></span>
|
||||
{else}
|
||||
{foreach $product.customizations as $customization}
|
||||
<span id="_mobile_product_customization_line_{$product.id_order_detail}_{$customization.id_customization}"></span>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</div>
|
||||
<div class="content">
|
||||
<div class="row">
|
||||
<div class="col-sm-5 desc">
|
||||
<div class="name">{$product.name}</div>
|
||||
{if $product.product_reference}
|
||||
<div class="ref">{l s='Reference' d='Shop.Theme.Catalog'}: {$product.product_reference}</div>
|
||||
{/if}
|
||||
{if $product.customizations}
|
||||
{foreach $product.customizations as $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="_mobile_product_customization_modal_wrapper_{$customization.id_customization}">
|
||||
</div>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</div>
|
||||
<div class="col-sm-7 qty">
|
||||
<div class="row">
|
||||
<div class="col-xs-4 text-sm-left text-xs-left">
|
||||
{$product.price}
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
{if $product.customizations}
|
||||
{foreach $product.customizations as $customization}
|
||||
<div class="q">{l s='Quantity' d='Shop.Theme.Catalog'}: {$customization.quantity}</div>
|
||||
<div class="s" id="_mobile_return_qty_{$product.id_order_detail}_{$customization.id_customization}"></div>
|
||||
{/foreach}
|
||||
{else}
|
||||
<div class="q">{l s='Quantity' d='Shop.Theme.Catalog'}: {$product.quantity}</div>
|
||||
{if $product.quantity > $product.qty_returned}
|
||||
<div class="s" id="_mobile_return_qty_{$product.id_order_detail}"></div>
|
||||
{/if}
|
||||
{/if}
|
||||
{if $product.qty_returned > 0}
|
||||
<div>{l s='Returned' d='Shop.Theme.Customeraccount'}: {$product.qty_returned}</div>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="col-xs-4 text-xs-right">
|
||||
{$product.total}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
<div class="order-totals hidden-md-up box">
|
||||
{foreach $order.subtotals as $line}
|
||||
{if $line.value}
|
||||
<div class="order-total row">
|
||||
<div class="col-xs-8"><strong>{$line.label}</strong></div>
|
||||
<div class="col-xs-4 text-xs-right">{$line.value}</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
<div class="order-total row">
|
||||
<div class="col-xs-8"><strong>{$order.totals.total.label}</strong></div>
|
||||
<div class="col-xs-4 text-xs-right">{$order.totals.total.value}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box">
|
||||
<header>
|
||||
<h3>{l s='Merchandise return' d='Shop.Theme.Customeraccount'}</h3>
|
||||
<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>
|
||||
</header>
|
||||
<section class="form-fields">
|
||||
<div class="form-group">
|
||||
<textarea cols="67" rows="3" name="returnText" class="form-control"></textarea>
|
||||
</div>
|
||||
</section>
|
||||
<footer class="form-footer">
|
||||
<input type="hidden" name="id_order" value="{$order.details.id}">
|
||||
<button class="form-control-submit btn btn-primary" type="submit" name="submitReturnMerchandise">
|
||||
{l s='Request a return' d='Shop.Theme.Customeraccount'}
|
||||
</button>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
{/block}
|
||||
@@ -0,0 +1,85 @@
|
||||
{**
|
||||
* 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">
|
||||
{$message.name}<br/>
|
||||
{$message.message_date}
|
||||
</div>
|
||||
<div class="col-sm-8">
|
||||
{$message.message nofilter}
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
{block name='order_message_form'}
|
||||
<section class="order-message-form box">
|
||||
<form action="{$urls.pages.order_detail}" method="post">
|
||||
|
||||
<header>
|
||||
<h3>{l s='Add a message' d='Shop.Theme.Customeraccount'}</h3>
|
||||
<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>
|
||||
</header>
|
||||
|
||||
<section class="form-fields">
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 form-control-label">{l s='Product' d='Shop.Forms.Labels'}</label>
|
||||
<div class="col-md-5">
|
||||
<select name="id_product" class="form-control form-control-select">
|
||||
<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>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 form-control-label"></label>
|
||||
<div class="col-md-9">
|
||||
<textarea rows="3" name="msgText" class="form-control"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
<footer class="form-footer text-sm-center">
|
||||
<input type="hidden" name="id_order" value="{$order.details.id}">
|
||||
<button type="submit" name="submitMessage" class="btn btn-primary form-control-submit">
|
||||
{l s='Send' d='Shop.Theme.Actions'}
|
||||
</button>
|
||||
</footer>
|
||||
|
||||
</form>
|
||||
</section>
|
||||
{/block}
|
||||
Reference in New Issue
Block a user