first commit
This commit is contained in:
63
themes/ayon__/templates/customer/_partials/address-form.tpl
Normal file
63
themes/ayon__/templates/customer/_partials/address-form.tpl
Normal file
@@ -0,0 +1,63 @@
|
||||
{**
|
||||
* 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_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 float-xs-right" type="submit" class="form-control-submit">
|
||||
{l s='Save' d='Shop.Theme.Actions'}
|
||||
</button>
|
||||
{/block}
|
||||
</footer>
|
||||
{/block}
|
||||
|
||||
</form>
|
||||
</div>
|
||||
{/block}
|
||||
21
themes/ayon__/templates/customer/_partials/block-address.tpl
Normal file
21
themes/ayon__/templates/customer/_partials/block-address.tpl
Normal file
@@ -0,0 +1,21 @@
|
||||
{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>
|
||||
</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><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-edit-2"><polygon points="16 3 21 8 8 21 3 21 3 16 16 3"></polygon></svg></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><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-trash-2"><polyline points="3 6 5 6 21 6"></polyline><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path><line x1="10" y1="11" x2="10" y2="17"></line><line x1="14" y1="11" x2="14" y2="17"></line></svg></i>
|
||||
<span>{l s='Delete' d='Shop.Theme.Actions'}</span>
|
||||
</a>
|
||||
</div>
|
||||
{/block}
|
||||
</article>
|
||||
{/block}
|
||||
54
themes/ayon__/templates/customer/_partials/customer-form.tpl
Normal file
54
themes/ayon__/templates/customer/_partials/customer-form.tpl
Normal file
@@ -0,0 +1,54 @@
|
||||
{**
|
||||
* 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='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">
|
||||
<section>
|
||||
{block "form_fields"}
|
||||
{foreach from=$formFields item="field"}
|
||||
{block "form_field"}
|
||||
{form_field field=$field}
|
||||
{/block}
|
||||
{/foreach}
|
||||
{$hook_create_account_form nofilter}
|
||||
{/block}
|
||||
</section>
|
||||
|
||||
{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 wide 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/ayon__/templates/customer/_partials/login-form.tpl
Normal file
60
themes/ayon__/templates/customer/_partials/login-form.tpl
Normal file
@@ -0,0 +1,60 @@
|
||||
{**
|
||||
* 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='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">
|
||||
|
||||
<section>
|
||||
{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>
|
||||
</section>
|
||||
|
||||
{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 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 @@
|
||||
{**
|
||||
* 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='my_account_links'}
|
||||
<a href="{$urls.pages.my_account}" class="account-link">
|
||||
<i class="fa fa-long-arrow-left"></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}
|
||||
70
themes/ayon__/templates/customer/_partials/myacc_left.tpl
Normal file
70
themes/ayon__/templates/customer/_partials/myacc_left.tpl
Normal file
@@ -0,0 +1,70 @@
|
||||
|
||||
<div class="myacc_left col-md-12 col-lg-3 side-column">
|
||||
|
||||
<div class="row">
|
||||
|
||||
<span class="myacc_name">{$customer.firstname} {$customer.lastname}</span>
|
||||
<div class="links">
|
||||
<a href="{$urls.pages.my_account}">
|
||||
<i><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-monitor"><rect x="2" y="3" width="20" height="14" rx="2" ry="2"></rect><line x1="8" y1="21" x2="16" y2="21"></line><line x1="12" y1="17" x2="12" y2="21"></line></svg></i>
|
||||
{l s='Dashboard' d='Shop.Theme.Customeraccount'}
|
||||
</a>
|
||||
|
||||
{if !$configuration.is_catalog}
|
||||
<a id="history-link" href="{$urls.pages.history}">
|
||||
<i><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28"><path d="M15,2.28l8.8,4.43a2.22,2.22,0,0,1,1.22,2V19.24a2.22,2.22,0,0,1-1.22,2L15,25.66a2.19,2.19,0,0,1-2,0l-8.8-4.43a2.22,2.22,0,0,1-1.21-2V8.69a2.22,2.22,0,0,1,1.22-2L13,2.28A2.19,2.19,0,0,1,15,2.28Z" style="fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px"/><polyline points="3.45 7.51 14.08 12.86 24.7 7.51" style="fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px"/><line x1="14" y1="26" x2="14" y2="13" style="fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px"/><line x1="8.59" y1="4.57" x2="19.57" y2="10.09" style="fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px"/></svg></i>
|
||||
{l s='Orders' d='Shop.Theme.Customeraccount'}
|
||||
</a>
|
||||
{/if}
|
||||
|
||||
<a id="identity-link" href="{$urls.pages.identity}">
|
||||
<i><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28"><path d="M16.26,15.7A4,4,0,0,0,14,15H7a4,4,0,0,0-4,4v2l1,2h7" style="fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px"/><circle cx="10.5" cy="7" r="4" style="fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px"/><polygon points="22.96 14.85 26.15 18.04 18.18 26 15 26 15 22.82 22.96 14.85" style="fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px"/></svg></i>
|
||||
{l s='Information' d='Shop.Theme.Customeraccount'}
|
||||
</a>
|
||||
|
||||
{if $customer.addresses|count}
|
||||
<a id="addresses-link" href="{$urls.pages.addresses}">
|
||||
<i><svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-map-pin"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle></svg></i>
|
||||
{l s='Addresses' d='Shop.Theme.Customeraccount'}
|
||||
</a>
|
||||
{else}
|
||||
<a id="address-link" href="{$urls.pages.address}">
|
||||
<i><svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-map-pin"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle></svg></i>
|
||||
{l s='Add first address' d='Shop.Theme.Customeraccount'}
|
||||
</a>
|
||||
{/if}
|
||||
|
||||
{if !$configuration.is_catalog}
|
||||
<a id="order-slips-link" href="{$urls.pages.order_slip}">
|
||||
<i><svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-file"><path d="M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"></path><polyline points="13 2 13 9 20 9"></polyline></svg></i>
|
||||
{l s='Credit slips' d='Shop.Theme.Customeraccount'}
|
||||
</a>
|
||||
{/if}
|
||||
|
||||
{if $configuration.voucher_enabled && !$configuration.is_catalog}
|
||||
<a id="discounts-link" href="{$urls.pages.discount}">
|
||||
<i><svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-tag"><path d="M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z"></path><line x1="7" y1="7" x2="7" y2="7"></line></svg></i>
|
||||
{l s='Coupons' d='Shop.Theme.Customeraccount'}
|
||||
</a>
|
||||
{/if}
|
||||
|
||||
{if $configuration.return_enabled && !$configuration.is_catalog}
|
||||
<a id="returns-link" href="{$urls.pages.order_follow}">
|
||||
<i><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-clipboard"><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"></path><rect x="8" y="2" width="8" height="4" rx="1" ry="1"></rect></svg></i>
|
||||
{l s='Merchandise returns' d='Shop.Theme.Customeraccount'}
|
||||
</a>
|
||||
{/if}
|
||||
|
||||
{block name='display_customer_account'}
|
||||
{hook h='displayCustomerAccount'}
|
||||
{/block}
|
||||
|
||||
<a class="logout" href="{$urls.actions.logout}" rel="nofollow">
|
||||
<i><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-power"><path d="M18.36 6.64a9 9 0 1 1-12.73 0"></path><line x1="12" y1="2" x2="12" y2="12"></line></svg></i>
|
||||
{l s='Sign out' d='Shop.Theme.Customeraccount'}
|
||||
</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,175 @@
|
||||
{**
|
||||
* 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='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.reference}
|
||||
{l s='Reference' d='Shop.Theme.Catalog'}: {$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="Close">
|
||||
<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}">
|
||||
{/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.reference}
|
||||
<div class="ref">{l s='Reference' d='Shop.Theme.Catalog'}: {$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 @@
|
||||
{**
|
||||
* 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='order_products_table'}
|
||||
<form id="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.reference}
|
||||
{l s='Reference' d='Shop.Theme.Catalog'}: {$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="Close">
|
||||
<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}">
|
||||
{/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.reference}
|
||||
<div class="ref">{l s='Reference' d='Shop.Theme.Catalog'}: {$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 @@
|
||||
{**
|
||||
* 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='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 wide align-right">
|
||||
{l s='Send' d='Shop.Theme.Actions'}
|
||||
</button>
|
||||
</footer>
|
||||
|
||||
</form>
|
||||
</section>
|
||||
{/block}
|
||||
Reference in New Issue
Block a user