Initial commit

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

View File

@@ -0,0 +1,347 @@
{**
* 2007-2018 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 DPD France S.A.S. <support.ecommerce@dpd.fr>
* @copyright 2018 DPD France S.A.S.
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*}
<link rel="stylesheet" type="text/css" href="../modules/dpdfrance/views/css/admin/dpdfrance_config.css"/>
<link rel="stylesheet" type="text/css" href="../modules/dpdfrance/views/js/admin/jquery/plugins/fancybox/jquery.fancybox.css" media="screen"/>
<script type="text/javascript" src="../modules/dpdfrance/views/js/admin/jquery/plugins/fancybox/jquery.fancybox.js"></script>
<script type="text/javascript" src="../modules/dpdfrance/views/js/admin/jquery/plugins/validation/jquery.validate.min.js"></script>
{literal}
<script type="text/javascript">
function dpdfrance_attr_carrier(element) {
var maxValue = undefined;
$('option', element).each(function() {
var val = $(this).attr('value');
val = parseInt(val, 10);
if (maxValue === undefined || maxValue < val) {
maxValue = val;
}
});
element.val(maxValue);
}
</script>
{/literal}
<form action="{$form_submit_url|escape:'htmlall':'UTF-8'}" method="post">
<fieldset><legend><img src="../modules/dpdfrance/views/img/admin/admin.png" alt="" title="" />{l s='Settings' mod='dpdfrance'}</legend>
<!-- Tabs header -->
<div id="dpdfrance_menu">
<ul id="onglets">
<li style="background-color: #dc0032;"><a id="onglet0" href="javascript:void(0)" onclick="$(&quot;#donnees_exp,#modes_transport,#options_supp,#gestion_exp,#recap&quot;).fadeOut(0, function() {literal}{{/literal}$(&quot;#accueil&quot;).fadeIn(&quot;slow&quot;);$(&quot;#onglet0&quot;).parent().css(&quot;background-color&quot;, &quot;#dc0032&quot;);
$(&quot;#onglet1,#onglet2,#onglet3,#onglet4,#onglet5&quot;).parent().css(&quot;background-color&quot;, &quot;#808285&quot;);{literal}}{/literal});"> {l s='Start' mod='dpdfrance'} </a></li>
<li><a id="onglet1" href="javascript:void(0)" onclick="$(&quot;#accueil,#modes_transport,#options_supp,#gestion_exp,#recap&quot;).fadeOut(0, function() {literal}{{/literal}$(&quot;#donnees_exp&quot;).fadeIn(&quot;slow&quot;);$(&quot;#onglet1&quot;).parent().css(&quot;background-color&quot;, &quot;#dc0032&quot;);
$(&quot;#onglet0,#onglet2,#onglet3,#onglet4,#onglet5&quot;).parent().css(&quot;background-color&quot;, &quot;#808285&quot;);{literal}}{/literal});"> {l s='Your personal data' mod='dpdfrance'} </a></li>
<li><a id="onglet2" href="javascript:void(0)" onclick="$(&quot;#accueil,#donnees_exp,#options_supp,#gestion_exp,#recap&quot;).fadeOut(0, function() {literal}{{/literal}$(&quot;#modes_transport&quot;).fadeIn(&quot;slow&quot;);$(&quot;#onglet2&quot;).parent().css(&quot;background-color&quot;, &quot;#dc0032&quot;);
$(&quot;#onglet1,#onglet0,#onglet3,#onglet4,#onglet5&quot;).parent().css(&quot;background-color&quot;, &quot;#808285&quot;);{literal}}{/literal});"> {l s='Delivery services' mod='dpdfrance'} </a></li>
<li><a id="onglet3" href="javascript:void(0)" onclick="$(&quot;#accueil,#donnees_exp,#modes_transport,#gestion_exp,#recap&quot;).fadeOut(0, function() {literal}{{/literal}$(&quot;#options_supp&quot;).fadeIn(&quot;slow&quot;);$(&quot;#onglet3&quot;).parent().css(&quot;background-color&quot;, &quot;#dc0032&quot;);
$(&quot;#onglet1,#onglet2,#onglet0,#onglet4,#onglet5&quot;).parent().css(&quot;background-color&quot;, &quot;#808285&quot;);{literal}}{/literal});"> {l s='Advanced settings' mod='dpdfrance'} </a></li>
<li><a id="onglet4" href="javascript:void(0)" onclick="$(&quot;#accueil,#donnees_exp,#modes_transport,#options_supp,#recap&quot;).fadeOut(0, function() {literal}{{/literal}$(&quot;#gestion_exp&quot;).fadeIn(&quot;slow&quot;);$(&quot;#onglet4&quot;).parent().css(&quot;background-color&quot;, &quot;#dc0032&quot;);
$(&quot;#onglet1,#onglet2,#onglet3,#onglet0,#onglet5&quot;).parent().css(&quot;background-color&quot;, &quot;#808285&quot;);{literal}}{/literal});"> {l s='Orders management' mod='dpdfrance'} </a></li>
<li><a id="onglet5" href="javascript:void(0)" onclick="$(&quot;#accueil,#donnees_exp,#modes_transport,#options_supp,#gestion_exp&quot;).fadeOut(0, function() {literal}{{/literal}$(&quot;#recap&quot;).fadeIn(&quot;slow&quot;);$(&quot;#onglet5&quot;).parent().css(&quot;background-color&quot;, &quot;#dc0032&quot;);
$(&quot;#onglet1,#onglet2,#onglet3,#onglet4,#onglet0&quot;).parent().css(&quot;background-color&quot;, &quot;#808285&quot;);{literal}}{/literal});"> {l s='Summary' mod='dpdfrance'} </a></li>
</ul>
</div>
<!-- Tab Accueil -->
<div id="accueil" style="display:block;">
<strong><br/><span class="section_title">{l s='Welcome to DPD' mod='dpdfrance'}</span></strong><br/>
<div class="notabene" style="font-size:14px;">{l s='You must be a DPD France customer to use this module, if not please get in touch with us at ' mod='dpdfrance'}<a href="http://www.dpd.fr/nous_contacter_prestashop" target="_blank">www.dpd.fr</a></div><br/>
<div id="accueil_wrap">
<div id="documentation" href="javascript:void(0)" onclick="window.open(&quot;../modules/dpdfrance/docs/readme_dpdfrance_prestashop.pdf&quot;, &quot;s&quot;, &quot;width= 640, height= 900, left=0, top=0, resizable=yes, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no&quot;);"><span class="client_title">{l s='Open documentation' mod='dpdfrance'}</span><div id="documentation_img"></div><span class="client_subtitle">{l s='Please click here first to access the user manual' mod='dpdfrance'}</span></div>
<div id="client" href="javascript:void(0)" onclick="$(&quot;#onglet1&quot;).click();"><span class="client_title">{l s='I\'m already a customer' mod='dpdfrance'}</span><div id="client_img"></div><span class="client_subtitle">{l s='Proceed to the plugin configuration' mod='dpdfrance'}</span></div>
<br/>
</div>
</div>
<!-- Tab Vos données expéditeur -->
<div id="donnees_exp" style="display:none;">
<br/><span class="section_title">{l s='Your personal data' mod='dpdfrance'}</span><br/><br/>
<div id="donnees_exp_wrap">
<label>{l s='Company Name' mod='dpdfrance'}</label><div class="margin-form"><input type="text" size="33" name="nom_exp" value="{$nom_exp|escape:'htmlall':'UTF-8'}" /></div>
<label>{l s='Address 1' mod='dpdfrance'}</label><div class="margin-form"><input type="text" size="33" name="address_exp" value="{$address_exp|escape:'htmlall':'UTF-8'}" /></div>
<label>{l s='Address 2' mod='dpdfrance'}</label><div class="margin-form"><input type="text" size="33" name="address2_exp" value="{$address2_exp|escape:'htmlall':'UTF-8'}" /></div>
<label>{l s='Postal code' mod='dpdfrance'}</label><div class="margin-form"><input type="text" size="33" name="cp_exp" value="{$cp_exp|escape:'htmlall':'UTF-8'}" /></div>
<label>{l s='City' mod='dpdfrance'}</label><div class="margin-form"><input type="text" size="33" name="ville_exp" value="{$ville_exp|escape:'htmlall':'UTF-8'}" /></div>
<label>{l s='Telephone' mod='dpdfrance'}</label><div class="margin-form"><input type="text" size="33" name="tel_exp" value="{$tel_exp|escape:'htmlall':'UTF-8'}" /></div>
<label>{l s='GSM' mod='dpdfrance'}</label><div class="margin-form"><input type="text" size="33" name="gsm_exp" value="{$gsm_exp|escape:'htmlall':'UTF-8'}" /></div>
<label>{l s='E-mail' mod='dpdfrance'}</label><div class="margin-form"><input type="text" size="33" name="email_exp" value="{$email_exp|escape:'htmlall':'UTF-8'}" /></div>
<center><a size="6" name="next" class="button" href="javascript:void(0)" onclick="$(&quot;#onglet0&quot;).click();">{l s='Previous' mod='dpdfrance'}</a>
<a size="6" name="next" class="button" href="javascript:void(0)" onclick="$(&quot;#onglet2&quot;).click();">{l s='Next' mod='dpdfrance'}</a></center>
<br/>
</div>
</div>
<!-- Tab Services de transport -->
<div id="modes_transport" style="display:none;">
<br/><span class="section_title">{l s='Delivery services' mod='dpdfrance'}</span><br/><br/>
<div id="modes_transport_wrap">
<!-- DPD Relais -->
<div id="service_relais">
<label>{l s='DPD Relais' mod='dpdfrance'} {l s='(France)' mod='dpdfrance'}</label>
<div id="service_relais_img"></div>
<div id="service_relais_contract">
{l s='Depot code - Contract number' mod='dpdfrance'}<br/>{l s='(i.e.: 013 - 12345)' mod='dpdfrance'}<br/><br/>
<input type="text" size="4" maxlength="4" name="relais_depot_code" class="relais_depot_code" value="{$relais_depot_code|escape:'htmlall':'UTF-8'}" /> -
<input type="text" size="8" maxlength="8" name="relais_shipper_code" class="relais_shipper_code" value="{$relais_shipper_code|escape:'htmlall':'UTF-8'}" /><br/><br/>
</div>
<div id="service_next_img"></div>
<div id="service_relais_addcarrier">
{l s='Carrier creation' mod='dpdfrance'}<br/><br/>
<input type="submit" name="submitCreateCarrierRelais" value="{l s='Create DPD Relais carrier' mod='dpdfrance'}" class="button"/>
</div>
<div id="service_next_img"></div>
<div id="service_relais_selectcarrier">
{l s='Carrier assignation' mod='dpdfrance'}<br/><br/>
<select name="dpdfrance_relais_carrier_id"><option value="0">{l s='None - Disable this carrier' mod='dpdfrance'}</option>
{foreach from=$carriers item=carrier}
{if $carrier.id_carrier == $dpdfrance_relais_carrier_id}
<option value="{$carrier.id_carrier|escape:'htmlall':'UTF-8'}" selected>{$carrier.id_carrier|escape:'htmlall':'UTF-8'} - {$carrier.name|escape:'htmlall':'UTF-8'}</option>
{else}
<option value="{$carrier.id_carrier|escape:'htmlall':'UTF-8'}">{$carrier.id_carrier|escape:'htmlall':'UTF-8'} - {$carrier.name|escape:'htmlall':'UTF-8'}</option>
{/if}
{/foreach}
</select>
</div>
</div>
<br/>
<!-- DPD Predict -->
<div id="service_predict">
<label>{l s='DPD Predict' mod='dpdfrance'}</label>
<div id="service_predict_img"></div>
<div id="service_predict_contract">
{l s='Depot code - Contract number' mod='dpdfrance'}<br/>{l s='(i.e.: 013 - 12345)' mod='dpdfrance'}<br/><br/>
<input type="text" size="4" maxlength="4" name="predict_depot_code" class="predict_depot_code" value="{$predict_depot_code|escape:'htmlall':'UTF-8'}" /> -
<input type="text" size="8" maxlength="8" name="predict_shipper_code" class="predict_shipper_code" value="{$predict_shipper_code|escape:'htmlall':'UTF-8'}" /><br/><br/>
</div>
<div id="service_next_img"></div>
<div id="service_predict_addcarrier">
{l s='Carrier creation' mod='dpdfrance'}<br/><br/>
<input type="submit" name="submitCreateCarrierPredict" value="{l s='Create DPD Predict carrier' mod='dpdfrance'}" class="button"/>
</div>
<div id="service_next_img"></div>
<div id="service_predict_selectcarrier">
{l s='Carrier assignation' mod='dpdfrance'}<br/><br/>
<select name="dpdfrance_predict_carrier_id"><option value="0">{l s='None - Disable this carrier' mod='dpdfrance'}</option>
{foreach from=$carriers item=carrier}
{if $carrier.id_carrier == $dpdfrance_predict_carrier_id}
<option value="{$carrier.id_carrier|escape:'htmlall':'UTF-8'}" selected>{$carrier.id_carrier|escape:'htmlall':'UTF-8'} - {$carrier.name|escape:'htmlall':'UTF-8'}</option>
{else}
<option value="{$carrier.id_carrier|escape:'htmlall':'UTF-8'}">{$carrier.id_carrier|escape:'htmlall':'UTF-8'} - {$carrier.name|escape:'htmlall':'UTF-8'}</option>
{/if}
{/foreach}
</select>
</div>
</div>
<br/>
<!-- DPD Classic -->
<div id="service_classic">
<label>{l s='DPD Classic' mod='dpdfrance'}<br/>
{l s='Europe & Intercontinental' mod='dpdfrance'} {l s='(France : delivery at workplace)' mod='dpdfrance'}</label>
<div id="service_classic_img"></div>
<div id="service_classic_contract">
{l s='Depot code - Contract number' mod='dpdfrance'}<br/>{l s='(i.e.: 013 - 12345)' mod='dpdfrance'}<br/><br/>
<input type="text" size="4" maxlength="4" name="classic_depot_code" class="classic_depot_code" value="{$classic_depot_code|escape:'htmlall':'UTF-8'}" /> -
<input type="text" size="8" maxlength="8" name="classic_shipper_code" class="classic_shipper_code" value="{$classic_shipper_code|escape:'htmlall':'UTF-8'}" /><br/><br/>
</div>
<div id="service_next_img"></div>
<div id="service_classic_addcarrier">
{l s='Carrier creation' mod='dpdfrance'}<br/><br/>
<input type="submit" name="submitCreateCarrierClassic" value="{l s='Create DPD Classic carrier' mod='dpdfrance'}" class="button"/><br/>
<input type="submit" name="submitCreateCarrierWorld" value="{l s='Create DPD Intercontinental carrier' mod='dpdfrance'}" class="button"/><br/>
</div>
<div id="service_next_img"></div>
<div id="service_classic_selectcarrier">
{l s='Carrier assignation' mod='dpdfrance'}<br/><br/>
<select name="dpdfrance_classic_carrier_id"><option value="0">{l s='None - Disable this carrier' mod='dpdfrance'}</option>
{foreach from=$carriers item=carrier}
{if $carrier.id_carrier == $dpdfrance_classic_carrier_id}
<option value="{$carrier.id_carrier|escape:'htmlall':'UTF-8'}" selected>{$carrier.id_carrier|escape:'htmlall':'UTF-8'} - {$carrier.name|escape:'htmlall':'UTF-8'}</option>
{else}
<option value="{$carrier.id_carrier|escape:'htmlall':'UTF-8'}">{$carrier.id_carrier|escape:'htmlall':'UTF-8'} - {$carrier.name|escape:'htmlall':'UTF-8'}</option>
{/if}
{/foreach}
</select>
</div>
</div>
<div class="notabene">{l s='Please contact your DPD sales representative to get your contract numbers and depot code.' mod='dpdfrance'}</div><br/><br/>
<center><a size="6" name="next" class="button" href="javascript:void(0)" onclick="$(&quot;#onglet1&quot;).click();">{l s='Previous' mod='dpdfrance'}</a>
<a size="6" name="next" class="button" href="javascript:void(0)" onclick="$(&quot;#onglet3&quot;).click();">{l s='Next' mod='dpdfrance'}</a></center>
<br/>
</div>
</div>
<!-- Tab Options supplémentaires -->
<div id="options_supp" style="display:none;">
<br/><span class="section_title_alt">{l s='Advanced settings' mod='dpdfrance'}</span><br/><br/>
<label>{l s='DPD Relais WebService URL' mod='dpdfrance'}</label>
<div class="margin-form">
<input type="text" size="48" name="mypudo_url" value="{$mypudo_url|escape:'htmlall':'UTF-8'}" />
<br/>
<a style="color: #dc0042; font-size: 12px;" href="javascript:void(0)" onclick="window.open(&quot;../modules/dpdfrance/docs/readme_dpdfrance_prestashop.pdf#page=7&quot;, &quot;s&quot;, &quot;width= 640, height= 900, left=0, top=0, resizable=yes, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no&quot;);">{l s='Caution! Critical setting' mod='dpdfrance'}</a>
</div>
{if $ps_version >= '1.4'}
<label>{l s='Coastal islands & Corsica overcost' mod='dpdfrance'}</label><div class="margin-form"><input type="text" size="3" name="supp_iles" value="{$supp_iles|escape:'htmlall':'UTF-8'}" />{l s=' € (-1 to disable delivery to these areas)' mod='dpdfrance'}</div><br/>
<label>{l s='Mountain areas overcost' mod='dpdfrance'}</label><div class="margin-form"><input type="text" size="3" name="supp_montagne" value="{$supp_montagne|escape:'htmlall':'UTF-8'}" />{l s=' € (-1 to disable delivery to these areas)' mod='dpdfrance'}</div>
{/if}
<br/>
<label>{l s='Google Maps API Key' mod='dpdfrance'}</label>
<div class="margin-form">
<input type="text" size="48" name="google_api_key" value="{$google_api_key|escape:'htmlall':'UTF-8'}" />
<br/>
<a href="https://console.developers.google.com/flows/enableapi?apiid=maps_backend,geocoding_backend,directions_backend,distance_matrix_backend,elevation_backend,places_backend&keyType=CLIENT_SIDE&reusekey=true" target="_blank" >{l s='Click here to retrieve your Google API Key' mod='dpdfrance'}</a>
</div>
<br/>
<center><a size="6" name="next" class="button" href="javascript:void(0)" onclick="$(&quot;#onglet2&quot;).click();">{l s='Previous' mod='dpdfrance'}</a>
<a size="6" name="next" class="button" href="javascript:void(0)" onclick="$(&quot;#onglet4&quot;).click();">{l s='Next' mod='dpdfrance'}</a></center>
<br/>
</div>
<!-- Tab Gestion des expéditions -->
<div id="gestion_exp" style="display:none;">
<br/><span class="section_title_alt">{l s='Orders management' mod='dpdfrance'}</span><br/><br/>
<label>{l s='Preparation in progress status' mod='dpdfrance'}<br/></label>
<div class="margin-form">
<select name="id_expedition">
{foreach from=$etats_factures item=value}
{if $value.id_order_state == $dpdfrance_etape_expedition}
<option value="{$value.id_order_state|escape:'htmlall':'UTF-8'}" selected>{$value.name|escape:'htmlall':'UTF-8'}</option>
{else}
<option value="{$value.id_order_state|escape:'htmlall':'UTF-8'}">{$value.name|escape:'htmlall':'UTF-8'}</option>
{/if}
{/foreach}
</select>
<br/>{l s='Orders in this state will be selected by default for exporting.' mod='dpdfrance'}<br/>
</div>
<label>{l s='Shipped status' mod='dpdfrance'}<br/></label>
<div class="margin-form">
<select name="id_expedie">
{foreach from=$etats_factures item=value}
{if $value.id_order_state == $dpdfrance_etape_expediee}
<option value="{$value.id_order_state|escape:'htmlall':'UTF-8'}" selected>{$value.name|escape:'htmlall':'UTF-8'}</option>
{else}
<option value="{$value.id_order_state|escape:'htmlall':'UTF-8'}">{$value.name|escape:'htmlall':'UTF-8'}</option>
{/if}
{/foreach}
</select>
<br/>{l s='Once parcel trackings are generated, orders will be updated to this state.' mod='dpdfrance'}<br/>
</div>
<label>{l s='Delivered status' mod='dpdfrance'}<br/></label>
<div class="margin-form">
<select name="id_livre">
{foreach from=$etats_factures item=value}
{if $value.id_order_state == $dpdfrance_etape_livre}
<option value="{$value.id_order_state|escape:'htmlall':'UTF-8'}" selected>{$value.name|escape:'htmlall':'UTF-8'}</option>
{else}
<option value="{$value.id_order_state|escape:'htmlall':'UTF-8'}">{$value.name|escape:'htmlall':'UTF-8'}</option>
{/if}
{/foreach}
</select>
<br/>{l s='Once parcels are delivered, orders will be updated to this state.' mod='dpdfrance'}<br/>
</div>
<label>{l s='Auto update of status and tracking links' mod='dpdfrance'}<br/></label>
<div class="margin-form">
<select name="auto_update">
{foreach from=$optupdate item=option key=key}
{if $key == $auto_update}
<option value="{$key|escape:'htmlall':'UTF-8'}" selected>{$option|escape:'htmlall':'UTF-8'}</option>
{else}
<option value="{$key|escape:'htmlall':'UTF-8'}">{$option|escape:'htmlall':'UTF-8'}</option>
{/if}
{/foreach}
</select>
<br/>{l s='Order statuses and tracking links will be automatically updated following parcel delivery.' mod='dpdfrance'}<br/>
</div>
<label>{l s='Allow management of non-DPD orders' mod='dpdfrance'}<br/></label>
<div class="margin-form">
<select name="marketplace_mode">
{foreach from=$optmarketplace item=option key=key}
{if $key == $marketplace_mode}
<option value="{$key|escape:'htmlall':'UTF-8'}" selected>{$option|escape:'htmlall':'UTF-8'}</option>
{else}
<option value="{$key|escape:'htmlall':'UTF-8'}">{$option|escape:'htmlall':'UTF-8'}</option>
{/if}
{/foreach}
</select>
<br/>{l s='All orders will be manageable regardless of the carrier, useful when using marketplace connectors.' mod='dpdfrance'}<br/>
</div>
<label>{l s='Parcel insurance service' mod='dpdfrance'}<br/></label>
<div class="margin-form">
<select name="ad_valorem">
{foreach from=$optvd item=option key=key}
{if $key == $dpdfrance_ad_valorem}
<option value="{$key|escape:'htmlall':'UTF-8'}" selected>{$option|escape:'htmlall':'UTF-8'}</option>
{else}
<option value="{$key|escape:'htmlall':'UTF-8'}">{$option|escape:'htmlall':'UTF-8'}</option>
{/if}
{/foreach}
</select>
<br/>{l s='Ad Valorem : Please refer to your pricing conditions.' mod='dpdfrance'}<br/>
</div>
<label>{l s='DPD Returns service' mod='dpdfrance'}<br/></label>
<div class="margin-form">
<select name="retour">
{foreach from=$optretour item=option key=key}
{if $key == $dpdfrance_retour_option}
<option value="{$key|escape:'htmlall':'UTF-8'}" selected>{$option|escape:'htmlall':'UTF-8'}</option>
{else}
<option value="{$key|escape:'htmlall':'UTF-8'}">{$option|escape:'htmlall':'UTF-8'}</option>
{/if}
{/foreach}
</select>
<br/>{l s='DPD Returns options : Please refer to your pricing conditions.' mod='dpdfrance'}<br/>
</div>
<center><a size="6" name="next" class="button" href="javascript:void(0)" onclick="$(&quot;#onglet3&quot;).click();">{l s='Previous' mod='dpdfrance'}</a>
<a size="6" name="next" class="button" href="javascript:void(0)" onclick="$(&quot;#onglet5&quot;).click();">{l s='Next' mod='dpdfrance'}</a></center>
<br/>
</div>
<!-- Tab Recapitulatif -->
<div id="recap" style="display:none;">
<strong><center><br/><br/>{l s='You\'re all set!' mod='dpdfrance'}</center></strong><br/><br/>
<center><input id="save_settings_button" type="submit" name="submitRcReferer" value="{l s='Save settings' mod='dpdfrance'}" class="button"></center></br>
<center><a size="6" name="next" class="button" href="javascript:void(0)" onclick="$(&quot;#onglet4&quot;).click();">{l s='Return to configuration' mod='dpdfrance'}</a></center><br/>
<br/>
</div>
</fieldset>
</form>

View File

@@ -0,0 +1,160 @@
{**
* 2007-2018 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 DPD France S.A.S. <support.ecommerce@dpd.fr>
* @copyright 2018 DPD France S.A.S.
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*}
{literal}
<script type='text/javascript'>
$(document).ready(function(){
$('.page-title').prepend('<img src="../modules/dpdfrance/views/img/admin/admin.png"/>')
$('.marquee').marquee({
duration: 20000,
gap: 50,
delayBeforeStart: 0,
direction: 'left',
duplicated: true,
pauseOnHover: true
});
$('a.popup').fancybox({
'hideOnContentClick': true,
'padding' : 0,
'overlayColor' :'#D3D3D3',
'overlayOpacity' : 0.7,
'width' : 1024,
'height' : 640,
'type' :'iframe'
});
jQuery.expr[':'].contains = function(a, i, m) {
return jQuery(a).text().toUpperCase().indexOf(m[3].toUpperCase()) >= 0;
};
$("#tableFilter").keyup(function () {
//split the current value of tableFilter
var data = this.value.split(";");
//create a jquery object of the rows
var jo = $("#fbody").find("tr");
if (this.value == "") {
jo.show();
return;
}
//hide all the rows
jo.hide();
//Recusively filter the jquery object to get results.
jo.filter(function (i, v) {
var t = $(this);
for (var d = 0; d < data.length; ++d) {
if (t.is(":contains('" + data[d] + "')")) {
return true;
}
}
return false;
})
//show the rows that match.
.show();
}).focus(function () {
this.value = "";
$(this).css({
"color": "black"
});
$(this).unbind('focus');
}).css({
"color": "#C0C0C0"
});
});
function checkallboxes(ele) {
var checkboxes = $("#fbody").find(".checkbox:visible");
if (ele.checked) {
for (var i = 0; i < checkboxes.length; i++) {
if (checkboxes[i].type == 'checkbox') {
checkboxes[i].checked = true;
}
}
} else {
for (var i = 0; i < checkboxes.length; i++) {
if (checkboxes[i].type == 'checkbox') {
checkboxes[i].checked = false;
}
}
}
}
</script>
{/literal}
{if !isset($stream.error) || (isset($stream.error) && !$stream.error)}
<fieldset id="fieldset_rss"><legend><a href="javascript:void(0)" onclick="$(&quot;#zonemarquee&quot;).toggle(&quot;fast&quot;, function() {literal}{}{/literal});"><img src="../modules/dpdfrance/views/img/admin/rss_icon.png" />{l s='DPD News (show/hide)' mod='dpdfrance'}</a></legend>
<div id="zonemarquee"><div id="marquee" class="marquee">
{foreach from=$stream item=item key=key}
<strong style="color:red;">{$item.category|escape:'htmlall':'UTF-8'} > {$item.title|escape:'htmlall':'UTF-8'} : </strong> {$item.description|escape:'htmlall':'UTF-8'}
{/foreach}
</div></div></fieldset><br/><br/>
{/if}
{$msg|escape:'quotes':'UTF-8'}
<div id="fieldset_grid">
{if !isset($order_info.error) || (isset($order_info.error) && !$order_info.error)}
<input id="tableFilter" placeholder="{l s='Search something, separate values with ; ' mod='dpdfrance'}"/><img id="filtericon" src="../modules/dpdfrance/views/img/admin/search.png"/><br/><br/>
<form id="exportform" action="index.php?tab=AdminDPDFrance&token={$token|escape:'htmlall':'UTF-8'}" method="POST" enctype="multipart/form-data">
<body><table>
<thead>
<tr>
<th class="hcheckexport"><input type="checkbox" onchange="checkallboxes(this)"/></th>
<th class="hid">ID</th>
<th class="href">{l s='Reference' mod='dpdfrance'}</th>
<th class="hdate">{l s='Date of order' mod='dpdfrance'}</th>
<th class="hnom">{l s='Recipient' mod='dpdfrance'}</th>
<th class="htype">{l s='Service' mod='dpdfrance'}</th>
<th class="hpr">{l s='Destination' mod='dpdfrance'}</th>
<th class="hpoids">{l s='Weight' mod='dpdfrance'}</th>
<th colspan="2" class="hprix" align="right">{l s='Amount' mod='dpdfrance'}<br/><span style="font-size:10px;">{l s='(tick to insure<br/>this parcel)' mod='dpdfrance'}</span></th>
{if $dpdfrance_retour_option !== 0}<th class="hretour">{l s='Allow return' mod='dpdfrance'}</th>{/if}
<th class="hstatutcommande" align="center">{l s='Order status' mod='dpdfrance'}</th>
<th class="hstatutcolis" align="center">{l s='Parcel trace' mod='dpdfrance'}</th>
</tr>
</thead><tbody id="fbody">
{foreach from=$order_info item=order}
<tr>
<td><input class="checkbox" type="checkbox" name="checkbox[]" {$order.checked|escape:'htmlall':'UTF-8'} value="{$order.id|escape:'htmlall':'UTF-8'}"></td><td class="id">{$order.id|escape:'htmlall':'UTF-8'}</td>
<td class="ref">{$order.reference|escape:'htmlall':'UTF-8'}</td>
<td class="date">{$order.date|escape:'htmlall':'UTF-8'}</td>
<td class="nom">{$order.nom|escape:'htmlall':'UTF-8'}</td>
<td class="type">{$order.type|escape:'quotes':'UTF-8'}</td>
<td class="pr">{$order.address|escape:'quotes':'UTF-8'}</td>
<td class="poids"><input name="parcelweight[{$order.id|escape:'htmlall':'UTF-8'}]" type="text" value="{$order.poids|escape:'htmlall':'UTF-8'}" /> {$order.weightunit|escape:'htmlall':'UTF-8'}</td>
<td class="prix" align="right">{$order.prix|escape:'htmlall':'UTF-8'}</td>
<td class="advalorem"><input class="advalorem" type="checkbox" name="advalorem[]" {$order.advalorem_checked|escape:'htmlall':'UTF-8'} value="{$order.id|escape:'htmlall':'UTF-8'}"></td>
{if $dpdfrance_retour_option !== 0}<td class="retour"><input class="retour" type="checkbox" name="retour[]" {$order.retour_checked|escape:'htmlall':'UTF-8'} value="{$order.id|escape:'htmlall':'UTF-8'}"></td>{/if}
<td class="statutcommande" align="center">{$order.statut|escape:'quotes':'UTF-8'}</td>
<td class="statutcolis" align="center"><a href="javascript:void(0)" onclick="window.open('http://www.dpd.fr/tracex_{$order.reference|escape:'htmlall':'UTF-8'}_{$order.depot_code|escape:'htmlall':'UTF-8'}{$order.shipper_code|escape:'htmlall':'UTF-8'}','','width=1024,height=768,top=30,left=20')">{$order.dernier_statut_colis|escape:'quotes':'UTF-8'}</a></td>
</tr>
{/foreach}
</tbody></table>
<p>
<input type="submit" class="button" name="exportOrders" value="{l s='Export selected orders to DPD Station' mod='dpdfrance'}" />
<input type="submit" class="button" name="updateShippedOrders" value="{l s='Update shipped orders' mod='dpdfrance'}" />
<input type="submit" class="button" name="updateDeliveredOrders" value="{l s='Update delivered orders' mod='dpdfrance'}" />
</p>
</form></div>
{else}
<div class="alert warn">{l s='There are no orders' mod='dpdfrance'}</div>
{/if}

View File

@@ -0,0 +1,34 @@
<?php
/**
* 2007-2018 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 DPD France S.A.S. <support.ecommerce@dpd.fr>
* @copyright 2018 DPD France S.A.S.
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*/
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,34 @@
<?php
/**
* 2007-2018 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 DPD France S.A.S. <support.ecommerce@dpd.fr>
* @copyright 2018 DPD France S.A.S.
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*/
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,34 @@
<?php
/**
* 2007-2018 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 DPD France S.A.S. <support.ecommerce@dpd.fr>
* @copyright 2018 DPD France S.A.S.
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*/
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,34 @@
<?php
/**
* 2007-2018 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 DPD France S.A.S. <support.ecommerce@dpd.fr>
* @copyright 2018 DPD France S.A.S.
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*/
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,318 @@
{**
* 2007-2018 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 DPD France S.A.S. <support.ecommerce@dpd.fr>
* @copyright 2018 DPD France S.A.S.
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*}
<script type="text/javascript">
{literal}
var delay = (function(){
var timer = 0;
return function(callback, ms){
clearTimeout (timer);
timer = setTimeout(callback, ms);
};
})();
function dpdfrance_relais_ajaxupdate(address, zipcode, city, action, dpdfrance_cart_id)
{
if ((zipcode && zipcode.length >= 5 && action == 'search') || action == 'reset') {
$('#dpdfrance_reset_submit').after(' <img src="{/literal}{$dpdfrance_base_dir|escape:'htmlall':'UTF-8'}{literal}/views/img/front/relais/loader.gif"/>');
$.ajax('{/literal}{$dpdfrance_base_dir|escape:'htmlall':'UTF-8'}{literal}/ajax.php?action_ajax_dpdfrance=ajaxUpdatePoints', {
data: {
'address': address,
'zipcode': zipcode,
'city': city,
'action': action,
'dpdfrance_cart_id': dpdfrance_cart_id,
'dpdfrance_token': dpdfrance_token,
},
success: function(data) {
var $html = $(data);
$('#dpdfrance_relais_point_table').html($html);
$('#dpdfrance_relais_point_table').children('#dpdfrance_relais_point_table').css('display', '');
dpdfrance_checkPudo();
}
});
} else {
$('#dpdfrance_search_zipcode').css('border', '1px solid #dc0032');
}
}
$(document).ready(function(){
setTimeout(function () {
if ($('#input_dpdfrance_predict_gsm_dest:-webkit-autofill').val()) {
dpdfrance_checkGSM();
}
}, 25);
$("#input_dpdfrance_predict_gsm_dest").keyup(function() {
delay(function(){
dpdfrance_checkGSM();
}, 200);
});
if ($("#div_dpdfrance_predict_block").is(":visible")) {
dpdfrance_checkGSM();
}
});
{/literal}
</script>
<noscript>
<tr>
<td colspan="5"><div class="dpdfrance_relais_error"><strong>{l s='It seems that your browser doesn\'t allow Javascript execution, therefore DPD Relais is not available. Please change browser settings, or try another browser.' mod='dpdfrance'}</strong></div></td>
</tr><br/>
<div style="display:none;">
</noscript>
<div id="dpdfrance_relais_filter" onclick="
var i = 1;
for (i=1; i<6; i++){
document.getElementById('dpdfrance_relais_filter').style.display='none';
document.getElementById('dpdfrance_relaydetail'+i).style.display='none';
}">
</div>
<table align="center" id="dpdfrance_relais_point_table" class="dpdfrance_fo" style="display:none;">
{if isset($error)}
<tr>
<td colspan="5"><div class="dpdfrance_relais_error"> {$error|escape:'htmlall':'UTF-8'} </div></td>
</tr>
{else}
{if $dpdfrance_relais_status == 'error'}
<tr>
<td colspan="5" style="padding:0px;"><div class="dpdfrance_relais_error"><p>{l s='It seems that you haven\'t selected a DPD Pickup point, please pick one from this list' mod='dpdfrance'}</p></div></td>
</tr>
{/if}
<tr>
<td colspan="5" style="padding:0px;">
<div id="dpdfrance_div_relais_header"><p>{l s='Please select your DPD Relais parcelshop among this list' mod='dpdfrance'}</p></div>
{if $ssl == 0 || $ssl_everywhere == 1}
<div id="dpdfrance_div_relais_srch_link"><span onMouseOver="javascript:this.style.cursor='pointer';javascript:this.style.textDecoration='underline';" onMouseOut="javascript:this.style.cursor='auto';javascript:this.style.textDecoration='none';" onClick="$('#dpdfrance_div_relais_srch_panel').slideToggle();">{l s='Search for Pickup points near another address' mod='dpdfrance'}</span>
<div id="dpdfrance_div_relais_srch_panel" style="display:none;">
<input type="text" id="dpdfrance_search_address" placeholder="{l s='Address' mod='dpdfrance'}" /><br/>
<input type="text" id="dpdfrance_search_zipcode" maxlength="5" placeholder="{l s='Postcode' mod='dpdfrance'}" /> <input type="text" id="dpdfrance_search_city" placeholder="{l s='City' mod='dpdfrance'}" />
<button type="button" id="dpdfrance_search_submit" name="dpdfrance_search_submit" onclick="dpdfrance_relais_ajaxupdate($('#dpdfrance_search_address').val(), $('#dpdfrance_search_zipcode').val(), $('#dpdfrance_search_city').val(), 'search', dpdfrance_cart_id);">{l s='Search' mod='dpdfrance'}</button>
<button type="button" id="dpdfrance_reset_submit" name="dpdfrance_reset_submit" onclick="dpdfrance_relais_ajaxupdate($('#dpdfrance_search_address').val(), $('#dpdfrance_search_zipcode').val(), $('#dpdfrance_search_city').val(), 'reset', dpdfrance_cart_id);">{l s='Reset' mod='dpdfrance'}</button>
</div>
{/if}
</td>
</tr>
{if isset($dpdfrance_relais_empty)}
<tr>
<td colspan="5" style="padding:0px;"><div class="dpdfrance_relais_error"><p>{l s='There are no Pickup points near this address, please modify it.' mod='dpdfrance'}</p></div></td>
</tr>
{/if}
{foreach from=$dpdfrance_relais_points item=points name=dpdfranceRelaisLoop}
<tr class="dpdfrance_lignepr" onclick="dpdfrance_registerPudo('{$points.relay_id|escape:'htmlall':'UTF-8'}');document.getElementById('{$points.relay_id|escape:'htmlall':'UTF-8'}').checked=true;">
<td align="left" class="dpdfrance_logorelais"></td>
<td align="left" class="dpdfrance_adressepr"><b>{$points.shop_name|escape:'htmlall':'UTF-8'}</b><br/>{$points.address1|escape:'htmlall':'UTF-8'}<br/>{$points.postal_code|escape:'htmlall':'UTF-8'} {$points.city|escape:'htmlall':'UTF-8'}<br/></td>
<td align="right" class="dpdfrance_distancepr">{$points.distance|escape:'htmlall':'UTF-8'} km</td>
<td align="center" class="dpdfrance_popinpr">
<span onMouseOver="javascript:this.style.cursor='pointer';" onMouseOut="javascript:this.style.cursor='auto';"
onClick="openDpdfranceDialog('dpdfrance_relaydetail{$smarty.foreach.dpdfranceRelaisLoop.index+1|escape:'htmlall':'UTF-8'}','map_canvas{$smarty.foreach.dpdfranceRelaisLoop.index+1|escape:'htmlall':'UTF-8'}',{$points.coord_lat|escape:'htmlall':'UTF-8'},{$points.coord_long|escape:'htmlall':'UTF-8'},'{$dpdfrance_base_dir|escape:'htmlall':'UTF-8'}')">
<u>{l s='More details' mod='dpdfrance'}</u>
</span>
</td>
<td align="center" class="dpdfrance_radiopr">
{if $dpdfrance_selectedrelay == $points.relay_id}
<input type="radio" name="dpdfrance_relay_id" id="{$points.relay_id|escape:'htmlall':'UTF-8'}" value="{$points.relay_id|escape:'htmlall':'UTF-8'}" checked="checked">
{else}
<input type="radio" name="dpdfrance_relay_id" id="{$points.relay_id|escape:'htmlall':'UTF-8'}" value="{$points.relay_id|escape:'htmlall':'UTF-8'}" {if $smarty.foreach.dpdfranceRelaisLoop.first} checked="checked" {/if}>
{/if}
<label for="{$points.relay_id|escape:'htmlall':'UTF-8'}"><span><span></span></span><b>ICI</b></label>
</td>
</tr>
<div id="dpdfrance_relaydetail{$smarty.foreach.dpdfranceRelaisLoop.index+1|escape:'htmlall':'UTF-8'}" class="dpdfrance_relaisbox" style="display:none;">
<div class="dpdfrance_relaisboxclose" onclick="
document.getElementById('dpdfrance_relaydetail{$smarty.foreach.dpdfranceRelaisLoop.index+1|escape:'htmlall':'UTF-8'}').style.display='none';
document.getElementById('dpdfrance_relais_filter').style.display='none'">
<img src="{$dpdfrance_base_dir|escape:'htmlall':'UTF-8'}/views/img/front/relais/box-close.png"/>
</div>
<div class="dpdfrance_relaisboxcarto" id="map_canvas{$smarty.foreach.dpdfranceRelaisLoop.index+1|escape:'htmlall':'UTF-8'}"></div>
<div id="relaisboxbottom" class="dpdfrance_relaisboxbottom">
<div id="relaisboxadresse" class="dpdfrance_relaisboxadresse">
<div class="dpdfrance_relaisboxadresseheader">{l s='Your DPD Pickup point' mod='dpdfrance'}</div><br/>
<b>{$points.shop_name|escape:'htmlall':'UTF-8'}</b><br/>
{$points.address1|escape:'htmlall':'UTF-8'}<br/>
{if isset($points.address2)}
{$points.address2|escape:'htmlall':'UTF-8'}<br/>
{/if}
{$points.postal_code|escape:'htmlall':'UTF-8'} {$points.city|escape:'htmlall':'UTF-8'}<br/>
{if isset($points.local_hint)}
<p>{l s='Landmark' mod='dpdfrance'} : {$points.local_hint|escape:'htmlall':'UTF-8'}</p>
{/if}
</div>
<div class="dpdfrance_relaisboxhoraires">
<div class="dpdfrance_relaisboxhorairesheader">{l s='Opening hours' mod='dpdfrance'}</div><br/>
<p>
<span class="dpdfrance_relaisboxjour">{l s='Monday' mod='dpdfrance'} : </span>
{if !isset($points.monday)} {l s='Closed' mod='dpdfrance'}
{else}
{if $points.monday[0]}
{$points.monday[0]|escape:'htmlall':'UTF-8'}
{if isset($points.monday[1])}
& {$points.monday[1]|escape:'htmlall':'UTF-8'}
{/if}
{/if}
{/if}
</p>
<p>
<span class="dpdfrance_relaisboxjour">{l s='Tuesday' mod='dpdfrance'} : </span>
{if !isset($points.tuesday)} {l s='Closed' mod='dpdfrance'}
{else}
{if $points.tuesday[0]}
{$points.tuesday[0]|escape:'htmlall':'UTF-8'}
{if isset($points.tuesday[1])}
& {$points.tuesday[1]|escape:'htmlall':'UTF-8'}
{/if}
{/if}
{/if}
</p>
<p>
<span class="dpdfrance_relaisboxjour">{l s='Wednesday' mod='dpdfrance'} : </span>
{if !isset($points.wednesday)} {l s='Closed' mod='dpdfrance'}
{else}
{if $points.wednesday[0]}
{$points.wednesday[0]|escape:'htmlall':'UTF-8'}
{if isset($points.wednesday[1])}
& {$points.wednesday[1]|escape:'htmlall':'UTF-8'}
{/if}
{/if}
{/if}
</p>
<p>
<span class="dpdfrance_relaisboxjour">{l s='Thursday' mod='dpdfrance'} : </span>
{if !isset($points.thursday)} {l s='Closed' mod='dpdfrance'}
{else}
{if $points.thursday[0]}
{$points.thursday[0]|escape:'htmlall':'UTF-8'}
{if isset($points.thursday[1])}
& {$points.thursday[1]|escape:'htmlall':'UTF-8'}
{/if}
{/if}
{/if}
</p>
<p>
<span class="dpdfrance_relaisboxjour">{l s='Friday' mod='dpdfrance'} : </span>
{if !isset($points.friday)} {l s='Closed' mod='dpdfrance'}
{else}
{if $points.friday[0]}
{$points.friday[0]|escape:'htmlall':'UTF-8'}
{if isset($points.friday[1])}
& {$points.friday[1]|escape:'htmlall':'UTF-8'}
{/if}
{/if}
{/if}
</p>
<p>
<span class="dpdfrance_relaisboxjour">{l s='Saturday' mod='dpdfrance'} : </span>
{if !isset($points.saturday)} {l s='Closed' mod='dpdfrance'}
{else}
{if $points.saturday[0]}
{$points.saturday[0]|escape:'htmlall':'UTF-8'}
{if isset($points.saturday[1])}
& {$points.saturday[1]|escape:'htmlall':'UTF-8'}
{/if}
{/if}
{/if}
</p>
<p>
<span class="dpdfrance_relaisboxjour">{l s='Sunday' mod='dpdfrance'} : </span>
{if !isset($points.sunday)} {l s='Closed' mod='dpdfrance'}
{else}
{if $points.sunday[0]}
{$points.sunday[0]|escape:'htmlall':'UTF-8'}
{if isset($points.sunday[1])}
& {$points.sunday[1]|escape:'htmlall':'UTF-8'}
{/if}
{/if}
{/if}
</p>
</div>
<div id="relaisboxinfos" class="dpdfrance_relaisboxinfos">
<div class="dpdfrance_relaisboxinfosheader">{l s='More info' mod='dpdfrance'}</div><br/>
<h5>{l s='Distance in km' mod='dpdfrance'} : </h5>{$points.distance|escape:'htmlall':'UTF-8'} km <br/>
<h5>{l s='DPD Relais code' mod='dpdfrance'} : </h5>{$points.relay_id|escape:'htmlall':'UTF-8'} <br/>
{if isset($points.closing_period[0])}
<h4><img src="{$dpdfrance_base_dir|escape:'htmlall':'UTF-8'}/views/img/front/relais/warning.png"/> {l s='Closing period' mod='dpdfrance'} : </h4>{$points.closing_period[0]|escape:'htmlall':'UTF-8'} <br/>
{/if}
{if isset($points.closing_period[1])}
<h4></h4>{$points.closing_period[1]|escape:'htmlall':'UTF-8'} <br/>
{/if}
{if isset($points.closing_period[2])}
<h4></h4>{$points.closing_period[2]|escape:'htmlall':'UTF-8'} <br/>
{/if}
</div>
</div>
</div>
{/foreach}
{/if}
</table>
<noscript></div></noscript>
<div id="div_dpdfrance_predict_block" class="dpdfrance_fo" style="display:none;">
<div id="div_dpdfrance_predict_header"><p>{l s='Your order will be delivered by DPD with Predict service' mod='dpdfrance'}</p></div>
<div class="module" id="predict">
<div id="div_dpdfrance_predict_logo"></div>
<div class="copy">
<p><h2>{l s='Predict offers you the following benefits' mod='dpdfrance'} :</h2></p>
<ul>
<li><b>{l s='A parcel delivery in a 3-hour time window (choice is made by SMS or through our website)' mod='dpdfrance'}</b></li>
<li><b>{l s='A complete and detailed tracking of your delivery' mod='dpdfrance'}</b></li>
<li><b>{l s='In case of absence, you can schedule a new delivery when and where you it suits you best' mod='dpdfrance'}</b></li>
</ul>
<br/>
<p><h2>{l s='How does it work?' mod='dpdfrance'}</h2></p>
<ul>
<li>{l s='Once your order is ready for shipment, you will receive an SMS proposing various days and time windows for your delivery.' mod='dpdfrance'}</li>
<li>{l s='You choose the moment which suits you best for the delivery by replying to the SMS (no extra cost) or through our website' mod='dpdfrance'} <a href="http://destinataires.dpd.fr" target="_blank">dpd.fr</a></li>
<li>{l s='On the day of delivery, a text message will remind you the selected time window.' mod='dpdfrance'}</li>
</ul>
</div>
<br/>
<div id="div_dpdfrance_dpd_logo"></div>
</div>
<div id="div_dpdfrance_predict_gsm">
{l s='Get all the advantages of DPD\'s Predict service by providing a french GSM number here ' mod='dpdfrance'}
<input type="text" name="dpdfrance_predict_gsm_dest" id="input_dpdfrance_predict_gsm_dest" maxlength="15" value="{$dpdfrance_predict_gsm_dest|escape:'htmlall':'UTF-8'}"></input><div id="dpdfrance_predict_gsm_button">></div>
</div>
<div id="dpdfrance_predict_error" class="warnmsg" style="display:none;">{l s='It seems that the GSM number you provided is incorrect. Please provide a french GSM number, starting with 06 or 07, on 10 consecutive digits.' mod='dpdfrance'}</div>
</div>

View File

@@ -0,0 +1,32 @@
{**
* 2007-2018 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 DPD France S.A.S. <support.ecommerce@dpd.fr>
* @copyright 2018 DPD France S.A.S.
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*}
<script type="text/javascript">
var dpdfranceRelaisCarrierId = "{$dpdfrance_relais_carrier_id|escape:'javascript':'UTF-8'}";
var dpdfrancePredictCarrierId = "{$dpdfrance_predict_carrier_id|escape:'javascript':'UTF-8'}";
var psVer = parseFloat("{$ps_version|escape:'javascript':'UTF-8'}");
var dpdfrance_cart_id = "{$dpdfrance_cart->id|escape:'javascript':'UTF-8'}";
var dpdfrance_base_dir = "{$dpdfrance_base_dir|escape:'javascript':'UTF-8'}";
var dpdfrance_token = "{$dpdfrance_token|escape:'javascript':'UTF-8'}";
</script>

View File

@@ -0,0 +1,34 @@
<?php
/**
* 2007-2018 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 DPD France S.A.S. <support.ecommerce@dpd.fr>
* @copyright 2018 DPD France S.A.S.
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*/
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,34 @@
<?php
/**
* 2007-2018 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 DPD France S.A.S. <support.ecommerce@dpd.fr>
* @copyright 2018 DPD France S.A.S.
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*/
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;