Initial commit

This commit is contained in:
2019-11-20 07:44:43 +01:00
commit 5bf49c4a81
41188 changed files with 5459177 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
{*
* Module My Addons
*
* @author My Addons - contact@myaddons.io
* @uses Prestashop modules
* @since 1.0
* @copyright Copyright © 2017, My Addons
* @license My Addons
*}
{html_entity_decode($update_msg|escape:'htmlall':'UTF-8')}
<!-- Module content -->
<div id="modulecontent" class="clearfix" role="{$is_submit|escape:'htmlall':'UTF-8'}">
<!-- Nav tabs -->
<div class="col-lg-2">
<div class="list-group">
<a href="#config" class="list-group-item active" data-toggle="tab">
<i class="icon-briefcase"></i> {l s='Configuration' mod='btpartialshipment'}
</a>
<a href="#support" class="list-group-item" data-toggle="tab"><i class="icon-envelope"></i> {l s='Support' mod='btpartialshipment'}</a>
</div>
<div class="list-group">
<a href="#" class="list-group-item" data-toggle="tab"><i class="icon-info-sign"></i> {l s='Version' mod='btpartialshipment'} {$version|escape:'htmlall':'UTF-8'}</a>
</div>
<div style="text-align:center; margin-right: 5px;">
<img src="{$module_dir|escape:'htmlall':'UTF-8'}views/img/logo-my_addons-1.png" alt="My Addons" width="70" />
</div>
</div>
<!-- Tab panes -->
<div class="tab-content col-lg-10">
<div class="tab-pane active panel" id="config">
{include file="./tabs/configuration.tpl"}
</div>
<div class="tab-pane panel" id="support">
{include file="./tabs/support.tpl"}
</div>
</div>
</div>

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (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:
* http://opensource.org/licenses/afl-3.0.php
* 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-2014 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (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,14 @@
{*
* Module My Addons
*
* @author My Addons - contact@myaddons.io
* @uses Prestashop modules
* @since 1.0
* @copyright Copyright &copy; 2017, My Addons
* @license My Addons
*}
<h3><i class="icon-book"></i> {l s='Configuration' mod='btpartialshipment'} / {l s='Partial Shipment' mod='btpartialshipment'}<a id="bt-doclink" class="pull-right readme" style="margin-right:10px;" title="{l s='You can get a PDF documentation to configure this module' mod='btpartialshipment'}" href="{$module_dir|escape:'htmlall':'UTF-8'}docs/{l s='readme_en.pdf' mod='btpartialshipment'}" target="_blank"><i class="icon icon-file-text"></i> {l s='Download documentation' mod='btpartialshipment'}</a></h3>
<div class="media">
{html_entity_decode($bt_config_form|escape:'htmlall':'UTF-8')|replace:'&#039;':'\''}
</div>

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (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:
* http://opensource.org/licenses/afl-3.0.php
* 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-2014 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (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,30 @@
{*
* Module My Addons
*
* @author My Addons - contact@myaddons.io
* @uses Prestashop modules
* @since 1.0
* @copyright Copyright &copy; 2017, My Addons
* @license My Addons
*}
<h3><i class="icon-envelope"></i> {l s='Support' mod='btpartialshipment'} / {l s='Partial Shipment' mod='btpartialshipment'}<a id="bt-doclink" class="pull-right readme" style="margin-right:10px;" title="{l s='You can get a PDF documentation to configure this module' mod='btpartialshipment'}" href="{$module_dir|escape:'htmlall':'UTF-8'}docs/{l s='readme_en.pdf' mod='btpartialshipment'}" target="_blank"><i class="icon icon-file-text"></i> {l s='Download documentation' mod='btpartialshipment'}</a></h3>
<div class="media">
<div class="col-sm-12 col-md-12 col-lg-12">
<div>
<p>{l s='Hello,' mod='btpartialshipment'}</p>
<p>{l s='Thanks for installing and using our module!' mod='btpartialshipment'}</p>
<p>{l s='Since you encounter trouble using the module please contact directly our support team using your PrestaShop Account panel.' mod='btpartialshipment'}</p>
<p><b>{l s='Go on addons.prestashop.com and retrieve our module (partial shipment), you can click on contact developper.' mod='btpartialshipment'}</b></p>
<p><b>{l s='Please specify your module version in your request so we can provide assistance quickly :)' mod='btpartialshipment'}</b></p>
<p>{l s='Maybe well required FTP and Back-Office access to operate efficient support.' mod='btpartialshipment'}</p>
<p>{l s='The support team.' mod='btpartialshipment'}</p>
</div>
<div>
<p><a href="https://addons.prestashop.com/contact-form.php?id_product=28499" class="btn btn-primary" target="_blank">{l s='Contact Support' mod='btpartialshipment'}</a></p>
</div>
<div class="well">
<p>{l s='If you like our module please leave us a' mod='btpartialshipment'} <i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i> {l s='rating in PrestaShop Addons panel account. This is really important for us to allow us to continue to offer new solutions. Thanks in advance!' mod='btpartialshipment'}</p>
</div>
</div>
</div>

View File

@@ -0,0 +1,210 @@
{*
* Module My Addons
*
* @author My Addons - contact@myaddons.io
* @uses Prestashop modules
* @since 1.0
* @copyright Copyright &copy; 2017, My Addons
* @license My Addons
*}
<div id="partialShipment">
<fieldset style="width: 98%;">
<legend>
<img src="../modules/btpartialshipment/views/img/toship.png" /> {l s='Manage product to ship' mod='btpartialshipment'}
</legend>
{if ($shippableQuantity) && !$order->hasBeenShipped()}
<form action="{$currentIndex|escape:'htmlall':'UTF-8'}&amp;id_order={$order->id|escape:'htmlall':'UTF-8'}&amp;vieworder&amp;token={$smarty.get.token|escape:'htmlall':'UTF-8'}" method="post">
<table class="table partialShipment">
<thead>
<tr class="nodrag nodrop">
<th></th>
<th class="left"><span class="title_box">{l s='Product name' mod='btpartialshipment'}</span></th>
<th class="text-center">{l s='Available quantity' mod='btpartialshipment'}</th>
<th class="text-center"><span class="title_box">{l s='Qty' mod='btpartialshipment'}</span></th>
{if ($order->hasBeenPaid())}<th class="text-center"><span class="title_box ">{l s='Refunded' mod='btpartialshipment'}</span></th>{/if}
<th class="text-center">{l s='Qty shipped' mod='btpartialshipment'}</th>
<th class="text-center">{l s='Qty shipped today' mod='btpartialshipment'}</th>
<th></th>
</tr>
</thead>
<tbody>
{foreach from=$orderDetails item=product key=k}
<tr class="product-line-row">
<td width="5%">{if isset($product.image) && $product.image->id}{$product.image_tag}{/if}</td>
<td style="color:#00aff0;" width="25%">
<span class="productName">{$product.product_name|escape:'htmlall':'UTF-8'}</span><br />
{if $product.product_reference}{l s='Reference number:' mod='btpartialshipment'} {$product.product_reference|escape:'htmlall':'UTF-8'}<br />{/if}
{if $product.product_supplier_reference}{l s='Supplier reference:' mod='btpartialshipment'} {$product.product_supplier_reference|escape:'htmlall':'UTF-8'}{/if}
</td>
<td class="productQuantity text-center" width="10%">
{if $stock_management}<b>{$product['current_stock']}</b>{/if}
</td>
<td class="productQuantity text-center" width="10%">
<span class="product_quantity_show{if $product.product_quantity >= 1} badge{/if}">{$product.product_quantity|intval}</span>
</td>
{if ($order->hasBeenPaid())}
<td class="productQuantity text-center" width="10%">
{$product.product_quantity_refunded|intval}
</td>
{/if}
<td class="productQuantity text-center" width="10%"><span class="badge {if $product.shippedQuantity > 0}badge-success{else}badge-warning{/if}">{$product.shippedQuantity|intval}</span></td>
{if $product['shippableQuantity']}
<td class="text-center" width="15%"><input type="number" id="quantity_shipped_{$product.id_order_detail|intval}" name="quantity_shipped[{$product.id_order_detail|intval}]" value="{$product.shippableQuantity|intval}" /></td>
<td width="10%"><div class="col-lg-2"><button class="btn btn-default" onclick="javascript:$('input#quantity_shipped_{$product.id_order_detail|intval}').val(0); return false;" style="cursor:pointer;"><img src='../modules/btpartialshipment/views/img/dontship.png' /> {l s='Don\'t ship this product' mod='btpartialshipment'}</button></div></td>
{/if}
</tr>
{/foreach}
</tbody>
</table>
<br/>
<div class="row-margin-top">
<h3>
<img src="../modules/btpartialshipment/views/img/tracking_number.png" /> {l s='Specify tracking number' mod='btpartialshipment'}
</h3>
<div class="row">
<div class="col-xs-12">
<div class="form-horizontal">
<div class="form-group">
<table>
<tr>
<td><label>{l s='Tracking number' mod='btpartialshipment'}</label></td>
<td>
<input type="text" name="trackingNumber" value="" placeholder="XXXXXXXXX"/>
<p class="help-block">{l s='This field is not required. You can shipped product without tracking number.' mod='btpartialshipment'}</p>
</td>
</tr>
<input name="remainingOrder" type="hidden">
{if $shippableQuantity > 1}
<tr>
<td><label>{l s='Split this order and create remaining order ?' mod='btpartialshipment'}</label></td>
<td>
<div>
<input name="remainingOrder" id="remainingOrder_on" value="1" {if ($order->hasInvoice())}onclick="showOptions(true);"{/if} {if $generateRemaining}checked="checked"{/if} type="radio">
<label class="t" for="remainingOrder_on">
<img src="../img/admin/enabled.gif" alt="{l s='Yes' mod='btpartialshipment'}" title="{l s='Yes' mod='btpartialshipment'}">
</label>
<input name="remainingOrder" id="remainingOrder_off" value="0" {if ($order->hasInvoice())}onclick="showOptions(false);"{/if} {if !$generateRemaining}checked="checked"{/if} type="radio">
<label class="t" for="remainingOrder_off">
<img src="../img/admin/disabled.gif" alt="{l s='No' mod='btpartialshipment'}" title="{l s='No' mod='btpartialshipment'}">
</label>
</div>
<p class="help-block">{l s='If you check this checkbox we create a new order with state remaining order. We split this order.' mod='btpartialshipment'}</p>
</td>
</tr>
{if ($order->hasInvoice())}
<tr id="newInvoice">
<td><label>{l s='Generate new invoice ?' mod='btpartialshipment'}</label></td>
<td>
<div>
<input name="generateNewInvoice" id="generateNewInvoice_on" {if $generateInvoice}checked="checked"{/if} value="1" type="radio">
<label class="t" for="generateNewInvoice_on">
<img src="../img/admin/enabled.gif" alt="{l s='Yes' mod='btpartialshipment'}" title="{l s='Yes' mod='btpartialshipment'}">
</label>
<input name="generateNewInvoice" id="generateNewInvoice_off" value="0" {if !$generateInvoice}checked="checked"{/if} type="radio">
<label class="t" for="generateNewInvoice_off">
<img src="../img/admin/disabled.gif" alt="{l s='No' mod='btpartialshipment'}" title="{l s='No' mod='btpartialshipment'}">
</label>
</div>
<p class="help-block">{l s='Generate new invoice when you create remaining order. New invoice generate only if this order have an invoice.' mod='btpartialshipment'}</p>
<div class="alert alert-danger">
{l s='If you generate new invoice we update parent invoice and parent payment data.' mod='btpartialshipment'}
</div>
</td>
</tr>
{else}
<div class="alert alert-danger">
{l s='This order haven\'t invoice ! When you create remaining order we can\'t link new order to parent invoice. So, if you split this order in new order, you will generate a new invoice for remaining order.' mod='btpartialshipment'}
</div>
{/if}
{/if}
<tr>
<td>
&nbsp;
</td>
<td>
<input type="hidden" name="id_order" value="{$order->id|intval}" />
<button type="submit" name="submitPartialShipment" class="btn btn-primary pull-left" style="cursor:pointer;"><img src="../modules/btpartialshipment/views/img/in_transit.png" /> {l s='Send' mod='btpartialshipment'}</button>
</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
<div class="alert alert-warning">
{l s='If you ship product we create a delivery slip with product shipped today. Your customer can receive and can view as much delivery slip as there is shipping.' mod='btpartialshipment'}
</div>
</form>
{else}
<div class="list-empty">
<div class="list-empty-msg">
{if !$order->hasBeenShipped()}
<i class="icon-warning-sign list-empty-icon"></i>
{l s='No products to ship.' mod='btpartialshipment'}
{else}
{l s='Your order has been totally shipped' mod='btpartialshipment'}
{/if}
</div>
</div>
{/if}
</fieldset>
<div style="clear:both; height:15px;">&nbsp;</div>
<fieldset style="width:98%">
<legend>
<img src="../modules/btpartialshipment/views/img/shipped.png" /> {l s='Products shipped' mod='btpartialshipment'}
</legend>
{if !$partialShipment}
<div class="list-empty">
<div class="list-empty-msg">
{l s='No partial shipment available.' mod='btpartialshipment'}
</div>
</div>
{else}
{foreach $partialShipment AS $partialData}
<table class="table partialShipment" width="100%">
<thead>
<tr class="nodrag nodrop">
<th class="left" colspan="2" style="text-transform: uppercase; font-size:1.2em; color:#00aff0;" width="35%">
<span>{l s='Partial Number :' mod='btpartialshipment'}{$partialData.idPartial|intval}</span>
</th>
<th style="text-transform: uppercase; font-size:1.2em; color:#00aff0;" width="20%">
<span>{l s='Tracking Number :' mod='btpartialshipment'}{if $partialData.trackingNumber}{$partialData.trackingNumber|escape:'htmlall':'UTF-8'}{else}{l s='N.C' mod='btpartialshipment'}{/if}</span>
</th>
<th class="text-center"><span class="title_box">{l s='Qty shipped' mod='btpartialshipment'}</span></th>
<th class="text-center" style="text-transform: uppercase; font-size:1.2em; color:#00aff0;"><a href="{if isset($partialData.url)}{$partialData.url|escape:'htmlall':'UTF-8'}{else}#{/if}" target="_blank"><span class="title_box"><img src="../modules/btpartialshipment/views/img/deliveryslip.png" /> {l s='View Delivery slip' mod='btpartialshipment'}</span></a></th>
</tr>
</thead>
<tbody>
{foreach $partialData.products as $product}
<tr>
<td colspan="3">{if isset($product.product_name)}{$product.product_name|escape:'htmlall':'UTF-8'}{/if}</td>
<td class="text-center"><span class="badge">{$product.quantity|intval}</span></a></td>
<td class="text-center">{$partialData.date|escape:'htmlall':'UTF-8'}</td>
</tr>
{/foreach}
</tbody>
</table>
{/foreach}
{/if}
</fieldset>
</div>
<script type="text/javascript">
$(document).ready(function()
{
$("form.container-command-top-spacing").before($("#partialShipment"));
if (isNaN({$generateRemaining})) {
$('#newInvoice').hide();
}
});
function showOptions(visible) {
if (visible) {
$('#newInvoice').show();
} else {
$('#newInvoice').hide();
}
}
</script>

View File

@@ -0,0 +1,39 @@
{*
* Module My Addons
*
* @author My Addons - contact@myaddons.io
* @uses Prestashop modules
* @since 1.0
* @copyright Copyright &copy; 2017, My Addons
* @license My Addons
*}
{if isset($partialShipment)}
{foreach $partialShipment AS $partialData}
<div id="order-detail-partial-content" class="table_block table-responsive">
<table class="table partialShipment std">
<thead>
<tr>
<th class="firstitem" colspan="2" style="text-transform: uppercase; font-size:1.2em; color:#fff;" width="35%">
<span>{l s='Partial Number :' mod='btpartialshipment'}{$partialData.idPartial|intval}</span>
</th>
<th class="item" style="text-transform: uppercase; font-size:1.2em; color:#fff;" width="20%">
<span>{l s='Tracking Number :' mod='btpartialshipment'}{if $partialData.trackingNumber}{if $partialData.carrierUrl}<a href="{$partialData.carrierUrl|replace:'@':$partialData.trackingNumber}">{/if}{$partialData.trackingNumber|escape:'htmlall':'UTF-8'}{if $partialData.carrierUrl}</a>{/if}{else}{l s='N.C' mod='btpartialshipment'}{/if}</span>
</th>
<th class="item"><span class="title_box">{l s='Qty shipped' mod='btpartialshipment'}</span></th>
<th class="lastitem" style="text-transform: uppercase; font-size:1.2em; color:#00aff0;"><a href="{$partialData.urlDelivery|escape:'htmlall':'UTF-8'}" target="_blank"><span class="title_box"><img src="../modules/btpartialshipment/views/img/deliveryslip.png" /> {l s='View Delivery slip' mod='btpartialshipment'}</span></a></th>
</tr>
</thead>
<tbody>
{foreach $partialData.products as $product}
<tr class="item">
<td colspan="3">{$product.product_name|escape:'htmlall':'UTF-8'}</td>
<td class="text-center"><span class="badge">{$product.quantity|intval}</span></a></td>
<td class="text-center">{$partialData.date|escape:'htmlall':'UTF-8'}</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
{/foreach}
{/if}

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (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:
* http://opensource.org/licenses/afl-3.0.php
* 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-2014 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (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,205 @@
{*
* Module My Addons
*
* @author My Addons - contact@myaddons.io
* @uses Prestashop modules
* @since 1.0
* @copyright Copyright &copy; 2017, My Addons
* @license My Addons
*}
<div class="row">
<div class="col-lg-12">
<div class="panel">
<h3>
<img src="../modules/btpartialshipment/views/img/toship.png" /> {l s='Manage product to ship' mod='btpartialshipment'}
</h3>
{if ($shippableQuantity) && !$order->hasBeenShipped()}
<form action="{$currentIndex|escape:'htmlall':'UTF-8'}&amp;id_order={$order->id|escape:'htmlall':'UTF-8'}&amp;vieworder&amp;token={$smarty.get.token|escape:'htmlall':'UTF-8'}" method="post">
<table class="table partialShipment">
<thead>
<tr class="nodrag nodrop">
<th></th>
<th class="left"><span class="title_box">{l s='Product name' mod='btpartialshipment'}</span></th>
<th class="text-center">{l s='Available quantity' mod='btpartialshipment'}</th>
<th class="text-center"><span class="title_box">{l s='Qty' mod='btpartialshipment'}</span></th>
{if ($order->hasBeenPaid())}<th class="text-center"><span class="title_box ">{l s='Refunded' mod='btpartialshipment'}</span></th>{/if}
<th class="text-center">{l s='Qty shipped' mod='btpartialshipment'}</th>
<th class="text-center">{l s='Qty shipped today' mod='btpartialshipment'}</th>
<th></th>
</tr>
</thead>
<tbody>
{foreach from=$orderDetails item=product key=k}
<tr class="product-line-row">
<td width="5%">{if isset($product.image) && $product.image->id}{$product.image_tag}{/if}</td>
<td style="color:#00aff0;" width="25%">
<span class="productName">{$product.product_name|escape:'htmlall':'UTF-8'}</span><br />
{if $product.product_reference}{l s='Reference number:' mod='btpartialshipment'} {$product.product_reference|escape:'htmlall':'UTF-8'}<br />{/if}
{if $product.product_supplier_reference}{l s='Supplier reference:' mod='btpartialshipment'} {$product.product_supplier_reference|escape:'htmlall':'UTF-8'}{/if}
</td>
<td class="productQuantity text-center" width="10%">
{if $stock_management}<b>{$product['current_stock']}</b>{/if}
</td>
<td class="productQuantity text-center" width="10%">
<span class="product_quantity_show{if $product.product_quantity >= 1} badge{/if}">{$product.product_quantity|intval}</span>
</td>
{if ($order->hasBeenPaid())}
<td class="productQuantity text-center" width="10%">
{$product.product_quantity_refunded|intval}
</td>
{/if}
<td class="productQuantity text-center" width="10%"><span class="badge {if $product.shippedQuantity > 0}badge-success{else}badge-warning{/if}">{$product.shippedQuantity|intval}</span></td>
{if $product['shippableQuantity']}
<td class="text-center" width="15%"><input type="number" id="quantity_shipped_{$product.id_order_detail|intval}" name="quantity_shipped[{$product.id_order_detail|intval}]" value="{$product.shippableQuantity|intval}" /></td>
<td width="10%"><div class="col-lg-2"><button class="btn btn-default" onclick="javascript:$('input#quantity_shipped_{$product.id_order_detail|intval}').val(0); return false;"><img src='../modules/btpartialshipment/views/img/dontship.png' /> {l s='Don\'t ship this product' mod='btpartialshipment'}</button></div></td>
{/if}
</tr>
{/foreach}
</tbody>
</table>
<br/>
<div class="row-margin-top">
<h3>
<img src="../modules/btpartialshipment/views/img/tracking_number.png" /> {l s='Specify tracking number' mod='btpartialshipment'}
</h3>
<div class="row">
<div class="col-xs-12">
<div class="form-horizontal">
<div class="form-group">
<label class="control-label col-lg-3">{l s='Tracking number' mod='btpartialshipment'}</label>
<div class="col-lg-9">
<input type="text" name="trackingNumber" value="" placeholder="XXXXXXXXX"/>
<p class="help-block">{l s='This field is not required. You can shipped product without tracking number.' mod='btpartialshipment'}</p>
</div>
{if $shippableQuantity > 1}
<label class="control-label col-lg-3">{l s='Split this order and create remaining order ?' mod='btpartialshipment'}</label>
<div class="col-lg-9">
<span class="switch prestashop-switch fixed-width-lg">
<input name="remainingOrder" id="remainingOrder_on" value="1" {if ($order->hasInvoice())}onclick="showOptions(true);"{/if} {if $generateRemaining}checked="checked"{/if} type="radio">
<label for="remainingOrder_on">
{l s='Yes' mod='btpartialshipment'}
</label>
<input name="remainingOrder" id="remainingOrder_off" value="0" {if ($order->hasInvoice())}onclick="showOptions(false);"{/if} {if !$generateRemaining}checked="checked"{/if} type="radio">
<label for="remainingOrder_off">
{l s='No' mod='btpartialshipment'}
</label>
<a class="slide-button btn"></a>
</span>
<p class="help-block">{l s='If you check this checkbox we create a new order with state remaining order. We split this order.' mod='btpartialshipment'}</p>
</div>
{if ($order->hasInvoice())}
<div id="newInvoice">
<label class="control-label col-lg-3">{l s='Generate new invoice ?' mod='btpartialshipment'}</label>
<div class="col-lg-9">
<span class="switch prestashop-switch fixed-width-lg">
<input name="generateNewInvoice" id="generateNewInvoice_on" {if $generateInvoice}checked="checked"{/if} value="1" type="radio">
<label for="generateNewInvoice_on">
{l s='Yes' mod='btpartialshipment'}
</label>
<input name="generateNewInvoice" id="generateNewInvoice_off" value="0" {if !$generateInvoice}checked="checked"{/if} type="radio">
<label for="generateNewInvoice_off">
{l s='No' mod='btpartialshipment'}
</label>
<a class="slide-button btn"></a>
</span>
<p class="help-block">{l s='Generate new invoice when you create remaining order. New invoice generate only if this order have an invoice.' mod='btpartialshipment'}</p>
<div class="alert alert-danger">
{l s='If you generate new invoice we update parent invoice and parent payment data.' mod='btpartialshipment'}
</div>
</div>
</div>
{else}
<div class="alert alert-danger">
{l s='This order haven\'t invoice ! When you create remaining order we can\'t link new order to parent invoice. So, if you split this order in new order, you will generate a new invoice for remaining order.' mod='btpartialshipment'}
</div>
{/if}
{/if}
<div class="col-lg-3">
&nbsp;
</div>
<div class="col-lg-9">
<input type="hidden" name="id_order" value="{$order->id|intval}" />
<button type="submit" name="submitPartialShipment" class="btn btn-primary pull-left"><img src="../modules/btpartialshipment/views/img/in_transit.png" /> {l s='Send' mod='btpartialshipment'}</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="alert alert-warning">
{l s='If you ship product we create a delivery slip with product shipped today. Your customer can receive and can view as much delivery slip as there is shipping.' mod='btpartialshipment'}
</div>
</form>
{else}
<div class="list-empty">
<div class="list-empty-msg">
{if !$order->hasBeenShipped()}
<i class="icon-warning-sign list-empty-icon"></i>
{l s='No products to ship.' mod='btpartialshipment'}
{else}
{l s='Your order has been totally shipped' mod='btpartialshipment'}
{/if}
</div>
</div>
{/if}
</div>
</div>
<div class="col-lg-12">
<div class="panel">
<h3>
<img src="../modules/btpartialshipment/views/img/shipped.png" /> {l s='Products shipped' mod='btpartialshipment'}
</h3>
{if !$partialShipment}
<div class="list-empty">
<div class="list-empty-msg">
{l s='No partial shipment available.' mod='btpartialshipment'}
</div>
</div>
{else}
{foreach $partialShipment AS $partialData}
<table class="table partialShipment">
<thead>
<tr class="nodrag nodrop">
<th class="left" colspan="2" style="text-transform: uppercase; font-size:1.2em; color:#00aff0;" width="35%">
<span>{l s='Partial Number :' mod='btpartialshipment'}{$partialData.idPartial|intval}</span>
</th>
<th style="text-transform: uppercase; font-size:1.2em; color:#00aff0;" width="20%">
<span>{l s='Tracking Number :' mod='btpartialshipment'}{if $partialData.trackingNumber}{$partialData.trackingNumber|escape:'htmlall':'UTF-8'}{else}{l s='N.C' mod='btpartialshipment'}{/if}</span>
</th>
<th class="text-center"><span class="title_box">{l s='Qty shipped' mod='btpartialshipment'}</span></th>
<th class="text-center" style="text-transform: uppercase; font-size:1.2em; color:#00aff0;"><a href="{if isset($partialData.url)}{$partialData.url|escape:'htmlall':'UTF-8'}{else}#{/if}" target="_blank"><span class="title_box"><img src="../modules/btpartialshipment/views/img/deliveryslip.png" /> {l s='View Delivery slip' mod='btpartialshipment'}</span></a></th>
</tr>
</thead>
<tbody>
{foreach $partialData.products as $product}
<tr>
<td colspan="3">{if isset($product.product_name)}{$product.product_name|escape:'htmlall':'UTF-8'}{/if}</td>
<td class="text-center"><span class="badge">{$product.quantity|intval}</span></a></td>
<td class="text-center">{$partialData.date|escape:'htmlall':'UTF-8'}</td>
</tr>
{/foreach}
</tbody>
</table>
{/foreach}
{/if}
</div>
</div>
</div>
<script type="text/javascript">
$(document).ready(function()
{
if (isNaN({$generateRemaining})) {
$('#newInvoice').hide();
}
});
function showOptions(visible) {
if (visible) {
$('#newInvoice').show();
} else {
$('#newInvoice').hide();
}
}
</script>

View File

@@ -0,0 +1,39 @@
{*
* Module My Addons
*
* @author My Addons - contact@myaddons.io
* @uses Prestashop modules
* @since 1.0
* @copyright Copyright &copy; 2017, My Addons
* @license My Addons
*}
{if isset($partialShipment)}
{foreach $partialShipment AS $partialData}
<div id="order-detail-erp-content" class="table_block table-responsive">
<table class="table partialShipment">
<thead>
<tr class="nodrag nodrop">
<th class="left" colspan="2" style="text-transform: uppercase; font-size:1.2em; color:#00aff0;" width="35%">
<span>{l s='Partial Number :' mod='btpartialshipment'}{$partialData.idPartial|intval}</span>
</th>
<th style="text-transform: uppercase; font-size:1.2em; color:#00aff0;" width="20%">
<span>{l s='Tracking Number :' mod='btpartialshipment'}{if $partialData.trackingNumber}{if $partialData.carrierUrl}<a href="{$partialData.carrierUrl|replace:'@':$partialData.trackingNumber}">{/if}{$partialData.trackingNumber|escape:'htmlall':'UTF-8'}{if $partialData.carrierUrl}</a>{/if}{else}{l s='N.C' mod='btpartialshipment'}{/if}</span>
</th>
<th class="text-center"><span class="title_box">{l s='Qty shipped' mod='btpartialshipment'}</span></th>
<th class="text-center" style="text-transform: uppercase; font-size:1.2em; color:#00aff0;"><a href="{$partialData.urlDelivery|escape:'htmlall':'UTF-8'}" target="_blank"><span class="title_box"><img src="../modules/btpartialshipment/views/img/deliveryslip.png" /> {l s='View Delivery slip' mod='btpartialshipment'}</span></a></th>
</tr>
</thead>
<tbody>
{foreach $partialData.products as $product}
<tr>
<td colspan="3">{$product.product_name|escape:'htmlall':'UTF-8'}</td>
<td class="text-center"><span class="badge">{$product.quantity|intval}</span></a></td>
<td class="text-center">{$partialData.date|escape:'htmlall':'UTF-8'}</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
{/foreach}
{/if}

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (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:
* http://opensource.org/licenses/afl-3.0.php
* 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-2014 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (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,202 @@
{*
* Module My Addons
*
* @author My Addons - contact@myaddons.io
* @uses Prestashop modules
* @since 1.0
* @copyright Copyright &copy; 2017, My Addons
* @license My Addons
*}
<div class="row">
<div class="col-lg-12">
<div class="panel">
<h3>
<img src="../modules/btpartialshipment/views/img/toship.png" /> {l s='Manage product to ship' mod='btpartialshipment'}
</h3>
{if ($shippableQuantity) && !$order->hasBeenShipped()}
<form action="{$currentIndex|escape:'htmlall':'UTF-8'}&amp;id_order={$order->id|escape:'htmlall':'UTF-8'}&amp;vieworder&amp;token={$smarty.get.token|escape:'htmlall':'UTF-8'}" method="post">
<table class="table partialShipment">
<thead>
<tr class="nodrag nodrop">
<th></th>
<th class="left"><span class="title_box">{l s='Product name' mod='btpartialshipment'}</span></th>
<th class="text-center">{l s='Available quantity' mod='btpartialshipment'}</th>
<th class="text-center"><span class="title_box">{l s='Qty' mod='btpartialshipment'}</span></th>
{if ($order->hasBeenPaid())}<th class="text-center"><span class="title_box ">{l s='Refunded' mod='btpartialshipment'}</span></th>{/if}
<th class="text-center">{l s='Qty shipped' mod='btpartialshipment'}</th>
<th class="text-center">{l s='Qty shipped today' mod='btpartialshipment'}</th>
<th></th>
</tr>
</thead>
<tbody>
{foreach from=$orderDetails item=product key=k}
<tr class="product-line-row">
<td width="5%">{if isset($product.image) && $product.image->id}{$product.image_tag}{/if}</td>
<td style="color:#00aff0;" width="25%">
<span class="productName">{$product['product_name']|escape:'htmlall':'UTF-8'}</span><br />
{if $product.product_reference}{l s='Reference number:' mod='btpartialshipment'} {$product.product_reference|escape:'htmlall':'UTF-8'}<br />{/if}
{if $product.product_supplier_reference}{l s='Supplier reference:' mod='btpartialshipment'} {$product.product_supplier_reference|escape:'htmlall':'UTF-8'}{/if}
</td>
<td class="productQuantity text-center" width="10%">
{if $stock_management}<b>{$product['current_stock']}</b>{/if}
</td>
<td class="productQuantity text-center" width="10%">
<span class="product_quantity_show{if (int)$product['product_quantity'] >= 1} badge{/if}">{$product['product_quantity']|intval}</span>
</td>
{if ($order->hasBeenPaid())}
<td class="productQuantity text-center" width="10%">
{$product['product_quantity_refunded']|intval}
</td>
{/if}
<td class="productQuantity text-center" width="10%"><span class="badge {if $product['shippedQuantity'] > 0}badge-success{else}badge-warning{/if}">{$product['shippedQuantity']|intval}</span></td>
{if $product['shippableQuantity']}
<td class="text-center" width="15%"><input type="number" id="quantity_shipped_{$product['id_order_detail']|intval}" name="quantity_shipped[{$product['id_order_detail']|intval}]" value="{$product['shippableQuantity']|intval}" /></td>
<td width="10%"><div class="col-lg-2"><button class="btn btn-default" onclick="javascript:$('input#quantity_shipped_{$product["id_order_detail"]|intval}').val(0); return false;"><img src='../modules/btpartialshipment/views/img/dontship.png' /> {l s='Don\'t ship this product' mod='btpartialshipment'}</button></div></td>
{/if}
</tr>
{/foreach}
</tbody>
</table>
<br/>
<div class="row-margin-top">
<h3>
<img src="../modules/btpartialshipment/views/img/tracking_number.png" /> {l s='Specify tracking number' mod='btpartialshipment'}
</h3>
<div class="row">
<div class="col-xs-12">
<div class="form-horizontal">
<div class="form-group">
<label class="control-label col-lg-3">{l s='Tracking number' mod='btpartialshipment'}</label>
<div class="col-lg-9">
<input type="text" name="trackingNumber" value="" placeholder="XXXXXXXXX"/>
<p class="help-block">{l s='This field is not required. You can shipped product without tracking number.' mod='btpartialshipment'}</p>
</div>
{if $shippableQuantity > 1}
<label class="control-label col-lg-3">{l s='Split this order and create remaining order ?' mod='btpartialshipment'}</label>
<div class="col-lg-9">
<span class="switch prestashop-switch fixed-width-lg">
<input name="remainingOrder" id="remainingOrder_on" value="1" {if ($order->hasInvoice())}onclick="showOptions(true);"{/if} {if $generateRemaining}checked="checked"{/if} type="radio">
<label for="remainingOrder_on">
{l s='Yes' mod='btpartialshipment'}
</label>
<input name="remainingOrder" id="remainingOrder_off" value="0" {if ($order->hasInvoice())}onclick="showOptions(false);"{/if} {if !$generateRemaining}checked="checked"{/if} type="radio">
<label for="remainingOrder_off">
{l s='No' mod='btpartialshipment'}
</label>
<a class="slide-button btn"></a>
</span>
<p class="help-block">{l s='If you check this checkbox we create a new order with state remaining order. We split this order.' mod='btpartialshipment'}</p>
</div>
{if ($order->hasInvoice())}
<div id="newInvoice">
<label class="control-label col-lg-3">{l s='Generate new invoice ?' mod='btpartialshipment'}</label>
<div class="col-lg-9">
<span class="switch prestashop-switch fixed-width-lg">
<input name="generateNewInvoice" id="generateNewInvoice_on" {if $generateInvoice}checked="checked"{/if} value="1" type="radio">
<label for="generateNewInvoice_on">
{l s='Yes' mod='btpartialshipment'}
</label>
<input name="generateNewInvoice" id="generateNewInvoice_off" value="0" {if !$generateInvoice}checked="checked"{/if} type="radio">
<label for="generateNewInvoice_off">
{l s='No' mod='btpartialshipment'}
</label>
<a class="slide-button btn"></a>
</span>
<p class="help-block">{l s='Generate new invoice when you create remaining order. New invoice generate only if this order have an invoice.' mod='btpartialshipment'}</p>
</div>
</div>
{else}
<div class="alert alert-danger">
{l s='This order haven\'t invoice ! When you create remaining order we can\'t link new order to parent invoice. So, if you split this order in new order, you will generate a new invoice for remaining order.' mod='btpartialshipment'}
</div>
{/if}
{/if}
<div class="col-lg-3">
&nbsp;
</div>
<div class="col-lg-9">
<input type="hidden" name="id_order" value="{$order->id|intval}" />
<button type="submit" name="submitPartialShipment" class="btn btn-primary pull-left"><img src="../modules/btpartialshipment/views/img/in_transit.png" /> {l s='Send' mod='btpartialshipment'}</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="alert alert-warning">
{l s='If you ship product we create a delivery slip with product shipped today. Your customer can receive and can view as much delivery slip as there is shipping.' mod='btpartialshipment'}
</div>
</form>
{else}
<div class="list-empty">
<div class="list-empty-msg">
{if !$order->hasBeenShipped()}
<i class="icon-warning-sign list-empty-icon"></i>
{l s='No products to ship.' mod='btpartialshipment'}
{else}
{l s='Your order has been totally shipped' mod='btpartialshipment'}
{/if}
</div>
</div>
{/if}
</div>
</div>
<div class="col-lg-12">
<div class="panel">
<h3>
<img src="../modules/btpartialshipment/views/img/shipped.png" /> {l s='Products shipped' mod='btpartialshipment'}
</h3>
{if !$partialShipment}
<div class="list-empty">
<div class="list-empty-msg">
{l s='No partial shipment available.' mod='btpartialshipment'}
</div>
</div>
{else}
{foreach $partialShipment AS $partialData}
<table class="table partialShipment">
<thead>
<tr class="nodrag nodrop">
<th class="left" colspan="2" style="text-transform: uppercase; font-size:1.2em; color:#00aff0;">
<span>{l s='Partial Number :' mod='btpartialshipment'}{$partialData.idPartial|intval}</span>
</th>
<th style="text-transform: uppercase; font-size:1.2em; color:#00aff0;">
<span>{l s='Tracking Number :' mod='btpartialshipment'}{if $partialData.trackingNumber}{$partialData.trackingNumber|escape:'htmlall':'UTF-8'}{else}{l s='N.C' mod='btpartialshipment'}{/if}</span>
</th>
<th class="text-center"><span class="title_box">{l s='Qty shipped' mod='btpartialshipment'}</span></th>
<th class="text-center" style="text-transform: uppercase; font-size:1.2em; color:#00aff0;"><a href="{if isset($partialData.url)}{$partialData.url|escape:'htmlall':'UTF-8'}{else}#{/if}" target="_blank"><span class="title_box"><img src="../modules/btpartialshipment/views/img/deliveryslip.png" /> {l s='View Delivery slip' mod='btpartialshipment'}</span></a></th>
</tr>
</thead>
<tbody>
{foreach $partialData.products as $product}
<tr>
<td colspan="3">{if isset($product.product_name)}{$product.product_name|escape:'htmlall':'UTF-8'}{/if}</td>
<td class="text-center"><span class="badge">{$product.quantity|intval}</span></a></td>
<td class="text-center">{$partialData.date|escape:'htmlall':'UTF-8'}</td>
</tr>
{/foreach}
</tbody>
</table>
{/foreach}
{/if}
</div>
</div>
</div>
<script type="text/javascript">
$(document).ready(function()
{
if (isNaN({$generateRemaining})) {
$('#newInvoice').hide();
}
});
function showOptions(visible) {
if (visible) {
$('#newInvoice').show();
} else {
$('#newInvoice').hide();
}
}
</script>

View File

@@ -0,0 +1,39 @@
{*
* Module My Addons
*
* @author My Addons - contact@myaddons.io
* @uses Prestashop modules
* @since 1.0
* @copyright Copyright &copy; 2017, My Addons
* @license My Addons
*}
{if isset($partialShipment)}
{foreach $partialShipment AS $partialData}
<div id="order-detail-erp-content" class="table_block table-responsive">
<table class="table partialShipment">
<thead>
<tr class="nodrag nodrop">
<th class="left" colspan="2" style="text-transform: uppercase; font-size:1.2em; color:#00aff0;" width="35%">
<span>{l s='Partial Number :' mod='btpartialshipment'}{$partialData.idPartial|intval}</span>
</th>
<th style="text-transform: uppercase; font-size:1.2em; color:#00aff0;" width="20%">
<span>{l s='Tracking Number :' mod='btpartialshipment'}{if $partialData.trackingNumber}{if $partialData.carrierUrl}<a href="{$partialData.carrierUrl|replace:'@':$partialData.trackingNumber}">{/if}{$partialData.trackingNumber|escape:'htmlall':'UTF-8'}{if $partialData.carrierUrl}</a>{/if}{else}{l s='N.C' mod='btpartialshipment'}{/if}</span>
</th>
<th class="text-center"><span class="title_box">{l s='Qty shipped' mod='btpartialshipment'}</span></th>
<th class="text-center" style="text-transform: uppercase; font-size:1.2em; color:#00aff0;"><a href="{$partialData.urlDelivery|escape:'htmlall':'UTF-8'}" target="_blank"><span class="title_box"><img src="../modules/btpartialshipment/views/img/deliveryslip.png" /> {l s='View Delivery slip' mod='btpartialshipment'}</span></a></th>
</tr>
</thead>
<tbody>
{foreach $partialData.products as $product}
<tr>
<td colspan="3">{$product.product_name|escape:'htmlall':'UTF-8'}</td>
<td class="text-center"><span class="badge">{$product.quantity|intval}</span></a></td>
<td class="text-center">{$partialData.date|escape:'htmlall':'UTF-8'}</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
{/foreach}
{/if}

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (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:
* http://opensource.org/licenses/afl-3.0.php
* 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-2014 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (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,35 @@
<?php
/**
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (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:
* http://opensource.org/licenses/afl-3.0.php
* 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-2014 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (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,35 @@
<?php
/**
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (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:
* http://opensource.org/licenses/afl-3.0.php
* 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-2014 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (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;