Initial commit

This commit is contained in:
2020-10-07 10:37:15 +02:00
commit ce5f440392
28157 changed files with 4429172 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2020 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-2020 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,91 @@
{*
* 2007-2020 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-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<section class="form-fields">
<div class="colissimo-mailbox-intro">
<p>{l s='Enter the address of the parcel to be collected' mod='colissimo'}</p>
</div>
<div class="container-fluid">
<form method="post" id="colissimo-mailbox-return-address">
<input type="hidden" name="id_colissimo_label" value="{$id_colissimo_label|intval}" />
<div class="row form-group">
<label class="form-control-label col-md-3 offset-md-1">{l s='Company' mod='colissimo'}</label>
<div class="col-md-8">
<input class="form-control" type="text" name="colissimo-company" value="{$address->company|escape:'htmlall':'UTF-8'}">
</div>
</div>
<div class="row form-group">
<label class="form-control-label col-md-3 offset-md-1">{l s='Lastname' mod='colissimo'}</label>
<div class="col-md-8">
<input class="form-control" type="text" name="colissimo-lastname" value="{$address->lastname|escape:'htmlall':'UTF-8'}">
</div>
</div>
<div class="row form-group">
<label class="form-control-label col-md-3 offset-md-1">{l s='Firstname' mod='colissimo'}</label>
<div class="col-md-8">
<input class="form-control" type="text" name="colissimo-firstname" value="{$address->firstname|escape:'htmlall':'UTF-8'}">
</div>
</div>
<div class="row form-group">
<label class="form-control-label col-md-3 offset-md-1">{l s='Address 1' mod='colissimo'}</label>
<div class="col-md-8">
<input class="form-control" type="text" name="colissimo-address1" value="{$address->address1|escape:'htmlall':'UTF-8'}">
</div>
</div>
<div class="row form-group">
<label class="form-control-label col-md-3 offset-md-1">{l s='Address 2' mod='colissimo'}</label>
<div class="col-md-8">
<input class="form-control" type="text" name="colissimo-address2" value="{$address->address2|escape:'htmlall':'UTF-8'}">
</div>
</div>
<div class="row form-group">
<label class="form-control-label col-md-3 offset-md-1">{l s='Postcode' mod='colissimo'}</label>
<div class="col-md-4">
<input class="form-control" type="text" name="colissimo-postcode" value="{$address->postcode|escape:'htmlall':'UTF-8'}">
</div>
</div>
<div class="row form-group">
<label class="form-control-label col-md-3 offset-md-1">{l s='City' mod='colissimo'}</label>
<div class="col-md-8">
<input class="form-control" type="text" name="colissimo-city" value="{$address->city|escape:'htmlall':'UTF-8'}">
</div>
</div>
<div class="row form-group">
<span class="offset-md-4 col-md-8"><b>FRANCE</b></span>
</div>
<div class="row form-group">
<div class="offset-md-4 col-md-6">
<button class="btn btn-primary colissimo-submit-availability" type="submit" name="submitColissimoAvailability">
<i class="icon icon-check"></i>
{l s='Check availability' mod='colissimo'}
</button>
</div>
</div>
</form>
</div>
</section>

View File

@@ -0,0 +1,74 @@
{*
* 2007-2020 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-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="colissimo-mailbox-return-dates">
<div class="">
<div class="alert alert-info">
<p class="strong">{l s='How it works?' mod='colissimo'}</p>
<ul>
<li>{l s='Print the return label and paste it on the package.' mod='colissimo'}</li>
<li>
{l s='Drop the package into your mailbox the day of the pickup.' mod='colissimo'}<br />
{l s='Your postman will pick it up during the day and drop a receipt.' mod='colissimo'}
</li>
</ul>
<hr>
<span>
{l s='A postman will come and pick up your parcel on' mod='colissimo'} <b>{$picking_date_display|escape:'htmlall':'UTF-8'}</b>.<br />
{l s='Please make sure to drop the parcel inside your mailbox before' mod='colissimo'} <b>{$max_picking_hour|escape:'htmlall':'UTF-8'}</b>.
</span>
</div>
<p class="colissimo-mailbox-return-address">
<span>{l s='Mailbox address:' mod='colissimo'}</span>
{$picking_address.company|escape:'htmlall':'UTF-8'}<br />
{$picking_address.lastname|escape:'htmlall':'UTF-8'} {$picking_address.firstname|escape:'htmlall':'UTF-8'}<br />
{$picking_address.address1|escape:'htmlall':'UTF-8'}<br />
{if $picking_address.address2}
{$picking_address.address2|escape:'htmlall':'UTF-8'}<br />
{/if}
{$picking_address.postcode|escape:'htmlall':'UTF-8'} {$picking_address.city|escape:'htmlall':'UTF-8'}<br />
FRANCE<br />
<i class="icon icon-truck"></i>
</p>
<form method="post" id="colissimo-mailbox-return-confirm">
<input type="hidden" name="mailbox_company" value="{$picking_address.company|escape:'htmlall':'UTF-8'}" />
<input type="hidden" name="mailbox_lastname" value="{$picking_address.lastname|escape:'htmlall':'UTF-8'}" />
<input type="hidden" name="mailbox_firstname" value="{$picking_address.firstname|escape:'htmlall':'UTF-8'}" />
<input type="hidden" name="mailbox_address1" value="{$picking_address.address1|escape:'htmlall':'UTF-8'}" />
<input type="hidden" name="mailbox_address2" value="{$picking_address.address2|escape:'htmlall':'UTF-8'}" />
<input type="hidden" name="mailbox_postcode" value="{$picking_address.postcode|escape:'htmlall':'UTF-8'}" />
<input type="hidden" name="mailbox_city" value="{$picking_address.city|escape:'htmlall':'UTF-8'}" />
<input type="hidden" name="mailbox_email" value="{$customer.email|escape:'htmlall':'UTF-8'}" />
<input type="hidden" name="mailbox_date" value="{$picking_date|escape:'htmlall':'UTF-8'}" />
<input type="hidden" name="mailbox_hour" value="{$max_picking_hour|escape:'htmlall':'UTF-8'}" />
<input type="hidden" name="id_colissimo_label" value="{$id_colissimo_label|intval}" />
<button class="btn btn-primary colissimo-submit-confirm" type="submit" name="submitColissimoPickupConfirm">
<i class="icon icon-check"></i>
{l s='Confirm the pick-up request' mod='colissimo'}
</button>
</form>
</div>
</div>

View File

@@ -0,0 +1,47 @@
{*
* 2007-2020 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-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="colissimo-mailbox-return-result">
{if !$has_error}
<div class="alert alert-success">
{l s='The mailbox pickup is confirmed' mod='colissimo'}
</div>
{else}
<div class="alert alert-danger">
{if $error_message}
{$error_message|escape:'htmlall':'UTF-8'}
{else}
{l s='An error occurred. Please try again later or request a pickup on Colissimo website at this url:' mod='colissimo'}
<p>
<a href="http://colissimo.fr/retourbal" target="_blank">http://colissimo.fr/retourbal</a>
</p>
{/if}
</div>
{/if}
<button class="btn btn-primary colissimo-result-close" data-dismiss="modal" aria-label="{l s='Close' mod='colissimo'}">
<i class="material-icons">close</i>
{l s='Close' mod='colissimo'}
</button>
</div>

View File

@@ -0,0 +1,223 @@
{*
* 2007-2020 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-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<section>
{if $shipment.user_messages}
<ul class="timeline-user-messages">
{foreach $shipment.user_messages as $data}
<li class="timeline-user-message">
<img src="{$colissimo_img_path|escape:'html':'UTF-8'}icons/icon-warning.png"/>
<div class="user-message-txt">{$data.message nofilter}</div>
</li>
{/foreach}
</ul>
{/if}
<div class="timeline-container">
<div class="timeline-header">
<div class="timeline-shipment-number-mobile">
<a href="https://www.laposte.fr/outils/suivre-vos-envois?code={$shipment.parcel_details.parcelNumber|escape:'html':'UTF-8'}"
target="_blank">
<span>N°{$shipment.parcel_details.parcelNumber|escape:'html':'UTF-8'}</span>
</a>
</div>
<div class="timeline-logo">
<img src="{$colissimo_img_path|escape:'html':'UTF-8'}Colissimo_Logo_H.png"/>
</div>
<div class="timeline-shipment-number">
<a href="https://www.laposte.fr/outils/suivre-vos-envois?code={$shipment.parcel_details.parcelNumber|escape:'html':'UTF-8'}"
target="_blank">
<span>N°{$shipment.parcel_details.parcelNumber|escape:'html':'UTF-8'}</span>
</a>
</div>
{if $shipment.parcel_details.customerLogoURL}
<div class="timeline-merchant-info">
<span> {l s='- Sent by' mod='colissimo'}</span>
<img src="{$shipment.parcel_details.customerLogoURL|escape:'html':'UTF-8'}"/>
</div>
{/if}
{if $shipment.parcel_details.deliveryLabel}
<div class="timeline-delivery-type-mobile">
{$shipment.parcel_details.deliveryLabel|escape:'html':'UTF-8'}
{$shipment.parcel_details.optionDeliveryLabel|escape:'html':'UTF-8'}
</div>
{/if}
</div>
{if $shipment.steps_timeline[1]['status'] != 'STEP_STATUS_ACTIVE'}
<div class="timeline-step-0">
<div class="timeline-step-0-icon">
<img src="{$colissimo_img_path|escape:'html':'UTF-8'}icons/icon-box-timeline.png"/>
</div>
<div class="timeline-step-0-text">{$shipment.steps_timeline[0]['labelShort']|escape:'html':'UTF-8'}</div>
</div>
{else}
{if $shipment.parcel_details.deliveryLabel}
<div class="timeline-delivery-type">
<div class="delivery-type-img">
<img src="{$colissimo_img_path|escape:'html':'UTF-8'}icons/icon-box-timeline.png"/>
</div>
<div class="delivery-type-text">
<span>{l s='Type of delivery' mod='colissimo'}</span>
{$shipment.parcel_details.deliveryLabel|escape:'html':'UTF-8'}
{$shipment.parcel_details.optionDeliveryLabel|escape:'html':'UTF-8'}
</div>
</div>
{/if}
<div class="timeline-dates">
<div class="timeline-first-step-text">{if $shipment.steps_timeline[1].labelShort}{$shipment.steps_timeline[1].labelShort|escape:'html':'UTF-8'}{/if}</div>
<div class="timeline-last-step-text">{if $shipment.steps_timeline[5].labelShort}{$shipment.steps_timeline[5].labelShort|escape:'html':'UTF-8'}{/if}</div>
<div class="timeline-first-step-date">{if $shipment.steps_timeline[1].date}{$shipment.steps_timeline[1].dateDisplayShort|escape:'html':'UTF-8'}{/if}</div>
<div class="timeline-last-step-date">{if $shipment.steps_timeline[5].date}{$shipment.steps_timeline[5].dateDisplayShort|escape:'html':'UTF-8'}{/if}</div>
</div>
<div class="timeline-steps">
<div class="timeline-dots">
{foreach $shipment.steps_timeline as $key => $step}
{if $step.stepId}
<div class="timeline-dot {$step.statusClass|escape:'html':'UTF-8'}">
<div class="round"></div>
<div class="mobile-round">
<img src="{$colissimo_img_path|escape:'html':'UTF-8'}icons/icon-box-timeline.png"/>
</div>
{if isset($shipment.steps_timeline[$key + 1]) && $shipment.steps_timeline[$key + 1]['status'] != 'STEP_STATUS_INACTIVE'}
<div class="line"></div>
{/if}
</div>
{/if}
{/foreach}
</div>
<div class="timeline-mobile-informations">
<div class="text-short">{$shipment.parcel_details.currentStep.labelShort|escape:'html':'UTF-8'}</div>
<div class="step-date">{$shipment.parcel_details.currentStep.dateDisplay|escape:'html':'UTF-8'}</div>
{if $shipment.parcel_details.currentStep.countryName}
<div class="step-country">
<span class="flag flag-{$shipment.parcel_details.currentStep.countryCodeISO|escape:'html':'UTF-8'|lower}"></span>
{$shipment.parcel_details.currentStep.countryName|escape:'html':'UTF-8'}
</div>
{/if}
{if $shipment.parcel_details.service.deliveryChoice}
<p class="reschedule-delivery">
<a target="_blank"
href="http://www.laposte.fr/particulier/modification-livraison?code={$shipment.parcel_details.parcelNumber|escape:'html':'UTF-8'}">
{l s='Reschedule my delivery' mod='colissimo'}
</a>
</p>
{/if}
{if $shipment.parcel_details.currentStep.stepId == 4 && $shipment.parcel_details.removalPoint && $shipment.parcel_details.removalPoint.countryCodeISO == 'FR'}
<p class="removal-point">
<a target="_blank"
href="http://www.laposte.fr/particulier/outils/trouver-un-bureau-de-poste/bureau-detail/{$shipment.parcel_details.removalPoint.siteName|replace:'/':''|escape:'html':'UTF-8'}/{$shipment.parcel_details.removalPoint.siteCode|escape:'html':'UTF-8'}">
{$shipment.parcel_details.removalPoint.siteName|escape:'html':'UTF-8'}
</a>
<br>
<span>{l s='You will need ID to collect your shipment.' mod='colissimo'}</span>
</p>
{/if}
</div>
<ul class="timeline-steps-details-simple">
{foreach $shipment.steps_timeline as $key => $step}
{if $step.stepId}
<li>
<p class="text-short">{$step.labelShort|escape:'html':'UTF-8'}</p>
{if $step.countryName}
<p class="step-country">
<span class="flag flag-{$step.countryCodeISO|escape:'html':'UTF-8'|lower}"></span>
{$step.countryName|escape:'html':'UTF-8'}
</p>
{/if}
<p class="step-date">{$step.dateDisplay|escape:'html':'UTF-8'}</p>
<p class="text-long">{$step.labelLong|escape:'html':'UTF-8'}</p>
{if $step.stepId == $shipment.parcel_details.currentStep.stepId && $shipment.parcel_details.service.deliveryChoice}
<p class="reschedule-delivery">
<a target="_blank"
href="http://www.laposte.fr/particulier/modification-livraison?code={$shipment.parcel_details.parcelNumber|escape:'html':'UTF-8'}">
{l s='Reschedule my delivery' mod='colissimo'}
</a>
</p>
{/if}
{if $step.stepId == 4 && $shipment.parcel_details.removalPoint && $shipment.parcel_details.removalPoint.countryCodeISO == 'FR'}
<p class="removal-point-name">{$shipment.parcel_details.removalPoint.siteName|escape:'html':'UTF-8'}</p>
<p class="removal-point">
<a target="_blank"
href="http://www.laposte.fr/particulier/outils/trouver-un-bureau-de-poste/bureau-detail/{$shipment.parcel_details.removalPoint.siteName|replace:'/':''|escape:'html':'UTF-8'}/{$shipment.parcel_details.removalPoint.siteCode|escape:'html':'UTF-8'}">
{l s='More information' mod='colissimo'}
</a>
<br>
<span>{l s='You will need ID to collect your shipment.' mod='colissimo'}</span>
</p>
{/if}
<p></p>
</li>
{/if}
{/foreach}
</ul>
</div>
<div class="timeline-steps-details-full">
<img src="https://www.laposte.fr/_ui/eboutique/images/suivi/sep.png" style="max-width: 100%"/>
<div class="details-header">
<div class="details-title">
<h2>{l s='See all the steps' mod='colissimo'}</h2>
</div>
<div class="details-accordion">
<img class="js-details-accordion" src="{$colissimo_img_path|escape:'html':'UTF-8'}icons/icon-chevron.png"/>
</div>
</div>
<div class="timeline-steps-details-table">
<table>
<thead>
<tr>
<th>{l s='Dates' mod='colissimo'}</th>
<th>&nbsp</th>
<th>{l s='Steps' mod='colissimo'}</th>
</tr>
</thead>
<tbody>
{foreach $shipment.steps_details as $step}
<tr>
<td class="timeline-details-date">
{$step.dateDisplay|escape:'html':'UTF-8'}
</td>
<td class="timeline-details-sep"></td>
<td class="timeline-details-label">
{$step.labelLong|escape:'html':'UTF-8'}
</td>
</tr>
{/foreach}
</tbody>
</table>
<div class="table-mobile">
{foreach $shipment.steps_details as $step}
<div class="timeline-details-date">
{$step.dateDisplayShort|escape:'html':'UTF-8'}
</div>
<div class="timeline-details-label">
{$step.labelLong|escape:'html':'UTF-8'}
</div>
{/foreach}
</div>
</div>
</div>
{/if}
</div>
</section>

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2020 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-2020 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-2020 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-2020 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,207 @@
{*
* 2007-2020 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-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{capture name=path}
<a href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}">
{l s='My account' mod='colissimo'}
</a>
<span class="navigation-pipe">{$navigationPipe|escape:'htmlall':'UTF-8'}</span>
<span class="navigation_page">{l s='Colissimo returns' mod='colissimo'}</span>
{/capture}
<h1 class="page-heading bottom-indent">{l s='Colissimo returns' mod='colissimo'}</h1>
<div id="colissimo-returns" class="colissimo-16">
<p class="colissimo-returns-header">
{l s='Find on this page your orders processed by Colissimo.' mod='colissimo'}
</p>
<p>
{l s='This page will allow you to:' mod='colissimo'}
</p>
<ul class="colissimo-list">
<li>{l s='download your return labels,' mod='colissimo'}</li>
<li>{l s='choose a place of deposit to return your parcel,' mod='colissimo'}</li>
<li>{l s='trigger the collection of your parcel in your mailbox' mod='colissimo'}</li>
</ul>
<p>
{l s='If you want to deposit your parcel at a retailer or post office, click' mod='colissimo'}
<a target="_blank" href="https://www.laposte.fr/particulier/outils/trouver-un-point-de-retrait-ou-de-depot-colissimo">
{l s='here' mod='colissimo'}
</a>
</p>
<img class="colissimo-returns-logo img-responsive"
src="{$colissimo_img_path|escape:'htmlall':'UTF-8'}Colissimo_Logo_H.png"/>
<table id="order-list" class="table table-bordered footab">
<table class="table table-striped table-bordered table-labeled hidden-sm-down">
<thead class="thead-default">
<tr>
<th>{l s='Order reference' mod='colissimo'}</th>
<th>{l s='Date' mod='colissimo'}</th>
<th class="hidden-md-down">{l s='Status' mod='colissimo'}</th>
<th class="text-sm-center">{l s='Return label' mod='colissimo'}</th>
<th class="text-sm-center">{l s='Mailbox return' mod='colissimo'}</th>
</tr>
</thead>
<tbody>
{foreach $shipments as $shipment}
<tr>
<td>{$shipment.reference|escape:'htmlall':'UTF-8'}</td>
<td>{$shipment.date|escape:'htmlall':'UTF-8'}</td>
<td class="hidden-md-down">
<span class="label label-pill {$shipment.status.contrast|escape:'htmlall':'UTF-8'}"
style="background-color: {$shipment.status.color|escape:'htmlall':'UTF-8'}">
{$shipment.status.name|escape:'htmlall':'UTF-8'}
</span>
</td>
<td class="text-sm-center">
{if $shipment.return_label.id}
{if !$shipment.return_file_deleted}
<a target="_blank"
href="{$link->getModuleLink('colissimo', 'return', ['action' => 'downloadLabel', 'id_label' => $shipment.return_label.id|intval])|escape:'htmlall':'UTF-8'}">
<i class="icon icon-download"></i>
{$shipment.return_label.shipping_number|escape:'htmlall':'UTF-8'}
</a>
{else}
{$shipment.return_label.shipping_number|escape:'htmlall':'UTF-8'}
{/if}
{else}
{if $shipment.return_available}
<a class="btn btn-primary"
href="{$link->getModuleLink('colissimo', 'return', ['action' => 'generateLabel', 'id_label' => $shipment.label.id])}">
{l s='Generate a return label' mod='colissimo'}
</a>
{else}
--
{/if}
{/if}
</td>
<td class="text-sm-center font-weight-bold">
{if $shipment.mailbox_return && $shipment.return_label.id}
{if $shipment.mailbox_return_text}
{$shipment.mailbox_return_text|escape:'htmlall':'UTF-8'}
{else}
{if !$shipment.return_file_deleted}
<button class="colissimo-request-pickup-16 btn btn-primary"
data-colissimo-label-id="{$shipment.return_label.id|intval}">
{l s='Request a mailbox pickup' mod='colissimo'}
</button>
{else}
--
{/if}
{/if}
{else}
--
{/if}
</td>
</tr>
{foreachelse}
<tr>
<td colspan="5">
<div class="alert alert-info">
{l s='You don\'t have any orders shipped with Colissimo yet.' mod='colissimo'}
</div>
</td>
</tr>
{/foreach}
</tbody>
</table>
<div class="hidden-md-up colissimo-returns">
{foreach from=$shipments item=shipment}
<div class="colissimo-return">
<div class="row">
<div class="col-xs-10">
<h3>{$shipment.reference|escape:'htmlall':'UTF-8'}</h3>
<div class="date">{$shipment.date|escape:'htmlall':'UTF-8'}</div>
<div class="status">
<span class="label label-pill {$shipment.status.contrast|escape:'htmlall':'UTF-8'}"
style="background-color:{$shipment.status.color|escape:'htmlall':'UTF-8'}"
>
{$shipment.status.name|escape:'htmlall':'UTF-8'}
</span>
</div>
<div class="font-weight-bold btn-colissimo-pickup">
{if $shipment.mailbox_return && $shipment.return_label.id}
{if $shipment.mailbox_return_text}
{$shipment.mailbox_return_text|escape:'htmlall':'UTF-8'}
{else}
{if !$shipment.return_file_deleted}
<button class="colissimo-request-pickup-16 btn btn-primary"
data-colissimo-label-id="{$shipment.return_label.id|intval}">
{l s='Request a mailbox pickup' mod='colissimo'}
</button>
{else}
--
{/if}
{/if}
{else}
--
{/if}
</div>
</div>
</div>
</div>
{/foreach}
</div>
</div>
<div class="colissimo-modal">
<div class="modal fade colissimo-bal" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
{l s='Colissimo Mailbox return' mod='colissimo'}
<button type="button" class="close" data-dismiss="modal" aria-label="{l s='Close' mod='colissimo'}">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<div class="alert alert-danger modal-body-error" style="display: none;"></div>
<div class="modal-body-content"></div>
</div>
<div class="modal-footer">
<img src="{$colissimo_img_path|escape:'htmlall':'UTF-8'}Colissimo_Logo_H.png"/>
</div>
</div>
</div>
</div>
</div>
{literal}
<script type="text/javascript">
var colissimoAjaxReturn = baseDir;
var genericErrorMessage = "{/literal}{l s='An unexpected error occurred. Please try again later.' mod='colissimo'}{literal}";
var colissimoBalFancy = $('.colissimo-bal');
$('.colissimo-request-pickup-16').on('click', function (e) {
e.preventDefault();
var idColissimoLabel = $(this).attr('data-colissimo-label-id');
onHideModal();
colissimoBalFancy.attr('data-colissimo-label-id', idColissimoLabel);
colissimoBalFancy.modal('show');
onShowModal(idColissimoLabel);
});
</script>
{/literal}

View File

@@ -0,0 +1,59 @@
{*
* 2007-2020 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-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{capture name=path}
<a href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}">
{l s='My account' mod='colissimo'}
</a>
<span class="navigation-pipe">{$navigationPipe|escape:'htmlall':'UTF-8'}</span>
<span class="navigation_page">{l s='Colissimo shipment tracking' mod='colissimo'}</span>
{/capture}
<h1 class="page-heading bottom-indent">{l s='Colissimo shipment tracking' mod='colissimo'}</h1>
{if $no_labels}
<div class="alert alert-info">
{l s='There are no Colissimo shipments yet. Please come back later.' mod='colissimo'}
</div>
{else}
<div class="colisismo-tracking-loader">
<p>{l s='Please wait while we are retrieving last tracking details...' mod='colissimo'}</p>
<img src="{$colissimo_img_path|escape:'htmlall':'UTF-8'}loading_tracking.svg"/>
</div>
<div class="colissimo-error" style="display: none;">
<div class="alert alert-danger">
<p>{l s='An error occurred while retrieving tracking details. Please try again later.' mod='colissimo'}</p>
</div>
</div>
<div id="colissimo-timeline" class="colissimo-shipments colissimo-16" style="display: none;"></div>
{/if}
{literal}
<script type="text/javascript">
var colissimoAjaxTracking = baseDir;
var colissimoTrackingReference = "{/literal}{$order_reference|escape:'htmlall':'UTF-8'}{literal}";
var colissimoTrackingHash = "{/literal}{$order_hash|escape:'htmlall':'UTF-8'}{literal}";
var noLabels = {/literal}{$no_labels|intval}{literal};
</script>
{/literal}

View File

@@ -0,0 +1,91 @@
{*
* 2007-2020 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-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<section class="form-fields">
<div class="colissimo-mailbox-intro">
<p>{l s='Enter the address of the parcel to be collected' mod='colissimo'}</p>
</div>
<div class="container-fluid">
<form method="post" id="colissimo-mailbox-return-address">
<input type="hidden" name="id_colissimo_label" value="{$id_colissimo_label}" />
<div class="row form-group">
<label class="form-control-label col-md-3 offset-md-1">{l s='Company' mod='colissimo'}</label>
<div class="col-md-8">
<input class="form-control" type="text" name="colissimo-company" value="{$address->company}">
</div>
</div>
<div class="row form-group">
<label class="form-control-label col-md-3 offset-md-1">{l s='Lastname' mod='colissimo'}</label>
<div class="col-md-8">
<input class="form-control" type="text" name="colissimo-lastname" value="{$address->lastname}">
</div>
</div>
<div class="row form-group">
<label class="form-control-label col-md-3 offset-md-1">{l s='Firstname' mod='colissimo'}</label>
<div class="col-md-8">
<input class="form-control" type="text" name="colissimo-firstname" value="{$address->firstname}">
</div>
</div>
<div class="row form-group">
<label class="form-control-label col-md-3 offset-md-1">{l s='Address 1' mod='colissimo'}</label>
<div class="col-md-8">
<input class="form-control" type="text" name="colissimo-address1" value="{$address->address1}">
</div>
</div>
<div class="row form-group">
<label class="form-control-label col-md-3 offset-md-1">{l s='Address 2' mod='colissimo'}</label>
<div class="col-md-8">
<input class="form-control" type="text" name="colissimo-address2" value="{$address->address2}">
</div>
</div>
<div class="row form-group">
<label class="form-control-label col-md-3 offset-md-1">{l s='Postcode' mod='colissimo'}</label>
<div class="col-md-4">
<input class="form-control" type="text" name="colissimo-postcode" value="{$address->postcode}">
</div>
</div>
<div class="row form-group">
<label class="form-control-label col-md-3 offset-md-1">{l s='City' mod='colissimo'}</label>
<div class="col-md-8">
<input class="form-control" type="text" name="colissimo-city" value="{$address->city}">
</div>
</div>
<div class="row form-group">
<span class="offset-md-4 col-md-8"><b>FRANCE</b></span>
</div>
<div class="row form-group">
<div class="offset-md-4 col-md-6">
<button class="btn btn-primary colissimo-submit-availability" type="submit" name="submitColissimoAvailability">
<i class="material-icons icon-spinner-off">loop</i>
{l s='Check availability' mod='colissimo'}
</button>
</div>
</div>
</form>
</div>
</section>

View File

@@ -0,0 +1,75 @@
{*
* 2007-2020 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-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="colissimo-mailbox-return-dates">
<div class="">
<div class="alert alert-info">
<p class="strong">{l s='How it works?' mod='colissimo'}</p>
<ul>
<li>{l s='Print the return label and paste it on the package.' mod='colissimo'}</li>
<li>
{l s='Drop the package into your mailbox the day of the pickup.' mod='colissimo'}<br />
{l s='Your postman will pick it up during the day and drop a receipt.' mod='colissimo'}
</li>
</ul>
<hr>
<span>
{l s='A postman will come and pick up your parcel on' mod='colissimo'} <b>{$picking_date_display}</b>.<br />
{l s='Please make sure to drop the parcel inside your mailbox before' mod='colissimo'} <b>{$max_picking_hour}</b>.
</span>
</div>
<p class="colissimo-mailbox-return-address">
<span>{l s='Mailbox address:' mod='colissimo'}</span>
{$picking_address.company}<br />
{$picking_address.lastname} {$picking_address.firstname}<br />
{$picking_address.address1}<br />
{if $picking_address.address2}
{$picking_address.address2}<br />
{/if}
{$picking_address.postcode} {$picking_address.city}<br />
FRANCE<br />
<i class="material-icons">local_shipping</i>
</p>
<form method="post" id="colissimo-mailbox-return-confirm">
<input type="hidden" name="mailbox_company" value="{$picking_address.company}" />
<input type="hidden" name="mailbox_lastname" value="{$picking_address.lastname}" />
<input type="hidden" name="mailbox_firstname" value="{$picking_address.firstname}" />
<input type="hidden" name="mailbox_address1" value="{$picking_address.address1}" />
<input type="hidden" name="mailbox_address2" value="{$picking_address.address2}" />
<input type="hidden" name="mailbox_postcode" value="{$picking_address.postcode}" />
<input type="hidden" name="mailbox_city" value="{$picking_address.city}" />
<input type="hidden" name="mailbox_email" value="{$customer.email}" />
<input type="hidden" name="mailbox_date" value="{$picking_date}" />
<input type="hidden" name="mailbox_hour" value="{$max_picking_hour}" />
<input type="hidden" name="id_colissimo_label" value="{$id_colissimo_label}" />
<button class="btn btn-primary colissimo-submit-confirm" type="submit" name="submitColissimoPickupConfirm">
<i class="material-icons js-icon-spinner icon-spinner-off">loop</i>
<i class="material-icons js-icon-check">check</i>
{l s='Confirm the pick-up request' mod='colissimo'}
</button>
</form>
</div>
</div>

View File

@@ -0,0 +1,47 @@
{*
* 2007-2020 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-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="colissimo-mailbox-return-result">
{if !$has_error}
<div class="alert alert-success">
{l s='The mailbox pickup is confirmed' mod='colissimo'}
</div>
{else}
<div class="alert alert-danger">
{if $error_message}
{$error_message}
{else}
{l s='An error occurred. Please try again later or request a pickup on Colissimo website at this url:' mod='colissimo'}
<p>
<a href="http://colissimo.fr/retourbal" target="_blank">http://colissimo.fr/retourbal</a>
</p>
{/if}
</div>
{/if}
<button class="btn btn-primary colissimo-result-close" data-dismiss="modal" aria-label="{l s='Close' mod='colissimo'}">
<i class="material-icons">close</i>
{l s='Close' mod='colissimo'}
</button>
</div>

View File

@@ -0,0 +1,223 @@
{*
* 2007-2020 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-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<section>
{if $shipment.user_messages}
<ul class="timeline-user-messages">
{foreach $shipment.user_messages as $data}
<li class="timeline-user-message">
<img src="{$colissimo_img_path}icons/icon-warning.png"/>
<div class="user-message-txt">{$data.message nofilter}</div>
</li>
{/foreach}
</ul>
{/if}
<div class="timeline-container">
<div class="timeline-header">
<div class="timeline-shipment-number-mobile">
<a href="https://www.laposte.fr/outils/suivre-vos-envois?code={$shipment.parcel_details.parcelNumber}"
target="_blank">
<span>N°{$shipment.parcel_details.parcelNumber}</span>
</a>
</div>
<div class="timeline-logo">
<img src="{$colissimo_img_path}Colissimo_Logo_H.png"/>
</div>
<div class="timeline-shipment-number">
<a href="https://www.laposte.fr/outils/suivre-vos-envois?code={$shipment.parcel_details.parcelNumber}"
target="_blank">
<span>N°{$shipment.parcel_details.parcelNumber}</span>
</a>
</div>
{if $shipment.parcel_details.customerLogoURL}
<div class="timeline-merchant-info">
<span> {l s='- Sent by' mod='colissimo'}</span>
<img src="{$shipment.parcel_details.customerLogoURL}"/>
</div>
{/if}
{if $shipment.parcel_details.deliveryLabel}
<div class="timeline-delivery-type-mobile">
{$shipment.parcel_details.deliveryLabel}
{$shipment.parcel_details.optionDeliveryLabel}
</div>
{/if}
</div>
{if $shipment.steps_timeline[1]['status'] != 'STEP_STATUS_ACTIVE'}
<div class="timeline-step-0">
<div class="timeline-step-0-icon">
<img src="{$colissimo_img_path}icons/icon-box-timeline.png"/>
</div>
<div class="timeline-step-0-text">{$shipment.steps_timeline[0]['labelShort']}</div>
</div>
{else}
{if $shipment.parcel_details.deliveryLabel}
<div class="timeline-delivery-type">
<div class="delivery-type-img">
<img src="{$colissimo_img_path}icons/icon-box-timeline.png"/>
</div>
<div class="delivery-type-text">
<span>{l s='Type of delivery' mod='colissimo'}</span>
{$shipment.parcel_details.deliveryLabel}
{$shipment.parcel_details.optionDeliveryLabel}
</div>
</div>
{/if}
<div class="timeline-dates">
<div class="timeline-first-step-text">{if $shipment.steps_timeline[1].labelShort}{$shipment.steps_timeline[1].labelShort}{/if}</div>
<div class="timeline-last-step-text">{if $shipment.steps_timeline[5].labelShort}{$shipment.steps_timeline[5].labelShort}{/if}</div>
<div class="timeline-first-step-date">{if $shipment.steps_timeline[1].date}{$shipment.steps_timeline[1].dateDisplayShort}{/if}</div>
<div class="timeline-last-step-date">{if $shipment.steps_timeline[5].date}{$shipment.steps_timeline[5].dateDisplayShort}{/if}</div>
</div>
<div class="timeline-steps">
<div class="timeline-dots">
{foreach $shipment.steps_timeline as $key => $step}
{if $step.stepId}
<div class="timeline-dot {$step.statusClass}">
<div class="round"></div>
<div class="mobile-round">
<img src="{$colissimo_img_path}icons/icon-box-timeline.png"/>
</div>
{if isset($shipment.steps_timeline[$key + 1]) && $shipment.steps_timeline[$key + 1]['status'] != 'STEP_STATUS_INACTIVE'}
<div class="line"></div>
{/if}
</div>
{/if}
{/foreach}
</div>
<div class="timeline-mobile-informations">
<div class="text-short">{$shipment.parcel_details.currentStep.labelShort}</div>
<div class="step-date">{$shipment.parcel_details.currentStep.dateDisplay}</div>
{if $shipment.parcel_details.currentStep.countryName}
<div class="step-country">
<span class="flag flag-{$shipment.parcel_details.currentStep.countryCodeISO|lower}"></span>
{$shipment.parcel_details.currentStep.countryName}
</div>
{/if}
{if $shipment.parcel_details.service.deliveryChoice}
<p class="reschedule-delivery">
<a target="_blank"
href="http://www.laposte.fr/particulier/modification-livraison?code={$shipment.parcel_details.parcelNumber}">
{l s='Reschedule my delivery' mod='colissimo'}
</a>
</p>
{/if}
{if $shipment.parcel_details.currentStep.stepId == 4 && $shipment.parcel_details.removalPoint && $shipment.parcel_details.removalPoint.countryCodeISO == 'FR'}
<p class="removal-point">
<a target="_blank"
href="http://www.laposte.fr/particulier/outils/trouver-un-bureau-de-poste/bureau-detail/{$shipment.parcel_details.removalPoint.siteName|replace:'/':''}/{$shipment.parcel_details.removalPoint.siteCode}">
{$shipment.parcel_details.removalPoint.siteName}
</a>
<br>
<span>{l s='You will need ID to collect your shipment.' mod='colissimo'}</span>
</p>
{/if}
</div>
<ul class="timeline-steps-details-simple">
{foreach $shipment.steps_timeline as $key => $step}
{if $step.stepId}
<li>
<p class="text-short">{$step.labelShort}</p>
{if $step.countryName}
<p class="step-country">
<span class="flag flag-{$step.countryCodeISO|lower}"></span>
{$step.countryName}
</p>
{/if}
<p class="step-date">{$step.dateDisplay}</p>
<p class="text-long">{$step.labelLong}</p>
{if $step.stepId == $shipment.parcel_details.currentStep.stepId && $shipment.parcel_details.service.deliveryChoice}
<p class="reschedule-delivery">
<a target="_blank"
href="http://www.laposte.fr/particulier/modification-livraison?code={$shipment.parcel_details.parcelNumber}">
{l s='Reschedule my delivery' mod='colissimo'}
</a>
</p>
{/if}
{if $step.stepId == 4 && $shipment.parcel_details.removalPoint && $shipment.parcel_details.removalPoint.countryCodeISO == 'FR'}
<p class="removal-point-name">{$shipment.parcel_details.removalPoint.siteName}</p>
<p class="removal-point">
<a target="_blank"
href="http://www.laposte.fr/particulier/outils/trouver-un-bureau-de-poste/bureau-detail/{$shipment.parcel_details.removalPoint.siteName|replace:'/':''}/{$shipment.parcel_details.removalPoint.siteCode}">
{l s='More information' mod='colissimo'}
</a>
<br>
<span>{l s='You will need ID to collect your shipment.' mod='colissimo'}</span>
</p>
{/if}
<p></p>
</li>
{/if}
{/foreach}
</ul>
</div>
<div class="timeline-steps-details-full">
<img src="https://www.laposte.fr/_ui/eboutique/images/suivi/sep.png" style="max-width: 100%"/>
<div class="details-header">
<div class="details-title">
<h2>{l s='See all the steps' mod='colissimo'}</h2>
</div>
<div class="details-accordion">
<img class="js-details-accordion" src="{$colissimo_img_path}icons/icon-chevron.png"/>
</div>
</div>
<div class="timeline-steps-details-table">
<table>
<thead>
<tr>
<th>{l s='Dates' mod='colissimo'}</th>
<th>&nbsp</th>
<th>{l s='Steps' mod='colissimo'}</th>
</tr>
</thead>
<tbody>
{foreach $shipment.steps_details as $step}
<tr>
<td class="timeline-details-date">
{$step.dateDisplay}
</td>
<td class="timeline-details-sep"></td>
<td class="timeline-details-label">
{$step.labelLong}
</td>
</tr>
{/foreach}
</tbody>
</table>
<div class="table-mobile">
{foreach $shipment.steps_details as $step}
<div class="timeline-details-date">
{$step.dateDisplayShort}
</div>
<div class="timeline-details-label">
{$step.labelLong}
</div>
{/foreach}
</div>
</div>
</div>
{/if}
</div>
</section>

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2020 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-2020 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-2020 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-2020 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,189 @@
{*
* 2007-2020 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-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{extends file='page.tpl'}
{block name='page_title'}
{l s='Colissimo returns' mod='colissimo'}
{/block}
{block name='page_content_container'}
<section id="colissimo-returns" class="page-content">
<h6 class="colissimo-returns-header">
{l s='Find on this page your orders processed by Colissimo.' mod='colissimo'}
</h6>
<p>
{l s='This page will allow you to:' mod='colissimo'}
</p>
<ul class="colissimo-list">
<li>{l s='download your return labels,' mod='colissimo'}</li>
<li>{l s='choose a place of deposit to return your parcel,' mod='colissimo'}</li>
<li>{l s='trigger the collection of your parcel in your mailbox' mod='colissimo'}</li>
</ul>
<p>
{l s='If you want to deposit your parcel at a retailer or post office, click' mod='colissimo'}
<a target="_blank" href="https://www.laposte.fr/particulier/outils/trouver-un-point-de-retrait-ou-de-depot-colissimo">
{l s='here' mod='colissimo'}
</a>
</p>
<img class="colissimo-returns-logo img-responsive"
src="{$colissimo_img_path}Colissimo_Logo_H.png"/>
<table class="table table-striped table-bordered table-labeled hidden-sm-down">
<thead class="thead-default">
<tr>
<th>{l s='Order reference' mod='colissimo'}</th>
<th>{l s='Date' mod='colissimo'}</th>
<th class="hidden-md-down">{l s='Status' mod='colissimo'}</th>
<th class="text-sm-center">{l s='Return label' mod='colissimo'}</th>
<th class="text-sm-center">{l s='Mailbox return' mod='colissimo'}</th>
</tr>
</thead>
<tbody>
{foreach $shipments as $shipment}
<tr>
<th scope="row">{$shipment.reference}</th>
<td>{$shipment.date}</td>
<td class="hidden-md-down">
<span class="label label-pill {$shipment.status.contrast}" style="background-color: {$shipment.status.color}">
{$shipment.status.name}
</span>
</td>
<td class="text-sm-center">
{if $shipment.return_label.id}
{if !$shipment.return_file_deleted}
<a target="_blank"
href="{$link->getModuleLink('colissimo', 'return', ['action' => 'downloadLabel', 'id_label' => $shipment.return_label.id])}">
<i class="material-icons">get_app</i>
{$shipment.return_label.shipping_number}
</a>
{else}
{$shipment.return_label.shipping_number}
{/if}
{else}
{if $shipment.return_available}
<a class="btn btn-primary"
href="{$link->getModuleLink('colissimo', 'return', ['action' => 'generateLabel', 'id_label' => $shipment.label.id])}">
{l s='Generate a return label' mod='colissimo'}
</a>
{else}
--
{/if}
{/if}
</td>
<td class="text-sm-center font-weight-bold">
{if $shipment.mailbox_return && $shipment.return_label.id}
{if $shipment.mailbox_return_text}
{$shipment.mailbox_return_text}
{else}
{if !$shipment.return_file_deleted}
<button data-colissimo-label-id="{$shipment.return_label.id}"
class="btn btn-primary colissimo-request-pickup">
{l s='Request a mailbox pickup' mod='colissimo'}
</button>
{else}
--
{/if}
{/if}
{else}
--
{/if}
</td>
</tr>
{foreachelse}
<tr>
<td colspan="5">
<div class="alert alert-info">
{l s='You don\'t have any orders shipped with Colissimo yet.' mod='colissimo'}
</div>
</td>
</tr>
{/foreach}
</tbody>
</table>
<div class="hidden-md-up colissimo-returns">
{foreach from=$shipments item=shipment}
<div class="colissimo-return">
<div class="row">
<div class="col-xs-10">
<h3>{$shipment.reference}</h3>
<div class="date">{$shipment.date}</div>
<div class="status">
<span class="label label-pill {$shipment.status.contrast}"
style="background-color:{$shipment.status.color}">
{$shipment.status.name}
</span>
</div>
<div class="font-weight-bold btn-colissimo-pickup">
{if $shipment.mailbox_return && $shipment.return_label.id}
{if $shipment.mailbox_return_text}
{$shipment.mailbox_return_text}
{else}
{if !$shipment.return_file_deleted}
<button data-colissimo-label-id="{$shipment.return_label.id}"
class="btn btn-primary colissimo-request-pickup">
{l s='Request a mailbox pickup' mod='colissimo'}
</button>
{else}
--
{/if}
{/if}
{else}
--
{/if}
</div>
</div>
</div>
</div>
{/foreach}
</div>
</section>
<div class="colissimo-modal">
<div class="modal fade colissimo-bal" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
{l s='Colissimo Mailbox return' mod='colissimo'}
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<div class="alert alert-danger modal-body-error" style="display: none;"></div>
<div class="modal-body-content"></div>
</div>
<div class="modal-footer">
<img src="{$colissimo_img_path}Colissimo_Logo_H.png"/>
</div>
</div>
</div>
</div>
</div>
{literal}
<script type="text/javascript">
var colissimoAjaxReturn = prestashop.urls.base_url;
var genericErrorMessage = "{/literal}{l s='An unexpected error occurred. Please try again later.' mod='colissimo'}{literal}";
</script>
{/literal}
{/block}

View File

@@ -0,0 +1,59 @@
{*
* 2007-2020 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-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{extends file='page.tpl'}
{block name='page_title'}
{l s='Colissimo shipment tracking for order ' mod='colissimo'}
{$order_reference}
{/block}
{block name='page_content_container'}
{if $no_labels}
<div class="alert alert-info">
{l s='There are no Colissimo shipments yet. Please come back later.' mod='colissimo'}
</div>
{else}
<div class="colisismo-tracking-loader">
<p>{l s='Please wait while we are retrieving last tracking details...' mod='colissimo'}</p>
<img src="{$colissimo_img_path}loading_tracking.svg"/>
</div>
<div class="colissimo-error" style="display: none;">
<div class="alert alert-danger">
<p>{l s='An error occurred while retrieving tracking details. Please try again later.' mod='colissimo'}</p>
</div>
</div>
<div id="colissimo-timeline" class="colissimo-shipments" style="display: none;"></div>
{/if}
{literal}
<script type="text/javascript">
var colissimoAjaxTracking = prestashop.urls.base_url;
var colissimoTrackingReference = "{/literal}{$order_reference}{literal}";
var colissimoTrackingHash = "{/literal}{$order_hash}{literal}";
var noLabels = {/literal}{$no_labels}{literal};
</script>
{/literal}
{/block}