first commit

This commit is contained in:
2024-11-05 12:22:50 +01:00
commit e5682a3912
19641 changed files with 2948548 additions and 0 deletions

View 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 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}

View File

@@ -0,0 +1,47 @@
{**
* 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 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" 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" title="{l s='Update' d='Shop.Theme.Actions'}">
<img src="/themes/at_movic/assets/img/icons/pen-edit.svg" alt="">
{* <i class="material-icons">&#xE254;</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" title="{l s='Delete' d='Shop.Theme.Actions'}">
<img src="/themes/at_movic/assets/img/icons/trash-can.svg" alt="">
{* <i class="material-icons">&#xE872;</i> *}
{* <span>{l s='Delete' d='Shop.Theme.Actions'}</span> *}
</a>
</div>
{/block}
</article>
{/block}

View File

@@ -0,0 +1,59 @@
{**
* 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 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 form-control-submit float-xs-right" data-link-action="save-customer" type="submit">
{l s='Save' d='Shop.Theme.Actions'}
</button>
{/block}
</footer>
{/block}
{block name='display_after_login_form'}
{hook h='displayCustomerLoginFormAfter'}
{/block}
</form>
{/block}

View File

@@ -0,0 +1,35 @@
<?php
/**
* 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 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
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;

View File

@@ -0,0 +1,65 @@
{**
* 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 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 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}
{block name='display_after_login_form'}
{hook h='displayCustomerLoginFormAfter'}
{/block}
</form>
{/block}

View File

@@ -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 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="material-icons">&#xE5CB;</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">&#xE88A;</i>
<span>{l s='Home' d='Shop.Theme.Global'}</span>
</a>
{/block}

View File

@@ -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 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">&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-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 class="lazy" data-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}

View File

@@ -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 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">&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-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 class="lazy" data-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}

View File

@@ -0,0 +1,86 @@
{**
* 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 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-12 message-title">
{$message.name}
<span>{$message.message_date}</span>
</div>
<div class="col-sm-12 message-text">
{$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">
<h3>DODAJ KOMENTARZ DO SWOJEGO ZAMÓWIENIA:</h3>
<div class="form-group row">
<label class="col-xs-12 form-control-label">{l s='Product' d='Shop.Forms.Labels'}</label>
<div class="col-xs-12">
<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-xs-12 form-control-label">{l s='Message' d='Shop.Forms.Labels'}</label>
<div class="col-xs-12">
<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='Add comments' d='Shop.Theme.Actions'}
{* {l s='Send' d='Shop.Theme.Actions'} *}
</button>
</footer>
</form>
</section>
{/block}