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,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
*}
{include "../_partials/header.back.tpl"}
<div id="bo-colissimo">
<div class="form-wrapper">
{if !$show_migration}
<ul class="nav nav-tabs">
<li {if $active == 'intro'}class="active"{/if}>
<a href="#intro" data-toggle="tab">{l s='Introduction' mod='colissimo'}</a>
</li>
<li {if $active == 'account'}class="active"{/if}>
<a href="#account" data-toggle="tab"><i
class="icon icon-user"></i> {l s='My Colissimo account' mod='colissimo'}
</a>
</li>
<li {if $active == 'fo'}class="active"{/if}>
<a href="#fo" data-toggle="tab"><i class="icon icon-truck"></i> {l s='Front-Office settings' mod='colissimo'}
</a>
</li>
<li {if $active == 'bo'}class="active"{/if}>
<a href="#bo" data-toggle="tab"><i class="icon icon-cogs"></i> {l s='Back-Office settings' mod='colissimo'}
</a>
</li>
<li {if $active == 'files'}class="active"{/if}>
<a href="#files" data-toggle="tab"><i class="icon icon-file-pdf-o"></i> {l s='Files management' mod='colissimo'}
</a>
</li>
</ul>
<div class="tab-content panel">
<div id="intro" class="tab-pane {if $active == 'intro'}active{/if}">
{include file="./tab-intro.tpl"}
</div>
<div id="account" class="tab-pane {if $active == 'account'}active{/if}">
{include file="./tab-account.tpl"}
</div>
<div id="fo" class="tab-pane {if $active == 'fo'}active{/if}">
{include file="./tab-front.tpl"}
</div>
<div id="bo" class="tab-pane {if $active == 'bo'}active{/if}">
{include file="./tab-back.tpl"}
</div>
<div id="files" class="tab-pane {if $active == 'files'}active{/if}">
{include file="./tab-files.tpl"}
</div>
</div>
{else}
{include file="../migration/migration.tpl"}
{/if}
</div>
</div>

View File

@@ -0,0 +1,761 @@
{*
* 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
*}
<form class="form-horizontal"
action="#"
name="colissimo_account_config_form"
id="colissimo-account-config-form"
method="post"
enctype="multipart/form-data">
<div class="panel">
<div class="panel-heading">
<i class="icon-cogs"></i>
{l s='Configuration' mod='colissimo'}
</div>
<div class="row">
<div class="form-group">
<label class="control-label col-lg-3 ">
<span class="label-tooltip"
data-toggle="tooltip"
data-html="true"
data-original-title="{l s='Your account number is indicated on your contract' mod='colissimo'}">
{l s='Enable logs' mod='colissimo'}
</span>
</label>
<div class="col-lg-9">
<span class="switch prestashop-switch fixed-width-lg ">
<input type="radio"
value="1"
name="COLISSIMO_LOGS"
id="COLISSIMO_LOGS_on"
{if $form_data['COLISSIMO_LOGS']|intval}checked="checked"{/if}>
<label for="COLISSIMO_LOGS_on">{l s='Yes' mod='colissimo'}</label>
<input type="radio"
value="0"
name="COLISSIMO_LOGS"
id="COLISSIMO_LOGS_off"
{if !$form_data['COLISSIMO_LOGS']|intval}checked="checked"{/if}>
<label for="COLISSIMO_LOGS_off">{l s='No' mod='colissimo'}</label>
<a class="slide-button btn"></a>
</span>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<div class="col-lg-9 col-lg-offset-3">
<p class="alert-text">
{l s='Logs files are stored in the logs directory of the module. Files are rotated every month.' mod='colissimo'}
<br/>
{l s='You can download the current file by clicking' mod='colissimo'}
<a target="_blank"
href="{$link->getAdminLink('AdminColissimoLogs')|escape:'htmlall':'UTF-8'}&action=downloadLogFile">{l s='here' mod='colissimo'}</a>.<br/>
</p>
</div>
</div>
</div>
<div class="col-lg-offset-3 colissimo-box">
<div class="panel">
<div class="row">
<p class="colissimo-box-title col-lg-offset-3">{l s='Colissimo Box credentials' mod='colissimo'}</p>
<div class="form-group">
<label class="control-label col-lg-3">
<span class="label-tooltip"
data-toggle="tooltip"
data-html="true"
data-original-title="{l s='Your account number is indicated on your contract' mod='colissimo'}">
{l s='Contract number' mod='colissimo'}
</span>
</label>
<div class="col-lg-9">
<div class="input-group fixed-width-xxl">
<span class="input-group-addon"><i class="icon-user"></i></span>
<input type="text"
name="COLISSIMO_ACCOUNT_LOGIN"
class="input fixed-width-xxl"
value="{$form_data['COLISSIMO_ACCOUNT_LOGIN']|escape:'htmlall':'UTF-8'}">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
<span class="label-tooltip"
data-toggle="tooltip"
data-html="true"
data-original-title="{l s='The password was sent by email to the contract address' mod='colissimo'}">
{l s='Password' mod='colissimo'}
</span>
</label>
<div class="col-lg-9">
<div class="input-group fixed-width-xxl">
<span class="input-group-addon"><i class="icon-key"></i></span>
<input type="password"
name="COLISSIMO_ACCOUNT_PASSWORD"
class="input fixed-width-xxl"
value="{$form_data['COLISSIMO_ACCOUNT_PASSWORD']|escape:'htmlall':'UTF-8'}">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 ">
<span class="label-tooltip"
data-toggle="tooltip"
data-html="true"
data-original-title="{l s='Check your product list on your contract' mod='colissimo'}">
{l s='Account type' mod='colissimo'}
</span>
</label>
<div class="col-lg-9">
<div class="checkbox">
<label>
<input type="checkbox"
name="COLISSIMO_ACCOUNT_TYPE[][]"
{if isset($form_data['COLISSIMO_ACCOUNT_TYPE']['FRANCE'])}checked="true"{/if}
value="FRANCE">
{l s='France (home, PUDO, return)' mod='colissimo'}
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox"
name="COLISSIMO_ACCOUNT_TYPE[][]"
{if isset($form_data['COLISSIMO_ACCOUNT_TYPE']['OM'])}checked="true"{/if}
value="OM">
{l s='Overseas (home)' mod='colissimo'}
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox"
name="COLISSIMO_ACCOUNT_TYPE[][]"
{if isset($form_data['COLISSIMO_ACCOUNT_TYPE']['EUROPE'])}checked="true"{/if}
value="EUROPE">
{l s='Europe' mod='colissimo'}
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox"
name="COLISSIMO_ACCOUNT_TYPE[][]"
{if isset($form_data['COLISSIMO_ACCOUNT_TYPE']['WORLDWIDE'])}checked="true"{/if}
value="WORLDWIDE">
{l s='Worldwide' mod='colissimo'}
</label>
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
</div>
</div>
</div>
<div class="panel-footer">
<button type="submit" class="btn btn-default pull-right" name="submitColissimoAccountConfigForm">
<i class="process-icon-save"></i>
{l s='Save' mod='colissimo'}
</button>
</div>
</div>
</form>
<div class="panel">
<div class="panel-heading">
<i class="icon-envelope"></i>
{l s='Colissimo Address' mod='colissimo'}
</div>
<div class="clearfix">
<div class="alert alert-info">
{l s='Please enter your physical address for your returns in case of non-delivery (no CEDEX admitted)' mod='colissimo'}
</div>
<div class="row colissimo-return-address">
<div class="form-group">
<label class="control-label col-lg-3 ">
<span>
{l s='Use a different address for the reception of return shipement' mod='colissimo'}
</span>
</label>
<div class="col-lg-9">
<span class="switch prestashop-switch fixed-width-lg colissimo-set-return-address">
<input type="radio"
value="1"
name="COLISSIMO_USE_RETURN_ADDRESS"
id="COLISSIMO_USE_RETURN_ADDRESS_on"
{if $form_data['COLISSIMO_USE_RETURN_ADDRESS']|intval}checked="checked"{/if}>
<label for="COLISSIMO_USE_RETURN_ADDRESS_on">{l s='Yes' mod='colissimo'}</label>
<input type="radio"
value="0"
name="COLISSIMO_USE_RETURN_ADDRESS"
id="COLISSIMO_USE_RETURN_ADDRESS_off"
{if !$form_data['COLISSIMO_USE_RETURN_ADDRESS']|intval}checked="checked"{/if}>
<label for="COLISSIMO_USE_RETURN_ADDRESS_off">{l s='No' mod='colissimo'}</label>
<a class="slide-button btn"></a>
</span>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
</div>
<div class="col-md-6 col-sm-12">
<form class="form-horizontal adr-form"
action="#"
name="colissimo_sender_config_form"
id="colissimo-sender-config-form"
method="post"
enctype="multipart/form-data">
<div class="panel">
<div class="panel-heading">
{l s='Shipping Address' mod='colissimo'}
</div>
<div class="row">
<div class="form-group">
<label class="control-label col-lg-3 required">
<span>{l s='Company' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<div class="input-group input fixed-width-lg">
<span class="input-group-addon" id="sender-company_counter">35</span>
<input type="text"
autocomplete="organization"
id="sender-company"
name="sender_company"
class="input fixed-width-lg"
required="required"
value="{$form_data['sender_company']|escape:'htmlall':'UTF-8'}"
data-maxchar="35"
maxlength="35">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 required">
<span>{l s='Lastname' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<div class="input-group input fixed-width-lg">
<span class="input-group-addon" id="sender-lastname_counter">35</span>
<input type="text"
autocomplete="family-name"
id="sender-lastname"
name="sender_lastname"
class="input fixed-width-lg"
required="required"
value="{$form_data['sender_lastname']|escape:'htmlall':'UTF-8'}"
data-maxchar="35"
maxlength="35">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 required">
<span>{l s='Firstname' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<div class="input-group input fixed-width-lg">
<span class="input-group-addon" id="sender-firstname_counter">35</span>
<input type="text"
autocomplete="given-name"
id="sender-firstname"
name="sender_firstname"
class="input fixed-width-lg"
required="required"
value="{$form_data['sender_firstname']|escape:'htmlall':'UTF-8'}"
data-maxchar="35"
maxlength="35">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 required">
<span>{l s='Address 1' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<div class="input-group input fixed-width-xxl">
<span class="input-group-addon" id="sender-address1_counter">35</span>
<input type="text"
autocomplete="address-line1"
id="sender-address1"
name="sender_address1"
class="input fixed-width-xxl"
required="required"
value="{$form_data['sender_address1']|escape:'htmlall':'UTF-8'}"
data-maxchar="35"
maxlength="35">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
<span>{l s='Address 2' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<div class="input-group input fixed-width-xxl">
<span class="input-group-addon" id="sender-address2_counter">35</span>
<input type="text"
autocomplete="address-line2"
id="sender-address2"
name="sender_address2"
class="input fixed-width-xxl"
value="{$form_data['sender_address2']|escape:'htmlall':'UTF-8'}"
data-maxchar="35"
maxlength="35">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
<span>{l s='Address 3' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<div class="input-group input fixed-width-xxl">
<span class="input-group-addon" id="sender-address3_counter">35</span>
<input type="text"
autocomplete="address-line3"
id="sender-address3"
name="sender_address3"
class="input fixed-width-xxl"
value="{$form_data['sender_address3']|escape:'htmlall':'UTF-8'}"
data-maxchar="35"
maxlength="35">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
<span>{l s='Address 4' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<div class="input-group input fixed-width-xxl">
<span class="input-group-addon" id="sender-address4_counter">35</span>
<input type="text"
autocomplete="address-line4"
id="sender-address4"
name="sender_address4"
class="input fixed-width-xxl"
value="{$form_data['sender_address4']|escape:'htmlall':'UTF-8'}"
data-maxchar="35"
maxlength="35">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 required">
<span>{l s='City' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<div class="input-group input fixed-width-xxl">
<span class="input-group-addon" id="sender-city_counter">30</span>
<input type="text"
autocomplete="address-level2"
id="sender-city"
name="sender_city"
class="input fixed-width-xxl"
required="required"
value="{$form_data['sender_city']|escape:'htmlall':'UTF-8'}"
data-maxchar="35"
maxlength="35">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 required">
<span>{l s='Zipcode' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<div class="fixed-width-sm">
<input type="text"
autocomplete="postal-code"
name="sender_zipcode"
class="input fixed-width-sm"
value="{$form_data['sender_zipcode']|escape:'htmlall':'UTF-8'}"
required="required">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group"><label class="control-label col-lg-3 required">
<span>{l s='Country' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<select name="sender_country" class="chosen fixed-width-lg" style="display: none;">
{foreach from=$address_countries key=iso item=name}
<option value="{$iso|escape:'html':'UTF-8'}"
{if $form_data['sender_country'] == $iso }selected{/if}>
{$name|escape:'html':'UTF-8'}
</option>
<option value="{$iso|escape:'html':'UTF-8'}"
{if $form_data['sender_country'] == $iso }selected{/if}>
{$name|escape:'html':'UTF-8'}
</option>
{/foreach}
</select>
<div class="chosen-container chosen-container-single chosen-container-single-nosearch"
style="width: 250px;"
title="">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="validate-phone">
<div class="form-group">
<label class="control-label col-lg-3 required"> {l s='Phone' mod='colissimo'}</label>
<div class="col-lg-9">
<input type="text"
id="sender-phone"
name="sender_phone[main]"
class="input fixed-width-xl"
value="{$form_data['sender_phone']|escape:'htmlall':'UTF-8'}"
required="required">
</div>
</div>
<img src="{$colissimo_img_path|escape:'html':'UTF-8'}icons/icon_valid.png"
class="colissimo-mobile-valid js-colissimo-mobile-valid"/>
<img src="{$colissimo_img_path|escape:'html':'UTF-8'}icons/icon_invalid.png"
class="colissimo-mobile-invalid js-colissimo-mobile-invalid"/>
</div>
<input type="hidden" class="js-colissimo-is-mobile-valid" name="colissimo_is_mobile_valid" value=""/>
<div class="form-group">
<label class="control-label col-lg-3 required">
<span>{l s='Email' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<div class="input-group input fixed-width-xxl">
<span class="input-group-addon" id="sender-email_counter">80</span>
<input type="text"
autocomplete="email"
id="sender-email"
name="sender_email"
class="input fixed-width-xxl"
required="required"
value="{$form_data['sender_email']|escape:'htmlall':'UTF-8'}"
data-maxchar="80"
maxlength="80">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
</div>
<div class="panel-footer">
<button type="submit" class="btn btn-default pull-right" name="submitColissimoSenderAddressConfigForm">
<i class="process-icon-save"></i> {l s='Save' mod='colissimo'}
</button>
</div>
</div>
</form>
</div>
<div class="col-md-6 col-sm-12" id="colissimo-return-address">
<form class="form-horizontal adr-form"
action="#"
name="colissimo_return_config_form"
id="colissimo-return-config-form"
method="post"
enctype="multipart/form-data">
<div class="panel">
<div class="panel-heading">
{l s='Return Address' mod='colissimo'}
</div>
<div class="row">
<div class="form-group">
<label class="control-label col-lg-3 required">
<span>{l s='Company' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<div class="input-group input fixed-width-lg">
<span class="input-group-addon" id="return-company_counter">35</span>
<input type="text"
autocomplete="organization"
id="return-company"
name="return_company"
class="input fixed-width-lg"
required="required"
value="{$form_data['return_company']|escape:'htmlall':'UTF-8'}"
data-maxchar="35"
maxlength="35">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 required">
<span>{l s='Lastname' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<div class="input-group input fixed-width-lg">
<span class="input-group-addon" id="return-lastname_counter">35</span>
<input type="text"
autocomplete="family-name"
id="return-lastname"
name="return_lastname"
class="input fixed-width-lg"
required="required"
value="{$form_data['return_lastname']|escape:'htmlall':'UTF-8'}"
data-maxchar="35"
maxlength="35">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 required">
<span>{l s='Firstname' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<div class="input-group input fixed-width-lg">
<span class="input-group-addon" id="return-firstname_counter">35</span>
<input type="text"
autocomplete="given-name"
id="return-firstname"
name="return_firstname"
class="input fixed-width-lg"
required="required"
value="{$form_data['return_firstname']|escape:'htmlall':'UTF-8'}"
data-maxchar="35"
maxlength="35">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 required">
<span>{l s='Address 1' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<div class="input-group input fixed-width-xxl">
<span class="input-group-addon" id="return-address1_counter">35</span>
<input type="text"
autocomplete="address-line1"
id="return-address1"
name="return_address1"
class="input fixed-width-xxl"
required="required"
value="{$form_data['return_address1']|escape:'htmlall':'UTF-8'}"
data-maxchar="35"
maxlength="35">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
<span>{l s='Address 2' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<div class="input-group input fixed-width-xxl">
<span class="input-group-addon" id="return-address2_counter">35</span>
<input type="text"
autocomplete="address-line2"
id="return-address2"
name="return_address2"
class="input fixed-width-xxl"
required="required"
value="{$form_data['return_address2']|escape:'htmlall':'UTF-8'}"
data-maxchar="35"
maxlength="35">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
<span>{l s='Address 3' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<div class="input-group input fixed-width-xxl">
<span class="input-group-addon" id="return-address3_counter">35</span>
<input type="text"
autocomplete="address-line3"
id="return-address3"
name="return_address3"
class="input fixed-width-xxl"
required="required"
value="{$form_data['return_address3']|escape:'htmlall':'UTF-8'}"
data-maxchar="35"
maxlength="35">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
<span>{l s='Address 4' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<div class="input-group input fixed-width-xxl">
<span class="input-group-addon" id="return-address4_counter">35</span>
<input type="text"
autocomplete="address-line4"
id="return-address4"
name="return_address4"
class="input fixed-width-xxl"
required="required"
value="{$form_data['return_address4']|escape:'htmlall':'UTF-8'}"
data-maxchar="35"
maxlength="35">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 required">
<span>{l s='City' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<div class="input-group input fixed-width-xxl">
<span class="input-group-addon" id="return-city_counter">30</span>
<input type="text"
autocomplete="address-level2"
id="return-city"
name="return_city"
class="input fixed-width-xxl"
required="required"
value="{$form_data['return_city']|escape:'htmlall':'UTF-8'}"
data-maxchar="35"
maxlength="35">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 required">
<span>{l s='Zipcode' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<div class="fixed-width-sm">
<input type="text"
autocomplete="postal-code"
name="return_zipcode"
class="input fixed-width-sm"
value="{$form_data['return_zipcode']|escape:'htmlall':'UTF-8'}"
required="required">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group"><label class="control-label col-lg-3 required">
<span>{l s='Country' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<select name="return_country" class="chosen fixed-width-lg" style="display: none;">
{foreach from=$address_countries key=iso item=name}
<option value="{$iso|escape:'html':'UTF-8'}"
{if $form_data['return_country'] == $iso }selected{/if}>
{$name|escape:'html':'UTF-8'}
</option>
{/foreach}
</select>
<div class="chosen-container chosen-container-single chosen-container-single-nosearch"
style="width: 100%;"
title="">
<a class="chosen-single" tabindex="-1">
<span>France</span>
<div><b></b></div>
</a>
<div class="chosen-drop">
<div class="chosen-search">
<input type="text" autocomplete="off" readonly="">
</div>
<ul class="chosen-results"></ul>
</div>
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="validate-phone">
<div class="form-group">
<label class="control-label col-lg-3 required"> {l s='Phone' mod='colissimo'}</label>
<div class="col-lg-9">
<input type="text"
id="return-phone"
name="return_phone[main]"
class="input fixed-width-xl"
value="{$form_data['return_phone']|escape:'htmlall':'UTF-8'}"
required="required">
</div>
</div>
<img src="{$colissimo_img_path|escape:'html':'UTF-8'}icons/icon_valid.png"
class="colissimo-mobile-valid js-colissimo-mobile-valid"/>
<img src="{$colissimo_img_path|escape:'html':'UTF-8'}icons/icon_invalid.png"
class="colissimo-mobile-invalid js-colissimo-mobile-invalid"/>
</div>
<input type="hidden" class="js-colissimo-is-mobile-valid" name="colissimo_is_mobile_valid" value=""/>
<div class="form-group">
<label class="control-label col-lg-3 required">
<span>{l s='Email' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<div class="input-group input fixed-width-xxl">
<span class="input-group-addon" id="return-email_counter">80</span>
<input type="text"
autocomplete="email"
id="return-email"
name="return_email"
class="input fixed-width-xxl"
required="required"
value="{$form_data['return_email']|escape:'htmlall':'UTF-8'}"
data-maxchar="80"
maxlength="80">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
</div>
<div class="panel-footer">
<button type="submit" class="btn btn-default pull-right" name="submitColissimoreturnAddressConfigForm">
<i class="process-icon-save"></i> {l s='Save' mod='colissimo'}
</button>
</div>
</div>
</form>
</div>
</div>
</div>
{literal}
<script type="text/javascript">
var genericErrorMessage = "{/literal}{l s='Webservice connexion could not be checked' mod='colissimo'}{literal}";
var colissimoCredentialsToken = '{/literal}{getAdminToken tab='AdminColissimoTestCredentials'}{literal}';
var addressErrorMessage = "{/literal}{l s='An error occured. Please try again.' mod='colissimo'}{literal}";
var token = '{/literal}{getAdminToken tab='AdminModules'}{literal}';
var colissimoSenderPhone = '{/literal}{$form_data['sender_country']|escape:'htmlall':'UTF-8'}{literal}';
var colissimoReturnPhone = '{/literal}{$form_data['return_country']|escape:'htmlall':'UTF-8'}{literal}';
var onlyCountries = {/literal}{$address_countries|array_keys|json_encode}{literal};
$(document).ready(function () {
$(document).on('click', '#colissimo-check-credentials', function () {
var colissimoCheckCredentials = $('#colissimo-check-credentials');
testWSCredentials(colissimoCheckCredentials);
});
});
</script>
{/literal}

View File

@@ -0,0 +1,607 @@
{*
* 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
*}
<form class="form-horizontal"
action="#"
name="colissimo_bo_config_form"
id="colissimo-bo-config-form"
method="post"
enctype="multipart/form-data">
<div class="panel">
<div class="panel-heading">
<i class="icon-cogs"></i>
{l s='General settings' mod='colissimo'}
</div>
<div class="row">
<div class="form-group">
<label class="control-label col-lg-3 ">
<span class="label-tooltip"
data-toggle="tooltip"
data-html="true"
data-original-title="{l s='Enter your order preparation time' mod='colissimo'}">
{l s='Preparation time' mod='colissimo'}
</span>
</label>
<div class="col-lg-9">
<div class="input-group input fixed-width-xs">
<input value="{$form_data['COLISSIMO_ORDER_PREPARATION_TIME']|intval}"
type="text"
name="COLISSIMO_ORDER_PREPARATION_TIME"
class="input fixed-width-xs">
<span class="input-group-addon">{l s='day(s)' mod='colissimo'}</span>
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
</div>
<div class="row">
<div class="col-lg-9 col-lg-offset-3">
<p class="colissimo-subtitle">{l s='Label generation' mod='colissimo'}</p>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3" for="colissimo-generate-label-statuses[]">
<span class="label-tooltip"
data-html="false"
data-toggle="tooltip"
data-original-title="{l s='Tip : press + hold Ctrl then click on statuses to select several options quickly' mod='colissimo'}">
{l s='Statuses that allow to generate labels' mod='colissimo'}
</span>
</label>
<div class="col-lg-9">
<div class="form-control-static row">
<div class="col-xs-6">
<select id="availableSwap"
class="availableSwap"
name="COLISSIMO_GENERATE_LABEL_STATUSES_available[]"
multiple="multiple">
<optgroup label="{l s='Available statuses' mod='colissimo'}">
{foreach $order_states as $id => $state}
{if !isset($form_data['COLISSIMO_GENERATE_LABEL_STATUSES'][$id])}
<option value="{$id|intval}">
{$state|escape:'htmlall':'UTF-8'}
</option>
{/if}
{/foreach}
</optgroup>
</select>
<a href="#" class="btn btn-default btn-block addSwap" id="addSwap">
{l s='Add' mod='colissimo'} <i class="icon-arrow-right"></i>
</a>
</div>
<div class="col-xs-6">
<select id="selectedSwap" class="selectedSwap"
name="COLISSIMO_GENERATE_LABEL_STATUSES[]"
multiple="multiple">
<optgroup label="{l s='Selected statuses' mod='colissimo'}">
{foreach $order_states as $id => $state}
{if isset($form_data['COLISSIMO_GENERATE_LABEL_STATUSES'][$id])}
<option value="{$id|intval}">
{$state|escape:'htmlall':'UTF-8'}
</option>
{/if}
{/foreach}
</optgroup>
</select>
<a href="#" class="btn btn-default btn-block removeSwap" id="removeSwap">
<i class="icon-arrow-left"></i> {l s='Remove' mod='colissimo'}
</a>
</div>
<p class="help-block">
<i class="icon icon-warning"></i> {l s='If no statuses are selected, all statuses will be considered as selected (wording...)' mod='colissimo'}
</p>
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 ">
<span class="label-tooltip"
data-toggle="tooltip"
data-html="true"
data-original-title="{l s='If you choose Yes, orders will change to Shipping in progress after the generation of the first label' mod='colissimo'}">
{l s='Update order status after label generation' mod='colissimo'}
</span>
</label>
<div class="col-lg-9 colissimo-use-shipping-in-progress">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio"
value="1"
name="COLISSIMO_USE_SHIPPING_IN_PROGRESS"
id="COLISSIMO_USE_SHIPPING_IN_PROGRESS_on"
{if $form_data['COLISSIMO_USE_SHIPPING_IN_PROGRESS']|intval}checked="checked"{/if}>
<label for="COLISSIMO_USE_SHIPPING_IN_PROGRESS_on">{l s='Yes' mod='colissimo'}</label>
<input type="radio"
value="0"
name="COLISSIMO_USE_SHIPPING_IN_PROGRESS"
id="COLISSIMO_USE_SHIPPING_IN_PROGRESS_off"
{if !$form_data['COLISSIMO_USE_SHIPPING_IN_PROGRESS']|intval}checked="checked"{/if}>
<label for="COLISSIMO_USE_SHIPPING_IN_PROGRESS_off">{l s='No' mod='colissimo'}</label>
<a class="slide-button btn"></a>
</span>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 ">
<span class="label-tooltip"
data-toggle="tooltip"
data-html="true"
data-original-title="{l s='If you choose Yes, orders will change to Handled by carrier after the generation of the first deposit slip' mod='colissimo'}">
{l s='Update order status after deposit slip generation' mod='colissimo'}
</span>
</label>
<div class="col-lg-9 colissimo-use-handled-by-carrier">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio"
value="1"
name="COLISSIMO_USE_HANDLED_BY_CARRIER"
id="COLISSIMO_USE_HANDLED_BY_CARRIER_on"
{if $form_data['COLISSIMO_USE_HANDLED_BY_CARRIER']|intval}checked="checked"{/if}>
<label for="COLISSIMO_USE_HANDLED_BY_CARRIER_on">{l s='Yes' mod='colissimo'}</label>
<input type="radio"
value="0"
name="COLISSIMO_USE_HANDLED_BY_CARRIER"
id="COLISSIMO_USE_HANDLED_BY_CARRIER_off"
{if !$form_data['COLISSIMO_USE_HANDLED_BY_CARRIER']|intval}checked="checked"{/if}>
<label for="COLISSIMO_USE_HANDLED_BY_CARRIER_off">{l s='No' mod='colissimo'}</label>
<a class="slide-button btn"></a>
</span>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 ">
<span>
{l s='Send an email with the Non-Authenticated tracking page URL to customers after label generation' mod='colissimo'}
</span>
</label>
<div class="col-lg-9 colissimo-enable-pna-mail">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio"
value="1"
name="COLISSIMO_ENABLE_PNA_MAIL"
id="COLISSIMO_ENABLE_PNA_MAIL_on"
{if $form_data['COLISSIMO_ENABLE_PNA_MAIL']|intval}checked="checked"{/if}>
<label for="COLISSIMO_ENABLE_PNA_MAIL_on">{l s='Yes' mod='colissimo'}</label>
<input type="radio"
value="0"
name="COLISSIMO_ENABLE_PNA_MAIL"
id="COLISSIMO_ENABLE_PNA_MAIL_off"
{if !$form_data['COLISSIMO_ENABLE_PNA_MAIL']|intval}checked="checked"{/if}>
<label for="COLISSIMO_ENABLE_PNA_MAIL_off">{l s='No' mod='colissimo'}</label>
<a class="slide-button btn"></a>
</span>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 ">
<span>
{l s='Label printing mode' mod='colissimo'}
</span>
</label>
<div class="col-lg-9 colissimo-generate-label-prestashop">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio"
value="1"
name="COLISSIMO_GENERATE_LABEL_PRESTASHOP"
id="COLISSIMO_GENERATE_LABEL_PRESTASHOP_on"
{if $form_data['COLISSIMO_GENERATE_LABEL_PRESTASHOP']|intval}checked="checked"{/if}>
<label for="COLISSIMO_GENERATE_LABEL_PRESTASHOP_on">{l s='PrestaShop BO' mod='colissimo'}</label>
<input type="radio"
value="0"
name="COLISSIMO_GENERATE_LABEL_PRESTASHOP"
id="COLISSIMO_GENERATE_LABEL_PRESTASHOP_off"
{if !$form_data['COLISSIMO_GENERATE_LABEL_PRESTASHOP']|intval}checked="checked"{/if}>
<label for="COLISSIMO_GENERATE_LABEL_PRESTASHOP_off">{l s='Coliship' mod='colissimo'}</label>
<a class="slide-button btn"></a>
</span>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="colissimo-label-generation-mode-inputs">
<div class="form-group">
<label class="control-label col-lg-3 ">
<span>
{l s='Postage mode in PrestaShop\'s BO' mod='colissimo'}
</span>
</label>
<div class="col-lg-9 colissimo-postage-mode-manual">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio"
value="1"
name="COLISSIMO_POSTAGE_MODE_MANUAL"
id="COLISSIMO_POSTAGE_MODE_MANUAL_on"
{if $form_data['COLISSIMO_POSTAGE_MODE_MANUAL']|intval}checked="checked"{/if}>
<label for="COLISSIMO_POSTAGE_MODE_MANUAL_on">{l s='Manual' mod='colissimo'}</label>
<input type="radio"
value="0"
name="COLISSIMO_POSTAGE_MODE_MANUAL"
id="COLISSIMO_POSTAGE_MODE_MANUAL_off"
{if !$form_data['COLISSIMO_POSTAGE_MODE_MANUAL']|intval}checked="checked"{/if}>
<label for="COLISSIMO_POSTAGE_MODE_MANUAL_off">{l s='Auto' mod='colissimo'}</label>
<a class="slide-button btn"></a>
</span>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 ">
<span>
{l s='Use a thermal printer' mod='colissimo'}
</span>
</label>
<div class="col-lg-9 colissimo-use-thermal-printer">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio"
value="1"
name="COLISSIMO_USE_THERMAL_PRINTER"
id="COLISSIMO_USE_THERMAL_PRINTER_on"
{if $form_data['COLISSIMO_USE_THERMAL_PRINTER']|intval}checked="checked"{/if}>
<label for="COLISSIMO_USE_THERMAL_PRINTER_on">{l s='Yes' mod='colissimo'}</label>
<input type="radio"
value="0"
name="COLISSIMO_USE_THERMAL_PRINTER"
id="COLISSIMO_USE_THERMAL_PRINTER_off"
{if !$form_data['COLISSIMO_USE_THERMAL_PRINTER']|intval}checked="checked"{/if}>
<label for="COLISSIMO_USE_THERMAL_PRINTER_off">{l s='No' mod='colissimo'}</label>
<a class="slide-button btn"></a>
</span>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 ">
<span>{l s='Label format' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<select name="COLISSIMO_LABEL_FORMAT" class=" fixed-width-xxl">
{foreach $label_formats as $id => $name}
<option {if $id == $form_data['COLISSIMO_LABEL_FORMAT']}selected="selected"{/if}
value="{$id|escape:'htmlall':'UTF-8'}">
{$name|escape:'htmlall':'UTF-8'}
</option>
{/foreach}
</select>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="colissimo-thermal-printer-inputs">
<div class="form-group">
<label class="control-label col-lg-3 ">
<span>
{l s='Printer port' mod='colissimo'}
</span>
</label>
<div class="col-lg-9 colissimo-use-ethernet">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio"
value="1"
name="COLISSIMO_USE_ETHERNET"
id="COLISSIMO_USE_ETHERNET_on"
{if $form_data['COLISSIMO_USE_ETHERNET']|intval}checked="checked"{/if}>
<label for="COLISSIMO_USE_ETHERNET_on">{l s='Ethernet' mod='colissimo'}</label>
<input type="radio"
value="0"
name="COLISSIMO_USE_ETHERNET"
id="COLISSIMO_USE_ETHERNET_off"
{if !$form_data['COLISSIMO_USE_ETHERNET']|intval}checked="checked"{/if}>
<label for="COLISSIMO_USE_ETHERNET_off">{l s='USB' mod='colissimo'}</label>
<a class="slide-button btn"></a>
</span>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="colissimo-thermal-printer-usb">
<div class="form-group">
<label class="control-label col-lg-3 ">
<span>{l s='Protocole' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<select name="COLISSIMO_USB_PROTOCOLE" class=" fixed-width-xxl">
{foreach $usb_protocoles as $id => $name}
<option {if $id == $form_data['COLISSIMO_USB_PROTOCOLE']}selected="selected"{/if}
value="{$id|escape:'htmlall':'UTF-8'}">
{$name|escape:'htmlall':'UTF-8'}
</option>
{/foreach}
</select>
</div>
<div class="col-lg-9 col-lg-offset-3">
<div x-ms-format-detection="none" class="help-block">
{l s='If you do not know which value to chose, please refer to your printer user guide' mod='colissimo'}
<span></span>
</div>
</div>
</div>
</div>
<div class="colissimo-thermal-printer-ethernet">
<div class="form-group">
<label class="control-label col-lg-3 ">
<span>{l s='Printer IP address' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<div class="fixed-width-xxl">
<input type="text"
value="{$form_data['COLISSIMO_PRINTER_IP_ADDR']|escape:'htmlall':'UTF-8'}"
name="COLISSIMO_PRINTER_IP_ADDR"
class="input fixed-width-xxl">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3">
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-9 col-lg-offset-3">
<p class="colissimo-subtitle">{l s='International shipments' mod='colissimo'}</p>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 ">
<span class="label-tooltip"
data-toggle="tooltip"
data-html="true"
data-original-title="{l s='(e.g. 620411)' mod='colissimo'}">
{l s='Default HS Code of your products' mod='colissimo'}
</span>
</label>
<div class="col-lg-9">
<input type="text"
name="COLISSIMO_DEFAULT_HS_CODE"
value="{$form_data['COLISSIMO_DEFAULT_HS_CODE']|escape:'htmlall':'UTF-8'}"
class="input fixed-width-xxl">
</div>
<div class="col-lg-9 col-lg-offset-3">
<div x-ms-format-detection="none" class="help-block">
{l s='For more information:' mod='colissimo'} https://douane.gouv.nc/le-tarif-douanier/nomenclature-tarifaire
<span></span>
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 ">
<span>{l s='EORI Number' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<div class="fixed-width-xxl">
<input type="text"
value="{$form_data['COLISSIMO_EORI_NUMBER']|escape:'htmlall':'UTF-8'}"
name="COLISSIMO_EORI_NUMBER"
class="input fixed-width-xxl">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3">
<div x-ms-format-detection="none" class="help-block">
{l s='For more information:' mod='colissimo'}
http://douane.gouv.fr/articles/a10901-numero-eori-economic-operator-registration-and-identification
<span></span>
</div>
</div>
</div>
<div class="panel-footer">
<button type="submit" class="btn btn-default pull-right" name="submitColissimoBackConfigForm">
<i class="process-icon-save"></i> {l s='Save' mod='colissimo'}
</button>
</div>
</div>
</form>
<form class="form-horizontal"
action="#"
name="colissimo_shipments_config_form"
id="colissimo-shipments-config-form"
method="post"
enctype="multipart/form-data">
<div class="panel">
<div class="panel-heading">
<i class="icon-cogs"></i>
{l s='Default shipping settings' mod='colissimo'}
</div>
<div class="row">
<div class="form-group">
<label class="control-label col-lg-3 ">
<span class="label-tooltip"
data-toggle="tooltip"
data-html="true"
data-original-title="{l s='Ad Valorem Insurance' mod='colissimo'}">
{l s='Insure shipments' mod='colissimo'}
</span>
</label>
<div class="col-lg-9">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio"
value="1"
name="COLISSIMO_INSURE_SHIPMENTS"
id="COLISSIMO_INSURE_SHIPMENTS_on"
{if $form_data['COLISSIMO_INSURE_SHIPMENTS']|intval}checked="checked"{/if}>
<label for="COLISSIMO_INSURE_SHIPMENTS_on">{l s='Yes' mod='colissimo'}</label>
<input type="radio"
value="0"
name="COLISSIMO_INSURE_SHIPMENTS"
id="COLISSIMO_INSURE_SHIPMENTS_off"
{if !$form_data['COLISSIMO_INSURE_SHIPMENTS']|intval}checked="checked"{/if}>
<label for="COLISSIMO_INSURE_SHIPMENTS_off">{l s='No' mod='colissimo'}</label>
<a class="slide-button btn"></a>
</span>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 ">
<span>
{l s='Enable Colissimo merchandises return' mod='colissimo'}
</span>
</label>
<div class="col-lg-9 colissimo-enable-return">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio"
value="1"
name="COLISSIMO_ENABLE_RETURN"
id="COLISSIMO_ENABLE_RETURN_on"
{if $form_data['COLISSIMO_ENABLE_RETURN']|intval}checked="checked"{/if}>
<label for="COLISSIMO_ENABLE_RETURN_on">{l s='Yes' mod='colissimo'}</label>
<input type="radio"
value="0"
name="COLISSIMO_ENABLE_RETURN"
id="COLISSIMO_ENABLE_RETURN_off"
{if !$form_data['COLISSIMO_ENABLE_RETURN']|intval}checked="checked"{/if}>
<label for="COLISSIMO_ENABLE_RETURN_off">{l s='No' mod='colissimo'}</label>
<a class="slide-button btn"></a>
</span>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="colissimo-enable-return-inputs">
<div class="form-group">
<label class="control-label col-lg-3 ">
<span class="label-tooltip"
data-toggle="tooltip"
data-html="true"
data-original-title="{l s='Only scanned parcels will be charged' mod='colissimo'}">
{l s='Print return labels for each shipment' mod='colissimo'}
</span>
</label>
<div class="col-lg-9 colissimo-use-handled-by-carrier">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio"
value="1"
name="COLISSIMO_AUTO_PRINT_RETURN_LABEL"
id="COLISSIMO_AUTO_PRINT_RETURN_LABEL_on"
{if $form_data['COLISSIMO_AUTO_PRINT_RETURN_LABEL']|intval}checked="checked"{/if}>
<label for="COLISSIMO_AUTO_PRINT_RETURN_LABEL_on">{l s='Yes' mod='colissimo'}</label>
<input type="radio"
value="0"
name="COLISSIMO_AUTO_PRINT_RETURN_LABEL"
id="COLISSIMO_AUTO_PRINT_RETURN_LABEL_off"
{if !$form_data['COLISSIMO_AUTO_PRINT_RETURN_LABEL']|intval}checked="checked"{/if}>
<label for="COLISSIMO_AUTO_PRINT_RETURN_LABEL_off">{l s='No' mod='colissimo'}</label>
<a class="slide-button btn"></a>
</span>
</div>
<div class="col-lg-9 col-lg-offset-3">
<div x-ms-format-detection="none" class="help-block">
<i class='icon icon-lightbulb'></i>
{l s='Choose «Yes» if you want to include return label inside packages.' mod='colissimo'}
<span></span>
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
<span>
{l s='Display return labels in customer\'s account' mod='colissimo'}
</span>
</label>
<div class="col-lg-9 colissimo-display-return-label-customer">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio"
value="1"
name="COLISSIMO_DISPLAY_RETURN_LABEL_CUSTOMER"
id="COLISSIMO_DISPLAY_RETURN_LABEL_CUSTOMER_on"
{if $form_data['COLISSIMO_DISPLAY_RETURN_LABEL_CUSTOMER']|intval}checked="checked"{/if}>
<label for="COLISSIMO_DISPLAY_RETURN_LABEL_CUSTOMER_on">{l s='Yes' mod='colissimo'}</label>
<input type="radio"
value="0"
name="COLISSIMO_DISPLAY_RETURN_LABEL_CUSTOMER"
id="COLISSIMO_DISPLAY_RETURN_LABEL_CUSTOMER_off"
{if !$form_data['COLISSIMO_DISPLAY_RETURN_LABEL_CUSTOMER']|intval}checked="checked"{/if}>
<label for="COLISSIMO_DISPLAY_RETURN_LABEL_CUSTOMER_off">{l s='No' mod='colissimo'}</label>
<a class="slide-button btn"></a>
</span>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="colissimo-generate-label-customer-inputs">
<div class="form-group">
<label class="control-label col-lg-3 ">
<span>
{l s='Allow customers to generate their return label' mod='colissimo'}
</span>
</label>
<div class="col-lg-9">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio"
value="1"
name="COLISSIMO_GENERATE_RETURN_LABEL_CUSTOMER"
id="COLISSIMO_GENERATE_RETURN_LABEL_CUSTOMER_on"
{if $form_data['COLISSIMO_GENERATE_RETURN_LABEL_CUSTOMER']|intval}checked="checked"{/if}>
<label for="COLISSIMO_GENERATE_RETURN_LABEL_CUSTOMER_on">{l s='Yes' mod='colissimo'}</label>
<input type="radio"
value="0"
name="COLISSIMO_GENERATE_RETURN_LABEL_CUSTOMER"
id="COLISSIMO_GENERATE_RETURN_LABEL_CUSTOMER_off"
{if !$form_data['COLISSIMO_GENERATE_RETURN_LABEL_CUSTOMER']|intval}checked="checked"{/if}>
<label for="COLISSIMO_GENERATE_RETURN_LABEL_CUSTOMER_off">{l s='No' mod='colissimo'}</label>
<a class="slide-button btn"></a>
</span>
</div>
<div class="col-lg-9 col-lg-offset-3">
<div x-ms-format-detection="none" class="help-block">
{l s='Customers will be able to generate and print return labels themselves' mod='colissimo'}
<span></span>
</div>
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 ">
<span>
{l s='Enable mailbox return' mod='colissimo'}
</span>
</label>
<div class="col-lg-9">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio"
value="1"
name="COLISSIMO_ENABLE_MAILBOX_RETURN"
id="COLISSIMO_ENABLE_MAILBOX_RETURN_on"
{if $form_data['COLISSIMO_ENABLE_MAILBOX_RETURN']|intval}checked="checked"{/if}>
<label for="COLISSIMO_ENABLE_MAILBOX_RETURN_on">{l s='Yes' mod='colissimo'}</label>
<input type="radio"
value="0"
name="COLISSIMO_ENABLE_MAILBOX_RETURN"
id="COLISSIMO_ENABLE_MAILBOX_RETURN_off"
{if !$form_data['COLISSIMO_ENABLE_MAILBOX_RETURN']|intval}checked="checked"{/if}>
<label for="COLISSIMO_ENABLE_MAILBOX_RETURN_off">{l s='No' mod='colissimo'}</label>
<a class="slide-button btn"></a>
</span>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
</div>
</div>
<div class="panel-footer">
<button type="submit" class="btn btn-default pull-right" name="submitColissimoShipmentsConfigForm">
<i class="process-icon-save"></i> {l s='Save' mod='colissimo'}
</button>
</div>
</div>
</form>

View File

@@ -0,0 +1,109 @@
{*
* 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
*}
<form class="form-horizontal"
action="#"
name="colissimo_files_config_form"
id="colissimo-files-config-form"
method="post"
enctype="multipart/form-data">
<div class="panel">
<div class="panel-heading">
<i class="icon-cogs"></i>
{l s='Files management' mod='colissimo'}
</div>
<div class="row">
<div class="alert alert-info">
{l s='In this form, you can configure when to display an alert to delete documents.' mod='colissimo'}<br/>
{l s='It allows you to free some space periodically depending on the quantity of documents you create.' mod='colissimo'}
<br/>
{l s='Default settings correspond approximately to a volume of 50 orders per day so the alert shows up every two weeks.' mod='colissimo'}
<br/>
{l s='The alert will be shown on the Colissimo Postage page.' mod='colissimo'}
</div>
<div class="form-group">
<label class="control-label col-lg-3 ">
<span class="label-tooltip"
data-toggle="tooltip"
data-html="true"
data-original-title="{l s='Files include labels, customs documents and deposit slips' mod='colissimo'}">
{l s='Number of files triggering the alert' mod='colissimo'}
</span>
</label>
<div class="col-lg-9">
<div class="input-group input fixed-width-xs">
<input type="text"
value="{$form_data['COLISSIMO_FILES_LIMIT']|intval}"
name="COLISSIMO_FILES_LIMIT"
class="input fixed-width-xs">
<span class="input-group-addon">{l s='files' mod='colissimo'}</span>
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 ">
<span class="label-tooltip"
data-toggle="tooltip"
data-html="true"
data-original-title="{l s='Number of days during which you want to keep documents' mod='colissimo'}">
{l s='Documents lifetime' mod='colissimo'}
</span>
</label>
<div class="col-lg-9">
<div class="input-group input fixed-width-xs">
<input type="text"
value="{$form_data['COLISSIMO_FILES_LIFETIME']|intval}"
name="COLISSIMO_FILES_LIFETIME"
class="input fixed-width-xs">
<span class="input-group-addon">{l s='day(s)' mod='colissimo'}</span>
</div>
</div>
<div class="col-lg-9 col-lg-offset-3">
<div x-ms-format-detection="none" class="help-block">
{l s='Documents dating more than this number of days will be deleted.' mod='colissimo'}
<span></span>
</div>
</div>
</div>
<div class="row colissimo-docs-disk-usage">
<label class="control-label col-lg-3 bold">
<span>{l s='Disk usage of documents directory' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<span>
{$form_data['documents_dir_size']|escape:'htmlall':'UTF-8'}
{l s='(%d files)' sprintf=$form_data['documents_dir_count']|intval mod='colissimo'}
</span>
</div>
</div>
</div>
<div class="panel-footer">
<button type="submit" class="btn btn-default pull-right" name="submitColissimoFilesConfigForm">
<i class="process-icon-save"></i> {l s='Save' mod='colissimo'}
</button>
</div>
</div>
</form>

View File

@@ -0,0 +1,229 @@
{*
* 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
*}
<form class="form-horizontal"
action="#"
name="colissimo_widget_config_form"
id="colissimo-widget-config-form"
method="post"
enctype="multipart/form-data">
<div class="alert alert-info">
{l s='While installing the module, 4 carriers have been created.' mod='colissimo'}<br/>
<a href="{$link->getAdminLink('AdminCarriers')|escape:'htmlall':'UTF-8'}"
target="_blank">{l s='Click here to configure their zones, ranges and prices.' mod='colissimo'}</a><br/><br/>
<b><i class="icon icon-warning"></i> {l s='In order for the module to work properly, please do not delete these carriers' mod='colissimo'}
</b>
</div>
<div class="panel">
<div class="panel-heading">
{l s='Brexit' mod='colissimo'}
</div>
<div class="row">
<div class="brexit-intro">
<img src="{$data['img_path']|escape:'htmlall':'UTF-8'}icons/icon_uk.png"/>
<p>{l s='As you probably know, the coming withdrawal of the United Kingdom from the European Union will impact deliveries to the UK. The timeline of the Brexit is still uncertain but you can enable Brexit mode below when the withdrawal will be effective in order to apply changes caused by the Brexit.' mod='colissimo'}</p>
</div>
<div class="form-group">
<label class="control-label col-lg-3 ">
<span>
{l s='Enable Brexit' mod='colissimo'}
</span>
</label>
<div class="col-lg-9">
<span class="switch prestashop-switch fixed-width-lg colissimo-enable-brexit">
<input type="radio"
value="1"
name="COLISSIMO_ENABLE_BREXIT"
id="COLISSIMO_ENABLE_BREXIT_on"
{if $form_data['COLISSIMO_ENABLE_BREXIT']|intval}checked="checked"{/if}>
<label for="COLISSIMO_ENABLE_BREXIT_on">{l s='Yes' mod='colissimo'}</label>
<input type="radio"
value="0"
name="COLISSIMO_ENABLE_BREXIT"
id="COLISSIMO_ENABLE_BREXIT_off"
{if !$form_data['COLISSIMO_ENABLE_BREXIT']|intval}checked="checked"{/if}>
<label for="COLISSIMO_ENABLE_BREXIT_off">{l s='No' mod='colissimo'}</label>
<a class="slide-button btn"></a>
</span>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
</div>
<div class="panel-footer">
<button type="submit" class="btn btn-default pull-right" name="submitColissimoEnableBrexit">
<i class="process-icon-save"></i> {l s='Save' mod='colissimo'}
</button>
</div>
</div>
<div class="panel">
<div class="panel-heading">
{l s='Pick-up service' mod='colissimo'}
</div>
<div class="row">
<div class="form-group">
<label class="control-label col-lg-3 ">
<span class="label-tooltip"
data-toggle="tooltip"
data-html="true"
data-original-title="{l s='Choosing "Yes" (default option) will give you access to the latest features of the Widget.' mod='colissimo'}<br />{l s='Choose "No" if you experience any problems with the display of the Widget (conflict with other modules or theme). The module will use local files that you will be able to override if needed.' mod='colissimo'}">
{l s='Use default Colissimo widget' mod='colissimo'}
</span>
</label>
<div class="col-lg-9">
<span class="switch prestashop-switch fixed-width-lg ">
<input type="radio"
value="1"
name="COLISSIMO_WIDGET_REMOTE"
id="COLISSIMO_WIDGET_REMOTE_on"
{if $form_data['COLISSIMO_LOGS']|intval}checked="checked"{/if}>
<label for="COLISSIMO_WIDGET_REMOTE_on">{l s='Yes' mod='colissimo'}</label>
<input type="radio"
value="0"
name="COLISSIMO_WIDGET_REMOTE"
id="COLISSIMO_WIDGET_REMOTE_off"
{if !$form_data['COLISSIMO_WIDGET_REMOTE']|intval}checked="checked"{/if}>
<label for="COLISSIMO_WIDGET_REMOTE_off">{l s='No' mod='colissimo'}</label>
<a class="slide-button btn"></a>
</span>
</div>
<div class="col-lg-9 col-lg-offset-3">
<div x-ms-format-detection="none" class="help-block">
{l s='Do not forget to empty PrestaShop cache if you change this option' mod='colissimo'}
<span></span>
</div>
</div>
</div>
</div>
<div class="row">
<div class="form-group">
<label class="control-label col-lg-3 required">
<span>{l s='Webservice URL' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<div class="fixed-width-xxl">
<input value="{$form_data['COLISSIMO_WIDGET_ENDPOINT']|escape:'htmlall':'UTF-8'}"
type="text"
name="COLISSIMO_WIDGET_ENDPOINT"
class="input fixed-width-xxl"
required="required">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<a class="btn btn-primary col-lg-offset-3" id="colissimo-check-widget">
<i class="icon icon-check"></i> {l s='Check availability' mod='colissimo'}
</a>
<hr/>
<div class="row">
<div class="col-lg-9 col-lg-offset-3">
<p class="colissimo-subtitle">{l s='Display preferences' mod='colissimo'}</p>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 required">
<span>{l s='Address fields color' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<div class="input-group fixed-width-lg">
<input type="color"
data-hex="true"
class="color mColorPickerInput"
name="COLISSIMO_WIDGET_COLOR_2"
value="{$form_data['COLISSIMO_WIDGET_COLOR_2']|escape:'htmlall':'UTF-8'}">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3">
<div x-ms-format-detection="none" class="help-block">
{l s='Sections hightlighted in orange in the example below' mod='colissimo'}
<span></span>
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 required">
<span>{l s='Pickup list color' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<div class="input-group fixed-width-lg">
<input type="color"
data-hex="true"
class="color mColorPickerInput"
name="COLISSIMO_WIDGET_COLOR_1"
value="{$form_data['COLISSIMO_WIDGET_COLOR_1']|escape:'htmlall':'UTF-8'}">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3">
<div x-ms-format-detection="none" class="help-block">
{l s='Sections hightlighted in grey in the example below' mod='colissimo'}
<span></span>
</div>
</div>
</div>
<div class="form-group"><label class="control-label col-lg-3 ">
<span>{l s='Text font' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<select name="COLISSIMO_WIDGET_FONT" class=" fixed-width-xxl">
{foreach $widget_fonts as $id => $font}
<option {if $id == $form_data['COLISSIMO_WIDGET_FONT']|escape:'htmlall':'UTF-8'}selected="selected"{/if}
value="{$id|intval}">
{$font|escape:'htmlall':'UTF-8'}
</option>
{/foreach}
</select>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 ">
<span>{l s='Display example' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<img src="{$data['img_path']|escape:'htmlall':'UTF-8'}colissimo_widget.png"/>
</div>
</div>
</div>
<div class="panel-footer">
<button type="submit" class="btn btn-default pull-right" name="submitColissimoWidgetConfigForm">
<i class="process-icon-save"></i> {l s='Save' mod='colissimo'}
</button>
</div>
</div>
</form>
{literal}
<script type="text/javascript">
var genericErrorMessage = "{/literal}{l s='Webservice connexion could not be checked' mod='colissimo'}{literal}";
var colissimoCredentialsToken = '{/literal}{getAdminToken tab='AdminColissimoTestCredentials'}{literal}';
$(document).ready(function () {
$(document).on('click', '#colissimo-check-widget', function () {
var checkWidget = $('#colissimo-check-widget');
testWidgetCredentials(checkWidget);
});
});
</script>
{/literal}

View File

@@ -0,0 +1,69 @@
{*
* 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="row colissimo-background">
<div class="col-lg-12 col-md-12">
<h1>{l s='Colissimo Official' mod='colissimo'}</h1>
<p class="text-intro">
{l s='Offer your customers the services of Colissimo France\'s No. 1 home delivery service.' mod='colissimo'}<br/>
{l s='La Poste Group\'s parcel delivery operator, Colissimo helps you in managing your shipments in France and abroad.' mod='colissimo'}
</p>
<p class="colissimo-link">
<a href="{$colissimo_links.delivery_details|escape:'htmlall':'UTF-8'}"
target="_blank">
{l s='More details on our delivery solutions ' mod='colissimo'}
</a>
</p>
<div class="colissimo-step">
<img src="{$colissimo_img_path|escape:'htmlall':'UTF-8'}intro/colissimo-1.png"/>
<p class="step-title">{l s='A contract is required to use this module' mod='colissimo'}</p>
<p class="step-text">{l s='This module works for clients under "Facilité" & "Privilège" contract.' mod='colissimo'}</p>
</div>
<a href="{$colissimo_links.subscribe|escape:'htmlall':'UTF-8'}"
class="btn colissimo-btn">
{l s='Subscribe to Colissimo' mod='colissimo'}
</a>
<div class="colissimo-step">
<img src="{$colissimo_img_path|escape:'htmlall':'UTF-8'}intro/colissimo-2.png"/>
<p class="step-title">{l s='Synchronize your store with Colissimo services by logging on the following page' mod='colissimo'}</p>
</div>
<div class="colissimo-step">
<img src="{$colissimo_img_path|escape:'htmlall':'UTF-8'}intro/colissimo-3.png"/>
<p class="step-title">{l s='Set up and customize your PUDO display' mod='colissimo'}</p>
<p class="step-text">{l s='This module works for clients under "Facilité" & "Privilège" contract.' mod='colissimo'}</p>
</div>
<div class="colissimo-step">
<img src="{$colissimo_img_path|escape:'htmlall':'UTF-8'}intro/colissimo-4.png"/>
<p class="step-title">{l s='Save time in your order management' mod='colissimo'}</p>
<ul>
<li>{l s='Edit labels from your merchant back office' mod='colissimo'}</li>
<li>{l s='Export your orders in Coliship' mod='colissimo'}</li>
<li>{l s='Ready-to-print customs documents for your internal shipments' mod='colissimo'}</li>
<li>{l s='Enable Colissimo return label service' mod='colissimo'}</li>
<li>{l s='Edit your deposit slip' mod='colissimo'}</li>
</ul>
</div>
</div>
</div>