addition of new v of mondialrelay and start of chamgements to include mr in philea
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
/**
|
||||
* 2007-2015 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
@ -18,226 +18,238 @@
|
||||
* 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-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 9538 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2015 PrestaShop SA
|
||||
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
require_once(dirname(__FILE__).'/classes/MondialRelayClass.php');
|
||||
require_once(dirname(__FILE__).'/classes/MRCreateTickets.php');
|
||||
require_once(dirname(__FILE__).'/mondialrelay.php');
|
||||
|
||||
class AdminMondialRelay extends AdminTab
|
||||
{
|
||||
private $mondialrelay = NULL;
|
||||
|
||||
private $mondialrelay = null;
|
||||
|
||||
public $post_errors = array();
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
MondialRelay::initModuleAccess();
|
||||
|
||||
$this->mondialrelay = new MondialRelay();
|
||||
|
||||
$this->table = 'mr_selected';
|
||||
$this->className = 'MondialRelayClass';
|
||||
|
||||
parent::__construct();
|
||||
$this->context = Context::getContext();
|
||||
$datas = array(
|
||||
'display_header' => true,
|
||||
'display_header_javascript' => true,
|
||||
'display_footer' => true,
|
||||
);
|
||||
|
||||
$this->context->smarty->assign($datas);
|
||||
}
|
||||
|
||||
/**
|
||||
* @Override
|
||||
* display orders by sales
|
||||
*/
|
||||
private function displaySalesTable()
|
||||
{
|
||||
global $currentIndex;
|
||||
|
||||
$mr_carriers = array();
|
||||
foreach (Db::getInstance()->executeS('
|
||||
SELECT `id_carrier`
|
||||
FROM `'._DB_PREFIX_.'mr_method`
|
||||
') as $row) {
|
||||
$mr_carriers[] = (int) $row['id_carrier'];
|
||||
}
|
||||
|
||||
$details = MondialRelay::getAccountDetail();
|
||||
|
||||
$id_sales = array();
|
||||
|
||||
foreach (Db::getInstance()->executeS('
|
||||
SELECT DISTINCT p.`id_sale`
|
||||
FROM `'._DB_PREFIX_.'privatesale` p
|
||||
LEFT JOIN `'._DB_PREFIX_.'product_ps_cache` ppc
|
||||
ON ppc.`id_sale` = p.`id_sale`
|
||||
LEFT JOIN `'._DB_PREFIX_.'order_detail` od
|
||||
ON od.`product_id` = ppc.`id_product`
|
||||
LEFT JOIN `'._DB_PREFIX_.'order_state_current` ost
|
||||
ON ost.`id_order` = od.`id_order`
|
||||
LEFT JOIN `'._DB_PREFIX_.'orders` o
|
||||
ON o.`id_order` = od.`id_order`
|
||||
WHERE ost.`id_order_state` = '.(int) $details['MR_ORDER_STATE'].'
|
||||
AND o.`id_carrier` IN ('.implode(', ', $mr_carriers).')
|
||||
') as $row){
|
||||
$id_sales[] = (int) $row['id_sale'];
|
||||
}
|
||||
|
||||
$sales = Db::getInstance()->executeS('
|
||||
SELECT p.`id_sale`, cl.`name`
|
||||
FROM `'._DB_PREFIX_.'privatesale` p
|
||||
LEFT JOIN `'._DB_PREFIX_.'category_lang` cl
|
||||
ON cl.`id_category` = p.`id_category`
|
||||
WHERE cl.id_lang = '.(int) $this->context->language->id.'
|
||||
AND p.`id_sale` IN ('.implode(', ', $id_sales).')
|
||||
');
|
||||
|
||||
$html = '
|
||||
<form method="POST" action="'.$currentIndex.'&token='.Tools::getAdminToken('AdminMondialRelay'.(int)(Tab::getIdFromClassName('AdminMondialRelay')).(int)$this->context->employee->id).'">
|
||||
<fieldset>
|
||||
<legend>'.$this->l('Liste des ventes').'</legend>
|
||||
<label>'.$this->l('Export sale').'</label>
|
||||
<div class="margin-form">
|
||||
<select id="mr_id_sale" name="mr_id_sale">';
|
||||
foreach ($sales as $sale) {
|
||||
$html .= '
|
||||
<option value="'.$sale['id_sale'].'">'.$sale['name'].'</option>';
|
||||
}
|
||||
$html .= '
|
||||
</select>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
<div class="margin-form">
|
||||
<input class="btn button" type="submit" name="mr_submitSale" value="'.$this->l('Send').'" />
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>';
|
||||
echo $html;
|
||||
}
|
||||
|
||||
private function displayOrdersTable()
|
||||
{
|
||||
global $cookie;
|
||||
$order_state = new OrderState((int)(Configuration::get('MONDIAL_RELAY_ORDER_STATE')), $this->context->language->id);
|
||||
$orders = MondialRelay::getOrders(array(), MondialRelay::NO_FILTER, $this->mondialrelay->account_shop['MR_WEIGHT_COEFFICIENT']);
|
||||
|
||||
$mondialrelay = new MondialRelay();
|
||||
$order_state = new OrderState((int)(Configuration::get('MONDIAL_RELAY_ORDER_STATE')), $cookie->id_lang);
|
||||
$mr_weight_coef = (int)(Configuration::get('MR_WEIGHT_COEF'));
|
||||
|
||||
$html = '';
|
||||
|
||||
// Simulate a ticket generation
|
||||
$MRCreateTicket = new MRCreateTickets(array(
|
||||
'orderIdList' => NULL,
|
||||
'totalOrder' => NULL,
|
||||
'weightList' => NULL));
|
||||
|
||||
$errorListTicket = $MRCreateTicket->checkPreValidation();
|
||||
|
||||
$titleType = array(
|
||||
'error' => $this->l('Thanks to kindly correct the following errors on ').
|
||||
'<a href="index.php?tab=AdminContact&token='.Tools::getAdminToken('AdminContact'.
|
||||
(int)(Tab::getIdFromClassName('AdminContact')).(int)($cookie->id_employee)).'" style="color:#f00;"> '.
|
||||
$this->l('the contact page').'</a>:<ul>',
|
||||
'warn' => $this->l('Please take a look to this following warning, maybe the ticket won\'t be generated'));
|
||||
|
||||
foreach($errorListTicket as $errorType => $errorList)
|
||||
'orderIdList' => null,
|
||||
'totalOrder' => null,
|
||||
'weightList' => null
|
||||
),
|
||||
$this->mondialrelay
|
||||
);
|
||||
if (is_array($orders) && count($orders))
|
||||
foreach ($orders as &$order)
|
||||
{
|
||||
if (count($errorList))
|
||||
{
|
||||
$html .= '<div class="MR_'.$errorType.'">'.$titleType[$errorType];
|
||||
foreach($errorList as $type => $error)
|
||||
$html .= '<li>'.$type.': '.$error.'</li>';
|
||||
$html .= '</ul></div>';
|
||||
}
|
||||
$order['display_total_price'] = Tools::displayPrice($order['total'], new Currency($order['id_currency']));
|
||||
$order['display_shipping_price'] = Tools::displayPrice($order['shipping'], new Currency($order['id_currency']));
|
||||
if (version_compare(_PS_VERSION_, '1.5.5', '<'))
|
||||
$order['display_date'] = Tools::displayDate($order['date'], $this->context->language->id);
|
||||
else
|
||||
$order['display_date'] = Tools::displayDate($order['date']);
|
||||
$order['weight'] = (!empty($order['mr_weight']) && $order['mr_weight'] > 0) ? $order['mr_weight'] : $order['order_weight'];
|
||||
}
|
||||
|
||||
$html .= '<p>'.$this->l('All orders which have the state').' "<b>'.$order_state->name.'</b>" '.
|
||||
$this->l('will be available for sticker creation');
|
||||
$html .= '. <a href="index.php?tab=AdminModules&configure=mondialrelay&token='.
|
||||
Tools::getAdminToken('AdminModules'.(int)(Tab::getIdFromClassName('AdminModules')).
|
||||
(int)($cookie->id_employee)).'" class="green">' . $this->l('Change configuration') . '</a></p>
|
||||
<div class="PS_MRErrorList error" id="otherErrors">
|
||||
<img src="'._PS_IMG_.'admin/error2.png" alt="" />
|
||||
<span></span>
|
||||
</div>';
|
||||
|
||||
$orders = MondialRelay::getOrders(array());
|
||||
if (empty($orders))
|
||||
$html.= '<h3 style="color:red;">' . $this->l('No orders with this state.') . '</h3>';
|
||||
else
|
||||
{
|
||||
$html.= '<form method="post" action="'.Tools::safeOutput($_SERVER['REQUEST_URI']).'">';
|
||||
$html.= "\n<table class=\"table\" id='orders'>";
|
||||
$html.= '<tr>';
|
||||
$html.= '<th><input type="checkbox" id="toggleStatusOrderList" /></th>';
|
||||
$html.= '<th>'.$this->l('Order ID').'</th>';
|
||||
$html.= '<th>'.$this->l('Customer').'</th>';
|
||||
$html.= '<th>'.$this->l('Total price').'</th>';
|
||||
$html.= '<th>'.$this->l('Total shipping').'</th>';
|
||||
$html.= '<th>'.$this->l('Date').'</th>';
|
||||
$html.= '<th>'.$this->l('Put a Weight (grams)').'</th>';
|
||||
$html.= '<th>'.$this->l('MR Number').'</th>';
|
||||
$html.= '<th>'.$this->l('MR Country').'</th>';
|
||||
$html.= '<th>'.$this->l('Exp Number').'</th>';
|
||||
$html.= '<th>'.$this->l('Detail').'</th>';
|
||||
$html.= '</tr>';
|
||||
|
||||
foreach ($orders as $order)
|
||||
{
|
||||
if ($order['weight'] == 0)
|
||||
{
|
||||
$result_weight = Db::getInstance()->getRow('
|
||||
SELECT SUM(product_weight * product_quantity) as weight
|
||||
FROM '._DB_PREFIX_.'order_detail
|
||||
WHERE id_order = '.(int)($order['id_order']));
|
||||
$order['weight'] = round($mr_weight_coef * $result_weight['weight']);
|
||||
}
|
||||
$controller = (_PS_VERSION_ < '1.5') ? 'AdminContact' : 'AdminStores';
|
||||
|
||||
$this->context->smarty->assign(array(
|
||||
'MR_token_admin_module' => Tools::getAdminToken('AdminModules'.(int)(Tab::getIdFromClassName('AdminModules')).(int)$this->context->employee->id),
|
||||
'MR_token_admin_contact' => array(
|
||||
'controller_name' => $controller,
|
||||
'token' => Tools::getAdminToken($controller.(int)(Tab::getIdFromClassName($controller)).(int)$this->context->employee->id)),
|
||||
'MR_token_admin_orders' => Tools::getAdminToken('AdminOrders'.(int)(Tab::getIdFromClassName('AdminOrders')).(int)$this->context->employee->id),
|
||||
'MR_order_state_name' => $order_state->name,
|
||||
'MR_orders' => $orders,
|
||||
'MR_PS_IMG_DIR_' => _PS_IMG_DIR_,
|
||||
'MR_errors_type' => $MRCreateTicket->checkPreValidation())
|
||||
);
|
||||
|
||||
$html .= '<tr id="PS_MRLineOrderInformation-'.$order['id_order'].'">';
|
||||
$html .= '<td><input type="checkbox" class="order_id_list" name="order_id_list[]" id="order_id_list" value="'.$order['id_order'].'" /></td>';
|
||||
$html .= '<td>'.$order['id_order'].'</td>';
|
||||
$html .= '<td>'.$order['customer'].'</td>';
|
||||
$html .= '<td>'.Tools::displayPrice($order['total'], new Currency($order['id_currency'])) . '</td>';
|
||||
$html .= '<td>'.Tools::displayPrice($order['shipping'], new Currency($order['id_currency'])) . '</td>';
|
||||
$html .= '<td>'.Tools::displayDate($order['date'], $order['id_lang']).'</td>';
|
||||
$html .= '<td><input type="text" name="weight_'.$order['id_order'].'" id="weight_' . $order['id_order'] . '" size="7" value="'.$order['weight'].'" /></td>';
|
||||
$html .= '<td>'.$order['MR_Selected_Num'].'</td>';
|
||||
$html .= '<td>'.$order['MR_Selected_Pays'].'</td>';
|
||||
$html .= '<td>'.$order['exp_number'].'</td>';
|
||||
$html .= '
|
||||
<td class="center">
|
||||
<a href="index.php?tab=AdminOrders&id_order='.$order['id_order'].'&vieworder&token='.Tools::getAdminToken('AdminOrders'.(int)(Tab::getIdFromClassName('AdminOrders')).(int)($cookie->id_employee)).'">
|
||||
<img border="0" title="'.$this->l('View').'" alt="'.$this->l('View').'" src="'._PS_IMG_.'admin/details.gif"/></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="PS_MRErrorList error" id="errorCreatingTicket_'.$order['id_order'].'" style="display:none;">
|
||||
<td colspan="11" style="background:url('._PS_IMG_.'admin/error2.png) 10px 10px no-repeat;">
|
||||
<span></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="PS_MRSuccessList" id="successCreatingTicket_'.$order['id_order'].'" style="display:none;">
|
||||
<td>'.$order['id_order'].'</td>
|
||||
<td colspan="10" style="background:url('._PS_IMG_.'admin/ok2.png) 10px 5px no-repeat #DFFAD3;">
|
||||
'.$this->l('Operation successful').'
|
||||
<span></span>
|
||||
</td>
|
||||
</tr>';
|
||||
}
|
||||
$html .= '
|
||||
</table>';
|
||||
$html .= '
|
||||
<div class="submit_button">
|
||||
<div class="PS_MRSubmitButton" id="PS_MRSubmitButtonGenerateTicket">
|
||||
<input type="button" name="generate" id="generate" value="' . $this->l('Generate') . '" class="button" />
|
||||
</div>
|
||||
<div class="PS_MRLoader" id="PS_MRSubmitGenerateLoader"><img src="'.MondialRelay::$moduleURL.'images/getTickets.gif"</div>
|
||||
</div>';
|
||||
$html .= '</form>';
|
||||
}
|
||||
unset($mondialrelay);
|
||||
unset($order_state);
|
||||
return $html;
|
||||
echo $this->mondialrelay->fetchTemplate('/views/templates/admin/', 'generate_tickets');
|
||||
}
|
||||
|
||||
public function displayhistoriqueForm()
|
||||
{
|
||||
$mondialrelay = new MondialRelay();
|
||||
$_html = '';
|
||||
$query = "SELECT * FROM `" . _DB_PREFIX_ ."mr_historique` ORDER BY `id` DESC ;";
|
||||
$query = Db::getInstance()->ExecuteS($query);
|
||||
$query = 'SELECT * FROM `'._DB_PREFIX_.'mr_history` ORDER BY `id` DESC ;';
|
||||
$history = Db::getInstance()->executeS($query);
|
||||
|
||||
$_html.= '
|
||||
<fieldset>
|
||||
<legend>' . $this->l('History of labels creation') . '</legend>
|
||||
<div style="overflow-x: auto;overflow-y: scroller; height: 300px; padding-top: 0.6em;" >
|
||||
<form method="post" action="'.Tools::safeOutput($_SERVER['REQUEST_URI']).'">
|
||||
<table class="table" id="PS_MRHistoriqueTableList">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th><input type="checkbox" id="toggleStatusHistoryList" /></th>
|
||||
<th>' . $this->l('Order ID') . '</th>
|
||||
<th>' . $this->l('Exp num') . '</th>
|
||||
<th>' . $this->l('Print stick A4') . '</th>
|
||||
<th>' . $this->l('Print stick A5') . '</th>
|
||||
</tr>';
|
||||
foreach ($query AS $k => $row)
|
||||
{
|
||||
$_html.= '
|
||||
<tr id="detailHistory_'.$row['order'].'">
|
||||
<td>
|
||||
<input type="checkbox" id="PS_MRHistoryId_'.$row['id'].'" class="history_id_list" name="history_id_list[]" value="' . $row['id'] . '" />
|
||||
</td>
|
||||
<td>'.$row['order'].'</td>
|
||||
<td id="expeditionNumber_'.$row['order'].'">'.$row['exp'].'</td>
|
||||
<td id="URLA4_'.$row['order'].'">
|
||||
<a href="'.$row['url_a4'].'" target="a4"><img width="20" src="'.MondialRelay::$moduleURL.'images/pdf_icon.jpg" /></a>
|
||||
</td>
|
||||
<td id="URLA5_'.$row['order'].'">
|
||||
<a href="'.$row['url_a5'].'" target="a5"><img width="20" src="'.MondialRelay::$moduleURL.'images/pdf_icon.jpg" /></a>
|
||||
</td>
|
||||
</tr>';
|
||||
}
|
||||
$_html .= '
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="PS_MRSubmitButton">
|
||||
<input type="button" id="PS_MRSubmitButtonDeleteHistories" name="deleteSelectedHistories" value="' . $this->l('Delete selected history') . '" class="button" />
|
||||
<div class="PS_MRLoader" id="PS_MRSubmitDeleteHistoriesLoader">
|
||||
<img src="'.MondialRelay::$moduleURL.'images/getTickets.gif"
|
||||
</div>
|
||||
</div>
|
||||
</form></div></fieldset>';
|
||||
foreach ($history as &$item)
|
||||
$item['url_10x15'] = str_replace('format=A4', 'format=10x15', $item['url_a4']);
|
||||
|
||||
$this->context->smarty->assign(array(
|
||||
'MR_histories' => $history)
|
||||
);
|
||||
echo $this->mondialrelay->fetchTemplate('/views/templates/admin/', 'history');
|
||||
}
|
||||
|
||||
return $_html;
|
||||
public function displaySettings($post_action)
|
||||
{
|
||||
$curr_order_state = new OrderState((int)$this->mondialrelay->account_shop['MR_ORDER_STATE']);
|
||||
$order_state = array(
|
||||
'id_order_state' => $this->mondialrelay->account_shop['MR_ORDER_STATE'],
|
||||
'name' => $curr_order_state->name[$this->context->language->id]
|
||||
);
|
||||
|
||||
$this->context->smarty->assign(array(
|
||||
'MR_token_admin_mondialrelay' => Tools::getAdminToken('AdminMondialRelay'.(int)(Tab::getIdFromClassName('AdminMondialRelay')).(int)$this->context->employee->id),
|
||||
'MR_account_set' => MondialRelay::isAccountSet(),
|
||||
'MR_order_state' => $order_state,
|
||||
'MR_orders_states_list' => OrderState::getOrderStates($this->context->language->id),
|
||||
'MR_form_action' => $post_action,
|
||||
'MR_error_list' => $this->post_errors
|
||||
));
|
||||
|
||||
echo $this->mondialrelay->fetchTemplate('/views/templates/admin/', 'settings');
|
||||
}
|
||||
|
||||
public function postProcess()
|
||||
{
|
||||
$post_action = array(
|
||||
'type' => Tools::getValue('MR_action_name'),
|
||||
'message_success' => $this->l('Action Succeed'),
|
||||
'had_errors' => false
|
||||
);
|
||||
|
||||
parent::postProcess();
|
||||
|
||||
if (Tools::isSubmit('submit_order_state'))
|
||||
if (($order_state = (int)Tools::getValue('id_order_state')))
|
||||
{
|
||||
$this->mondialrelay->account_shop['MR_ORDER_STATE'] = $order_state;
|
||||
|
||||
if ($this->mondialrelay->updateAccountShop())
|
||||
$post_action['message_success'] = $this->l('Order State has been updated');
|
||||
else
|
||||
$this->post_errors[] = $this->l('Cannot Update the account shop');
|
||||
}
|
||||
|
||||
/*
|
||||
* @Override sale submit process
|
||||
*/
|
||||
if (Tools::isSubmit('mr_submitSale') && Tools::getValue('mr_id_sale')){
|
||||
$id_sale = (int) Tools::getValue('mr_id_sale');
|
||||
$this->processShippingSale($id_sale);
|
||||
}
|
||||
|
||||
if (count($this->post_errors))
|
||||
$post_action['had_errors'] = true;
|
||||
|
||||
return $post_action;
|
||||
}
|
||||
|
||||
public function display()
|
||||
{
|
||||
$html = '';
|
||||
|
||||
// Allow to override the older jquery to use a new one :)
|
||||
// Added for the 1.3 compatibility to keep using the recent code
|
||||
if (_PS_VERSION_ < '1.4')
|
||||
$html .= MondialRelay::getjQueryCompatibility();
|
||||
|
||||
$html .= '
|
||||
<script type="text/javascript" language="javascript">
|
||||
var _PS_MR_MODULE_DIR_ = "'.MondialRelay::$moduleURL.'";
|
||||
</script>';
|
||||
|
||||
$html .= $this->displayOrdersTable();
|
||||
$html .= '<br/><br/>';
|
||||
$html .= $this->displayhistoriqueForm();
|
||||
echo $html;
|
||||
}
|
||||
}
|
||||
{
|
||||
|
||||
?>
|
||||
$post_action = count($_POST) ? $this->postProcess() : null;
|
||||
|
||||
$this->displaySettings($post_action);
|
||||
if (MondialRelay::isAccountSet() && (int)$this->mondialrelay->account_shop['MR_ORDER_STATE'])
|
||||
{
|
||||
$this->displaySalesTable();
|
||||
// $this->displayOrdersTable();
|
||||
// $this->displayhistoriqueForm();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @Override
|
||||
*/
|
||||
public function processShippingSale($id_sale){
|
||||
|
||||
}
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
<?php
|
||||
/**
|
||||
* 2007-2015 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
@ -18,68 +18,88 @@
|
||||
* 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-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 9219 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2015 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
/*
|
||||
* File called by ajax. It's like a controler, you have to send the
|
||||
* method name of the webservice and implement it.
|
||||
* File called by ajax. It's like a controller, you have to send the
|
||||
* method name of the webservice and implement it.
|
||||
* Each Name method allow to instanciate an object containing
|
||||
* methods to manage correctly the data and name fields
|
||||
* methods to manage correctly the data and name fields
|
||||
*/
|
||||
|
||||
require_once(realpath(dirname(__FILE__).'/../../config/config.inc.php'));
|
||||
require_once(realpath(dirname(__FILE__).'/../../init.php'));
|
||||
require(dirname(__FILE__).'/mondialrelay.php');
|
||||
require(dirname(__FILE__).'/classes/MRCreateTickets.php');
|
||||
require(dirname(__FILE__).'/classes/MRGetTickets.php');
|
||||
require(dirname(__FILE__).'/classes/MRGetRelayPoint.php');
|
||||
require(dirname(__FILE__).'/classes/MRRelayDetail.php');
|
||||
require(dirname(__FILE__).'/classes/MRManagement.php');
|
||||
|
||||
/*
|
||||
* Clean displayed content for Admin ajax query
|
||||
*/
|
||||
@ob_clean();
|
||||
|
||||
global $cookie, $cart, $customer;
|
||||
/*
|
||||
* Front Ajax query, need the front cookie and MR class
|
||||
* When it's back query, the PS core made the work
|
||||
*/
|
||||
if (!defined('_PS_ADMIN_DIR_'))
|
||||
{
|
||||
require_once(realpath(dirname(__FILE__).'/../../config/config.inc.php'));
|
||||
require_once(realpath(dirname(__FILE__).'/../../init.php'));
|
||||
require_once(dirname(__FILE__).'/mondialrelay.php');
|
||||
}
|
||||
|
||||
MondialRelay::initModuleAccess();
|
||||
$mondialrelay = isset($this) ? $this : new Mondialrelay();
|
||||
|
||||
// Access page List liable to the generated token
|
||||
require_once(dirname(__FILE__).'/classes/MRCreateTickets.php');
|
||||
require_once(dirname(__FILE__).'/classes/MRGetTickets.php');
|
||||
require_once(dirname(__FILE__).'/classes/MRGetRelayPoint.php');
|
||||
require_once(dirname(__FILE__).'/classes/MRRelayDetail.php');
|
||||
require_once(dirname(__FILE__).'/classes/MRManagement.php');
|
||||
require_once(dirname(__FILE__).'/classes/MRDownloadPDF.php');
|
||||
|
||||
/* Can't use Tools at this time... Need to know if _PS_ADMIN_DIR_ has to be defined */
|
||||
$method = Tools::getValue('method');
|
||||
$token = Tools::getValue('mrtoken');
|
||||
|
||||
/* Access page List liable to the generated token*/
|
||||
$accessPageList = array(
|
||||
MondialRelay::getToken('front') => array(
|
||||
'MRGetRelayPoint',
|
||||
'addSelectedCarrierToDB'),
|
||||
'addSelectedCarrierToDB'
|
||||
),
|
||||
MondialRelay::getToken('back') => array(
|
||||
'MRGetTickets',
|
||||
'MRCreateTickets',
|
||||
'MRDeleteHistory',
|
||||
'uninstallDetail',
|
||||
'DeleteHistory'));
|
||||
'DeleteHistory',
|
||||
'MRDownloadPDF'
|
||||
)
|
||||
);
|
||||
|
||||
$method = Tools::getValue('method');
|
||||
$token = Tools::getValue('mrtoken');
|
||||
$params = array();
|
||||
$result = array();
|
||||
|
||||
// If the method name assoacited to the token received doesn't match with
|
||||
// the list, then we kill the request
|
||||
/* If the method name associated to the token received doesn't match with*/
|
||||
/* the list, then we kill the request*/
|
||||
if (!isset($accessPageList[$token]) || !in_array($method, $accessPageList[$token]))
|
||||
exit();
|
||||
|
||||
// Method name allow to instanciate his object to properly call the
|
||||
// implemented interface method and do his job
|
||||
switch($method)
|
||||
/* Method name allow to instanciate his object to properly call the*/
|
||||
/* implemented interface method and do his job*/
|
||||
switch ($method)
|
||||
{
|
||||
case 'MRCreateTickets':
|
||||
$params['orderIdList'] = Tools::getValue('order_id_list');
|
||||
$params['totalOrder'] = Tools::getValue('numSelected');
|
||||
$params['weightList'] = Tools::getValue('weight_list');
|
||||
$params['insuranceList'] = Tools::getValue('insurance_list');
|
||||
break;
|
||||
case 'MRGetTickets':
|
||||
$params['detailedExpeditionList'] = Tools::getValue('detailedExpeditionList');
|
||||
break;
|
||||
case 'MRDownloadPDF':
|
||||
$params['Expeditions'] = Tools::getValue('detailedExpeditionList');
|
||||
break;
|
||||
case 'DeleteHistory':
|
||||
$params['historyIdList'] = Tools::getValue('history_id_list');
|
||||
break;
|
||||
@ -88,28 +108,43 @@ switch($method)
|
||||
break;
|
||||
case 'MRGetRelayPoint':
|
||||
$params['id_carrier'] = Tools::getValue('id_carrier');
|
||||
$params['weight'] = $cart->getTotalWeight();
|
||||
$params['id_address_delivery'] = $cart->id_address_delivery;
|
||||
$params['weight'] = Context::getContext()->cart->getTotalWeight();
|
||||
$params['id_address_delivery'] = Context::getContext()->cart->id_address_delivery;
|
||||
|
||||
if (Tools::getValue('weight') && Tools::getValue('id_address_delivery') && Tools::getValue('process_selection')){
|
||||
$params['weight'] = (int) Tools::getValue('weight');
|
||||
$params['id_address_delivery'] = (int) Tools::getValue('id_address_delivery');
|
||||
}
|
||||
|
||||
break;
|
||||
case 'addSelectedCarrierToDB':
|
||||
$params['id_carrier'] = Tools::getValue('id_carrier');
|
||||
$params['id_cart'] = $cart->id;
|
||||
$params['id_customer'] = $cookie->id_customer;
|
||||
$params['id_cart'] = Context::getContext()->cart->id;
|
||||
$params['id_customer'] = Context::getContext()->customer->id;
|
||||
$params['id_mr_method'] = Tools::getValue('id_mr_method');
|
||||
$params['relayPointInfo'] = Tools::getValue('relayPointInfo');
|
||||
|
||||
|
||||
if (Tools::getValue('id_cart') && Tools::getValue('process_selection')){
|
||||
$params['id_cart'] = 0;
|
||||
$tmp_cart = new Cart(Tools::getValue('id_cart'));
|
||||
if ($tmp_cart->id_customer == (int) Context::getContext()->customer->id)
|
||||
$params['id_cart'] = $tmp_cart->id;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
}
|
||||
|
||||
// Try to instanciate the method object name and call the necessaries method
|
||||
try
|
||||
}
|
||||
|
||||
/* Try to instanciate the method object name and call the necessaries method*/
|
||||
try
|
||||
{
|
||||
if (class_exists($method, false))
|
||||
{
|
||||
$obj = new $method($params);
|
||||
/* $this is the current mondialrelay object loaded when use in BO. Use for perf*/
|
||||
$obj = new $method($params, $mondialrelay);
|
||||
|
||||
// Verify that the class implement correctly the interface
|
||||
// Else use a Management class to do some ajax stuff
|
||||
/* Verify that the class implement correctly the interface*/
|
||||
/* Else use a Management class to do some ajax stuff*/
|
||||
if (($obj instanceof IMondialRelayWSMethod))
|
||||
{
|
||||
$obj->init();
|
||||
@ -118,18 +153,16 @@ try
|
||||
}
|
||||
unset($obj);
|
||||
}
|
||||
elseif (($management = new MRManagement($params)) &&
|
||||
method_exists($management, $method))
|
||||
$result = $management->{$method}();
|
||||
else
|
||||
else if (($management = new MRManagement($params)) && method_exists($management, $method))
|
||||
$result = $management->{$method}();
|
||||
else
|
||||
throw new Exception('Method Class : '.$method.' can\'t be found');
|
||||
unset($management);
|
||||
}
|
||||
catch(Exception $e)
|
||||
{
|
||||
echo MondialRelay::jsonEncode(array('other' => array('error' => array($e->getMessage()))));
|
||||
echo MRTools::jsonEncode(array('other' => array('error' => array($e->getMessage()))));
|
||||
exit(-1);
|
||||
}
|
||||
echo MondialRelay::jsonEncode($result);
|
||||
echo MRTools::jsonEncode($result);
|
||||
exit(0);
|
||||
?>
|
||||
|
347
modules/mondialrelay/backward_compatibility/Context.php
Executable file
@ -0,0 +1,347 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2014 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 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/osl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2014 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
if ((bool)Configuration::get('PS_MOBILE_DEVICE'))
|
||||
require_once(_PS_MODULE_DIR_ . '/mobile_theme/Mobile_Detect.php');
|
||||
|
||||
// Retro 1.3, 'class_exists' cause problem with autoload...
|
||||
if (version_compare(_PS_VERSION_, '1.4', '<'))
|
||||
{
|
||||
// Not exist for 1.3
|
||||
class Shop extends ObjectModel
|
||||
{
|
||||
public $id = 1;
|
||||
public $id_shop_group = 1;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
public static function getShops()
|
||||
{
|
||||
return array(
|
||||
array('id_shop' => 1, 'name' => 'Default shop')
|
||||
);
|
||||
}
|
||||
|
||||
public static function getCurrentShop()
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
class Logger
|
||||
{
|
||||
public static function AddLog($message, $severity = 2)
|
||||
{
|
||||
$fp = fopen(dirname(__FILE__).'/../logs.txt', 'a+');
|
||||
fwrite($fp, '['.(int)$severity.'] '.Tools::safeOutput($message));
|
||||
fclose($fp);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Not exist for 1.3 and 1.4
|
||||
class Context
|
||||
{
|
||||
/**
|
||||
* @var Context
|
||||
*/
|
||||
protected static $instance;
|
||||
|
||||
/**
|
||||
* @var Cart
|
||||
*/
|
||||
public $cart;
|
||||
|
||||
/**
|
||||
* @var Customer
|
||||
*/
|
||||
public $customer;
|
||||
|
||||
/**
|
||||
* @var Cookie
|
||||
*/
|
||||
public $cookie;
|
||||
|
||||
/**
|
||||
* @var Link
|
||||
*/
|
||||
public $link;
|
||||
|
||||
/**
|
||||
* @var Country
|
||||
*/
|
||||
public $country;
|
||||
|
||||
/**
|
||||
* @var Employee
|
||||
*/
|
||||
public $employee;
|
||||
|
||||
/**
|
||||
* @var Controller
|
||||
*/
|
||||
public $controller;
|
||||
|
||||
/**
|
||||
* @var Language
|
||||
*/
|
||||
public $language;
|
||||
|
||||
/**
|
||||
* @var Currency
|
||||
*/
|
||||
public $currency;
|
||||
|
||||
/**
|
||||
* @var AdminTab
|
||||
*/
|
||||
public $tab;
|
||||
|
||||
/**
|
||||
* @var Shop
|
||||
*/
|
||||
public $shop;
|
||||
|
||||
/**
|
||||
* @var Smarty
|
||||
*/
|
||||
public $smarty;
|
||||
|
||||
/**
|
||||
* @ var Mobile Detect
|
||||
*/
|
||||
public $mobile_detect;
|
||||
|
||||
/**
|
||||
* @var boolean|string mobile device of the customer
|
||||
*/
|
||||
protected $mobile_device;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
global $cookie, $cart, $smarty, $link;
|
||||
|
||||
$this->tab = null;
|
||||
|
||||
$this->cookie = $cookie;
|
||||
$this->cart = $cart;
|
||||
$this->smarty = $smarty;
|
||||
$this->link = $link;
|
||||
|
||||
$this->controller = new ControllerBackwardModule();
|
||||
if (is_object($cookie))
|
||||
{
|
||||
$this->currency = new Currency((int)$cookie->id_currency);
|
||||
$this->language = new Language((int)$cookie->id_lang);
|
||||
$this->country = new Country((int)$cookie->id_country);
|
||||
$this->customer = new CustomerBackwardModule((int)$cookie->id_customer);
|
||||
$this->employee = new Employee((int)$cookie->id_employee);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->currency = null;
|
||||
$this->language = null;
|
||||
$this->country = null;
|
||||
$this->customer = null;
|
||||
$this->employee = null;
|
||||
}
|
||||
|
||||
$this->shop = new ShopBackwardModule();
|
||||
|
||||
if ((bool)Configuration::get('PS_MOBILE_DEVICE'))
|
||||
$this->mobile_detect = new Mobile_Detect();
|
||||
}
|
||||
|
||||
public function getMobileDevice()
|
||||
{
|
||||
if (is_null($this->mobile_device))
|
||||
{
|
||||
$this->mobile_device = false;
|
||||
if ($this->checkMobileContext())
|
||||
{
|
||||
switch ((int)Configuration::get('PS_MOBILE_DEVICE'))
|
||||
{
|
||||
case 0: // Only for mobile device
|
||||
if ($this->mobile_detect->isMobile() && !$this->mobile_detect->isTablet())
|
||||
$this->mobile_device = true;
|
||||
break;
|
||||
case 1: // Only for touchpads
|
||||
if ($this->mobile_detect->isTablet() && !$this->mobile_detect->isMobile())
|
||||
$this->mobile_device = true;
|
||||
break;
|
||||
case 2: // For touchpad or mobile devices
|
||||
if ($this->mobile_detect->isMobile() || $this->mobile_detect->isTablet())
|
||||
$this->mobile_device = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $this->mobile_device;
|
||||
}
|
||||
|
||||
protected function checkMobileContext()
|
||||
{
|
||||
return isset($_SERVER['HTTP_USER_AGENT'])
|
||||
&& (bool)Configuration::get('PS_MOBILE_DEVICE')
|
||||
&& !Context::getContext()->cookie->no_mobile;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a singleton context
|
||||
*
|
||||
* @return Context
|
||||
*/
|
||||
public static function getContext()
|
||||
{
|
||||
if (!isset(self::$instance))
|
||||
self::$instance = new Context();
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Clone current context
|
||||
*
|
||||
* @return Context
|
||||
*/
|
||||
public function cloneContext()
|
||||
{
|
||||
return clone($this);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int Shop context type (Shop::CONTEXT_ALL, etc.)
|
||||
*/
|
||||
public static function shop()
|
||||
{
|
||||
if (!self::$instance->shop->getContextType())
|
||||
return ShopBackwardModule::CONTEXT_ALL;
|
||||
return self::$instance->shop->getContextType();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Class Shop for Backward compatibility
|
||||
*/
|
||||
class ShopBackwardModule extends Shop
|
||||
{
|
||||
const CONTEXT_ALL = 1;
|
||||
|
||||
public $id = 1;
|
||||
public $id_shop_group = 1;
|
||||
|
||||
|
||||
public function getContextType()
|
||||
{
|
||||
return ShopBackwardModule::CONTEXT_ALL;
|
||||
}
|
||||
|
||||
// Simulate shop for 1.3 / 1.4
|
||||
public function getID()
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get shop theme name
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getTheme()
|
||||
{
|
||||
return _THEME_NAME_;
|
||||
}
|
||||
|
||||
public function isFeatureActive()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Class Controller for a Backward compatibility
|
||||
* Allow to use method declared in 1.5
|
||||
*/
|
||||
class ControllerBackwardModule
|
||||
{
|
||||
/**
|
||||
* @param $js_uri
|
||||
* @return void
|
||||
*/
|
||||
public function addJS($js_uri)
|
||||
{
|
||||
Tools::addJS($js_uri);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $css_uri
|
||||
* @param string $css_media_type
|
||||
* @return void
|
||||
*/
|
||||
public function addCSS($css_uri, $css_media_type = 'all')
|
||||
{
|
||||
Tools::addCSS($css_uri, $css_media_type);
|
||||
}
|
||||
|
||||
public function addJquery()
|
||||
{
|
||||
if (_PS_VERSION_ < '1.5')
|
||||
$this->addJS(_PS_JS_DIR_.'jquery/jquery-1.4.4.min.js');
|
||||
elseif (_PS_VERSION_ >= '1.5')
|
||||
$this->addJS(_PS_JS_DIR_.'jquery/jquery-1.7.2.min.js');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Class Customer for a Backward compatibility
|
||||
* Allow to use method declared in 1.5
|
||||
*/
|
||||
class CustomerBackwardModule extends Customer
|
||||
{
|
||||
public $logged = false;
|
||||
/**
|
||||
* Check customer informations and return customer validity
|
||||
*
|
||||
* @since 1.5.0
|
||||
* @param boolean $with_guest
|
||||
* @return boolean customer validity
|
||||
*/
|
||||
public function isLogged($with_guest = false)
|
||||
{
|
||||
if (!$with_guest && $this->is_guest == 1)
|
||||
return false;
|
||||
|
||||
/* Customer is valid only if it can be load and if object password is the same as database one */
|
||||
if ($this->logged == 1 && $this->id && Validate::isUnsignedId($this->id) && Customer::checkPassword($this->id, $this->passwd))
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
}
|
48
modules/mondialrelay/backward_compatibility/Display.php
Executable file
@ -0,0 +1,48 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2014 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 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/osl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2014 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
/**
|
||||
* Class allow to display tpl on the FO
|
||||
*/
|
||||
class BWDisplay extends FrontController
|
||||
{
|
||||
// Assign template, on 1.4 create it else assign for 1.5
|
||||
public function setTemplate($template)
|
||||
{
|
||||
if (_PS_VERSION_ >= '1.5')
|
||||
parent::setTemplate($template);
|
||||
else
|
||||
$this->template = $template;
|
||||
}
|
||||
|
||||
// Overload displayContent for 1.4
|
||||
public function displayContent()
|
||||
{
|
||||
parent::displayContent();
|
||||
|
||||
echo Context::getContext()->smarty->fetch($this->template);
|
||||
}
|
||||
}
|
1
modules/mondialrelay/backward_compatibility/backward.ini
Executable file
@ -0,0 +1 @@
|
||||
version = 0.4
|
55
modules/mondialrelay/backward_compatibility/backward.php
Executable file
@ -0,0 +1,55 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2014 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 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/osl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2014 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
/**
|
||||
* Backward function compatibility
|
||||
* Need to be called for each module in 1.4
|
||||
*/
|
||||
|
||||
// Get out if the context is already defined
|
||||
if (!in_array('Context', get_declared_classes()))
|
||||
require_once(dirname(__FILE__).'/Context.php');
|
||||
|
||||
// Get out if the Display (BWDisplay to avoid any conflict)) is already defined
|
||||
if (!in_array('BWDisplay', get_declared_classes()))
|
||||
require_once(dirname(__FILE__).'/Display.php');
|
||||
|
||||
// If not under an object we don't have to set the context
|
||||
if (!isset($this))
|
||||
return;
|
||||
else if (isset($this->context))
|
||||
{
|
||||
// If we are under an 1.5 version and backoffice, we have to set some backward variable
|
||||
if (_PS_VERSION_ >= '1.5' && isset($this->context->employee->id) && $this->context->employee->id && isset(AdminController::$currentIndex) && !empty(AdminController::$currentIndex))
|
||||
{
|
||||
global $currentIndex;
|
||||
$currentIndex = AdminController::$currentIndex;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
$this->context = Context::getContext();
|
||||
$this->smarty = $this->context->smarty;
|
35
modules/mondialrelay/backward_compatibility/index.php
Executable file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2014 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 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/osl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2014 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 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;
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
/**
|
||||
* 2007-2015 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
@ -18,20 +18,18 @@
|
||||
* 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-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 6594 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2015 PrestaShop SA
|
||||
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
require_once(dirname(__FILE__).'/../errorCode.php');
|
||||
require_once(realpath(dirname(__FILE__).'/../mondialrelay.php'));
|
||||
require_once(realpath(dirname(__FILE__).'/../lib/nusoap/nusoap.php'));
|
||||
|
||||
/*
|
||||
* This method allow to create any method object to dial more
|
||||
* easyly with the Mondial Reelay WebService
|
||||
* This method allow to create any method object to dial more easyly with the Mondial Reelay WebService
|
||||
*/
|
||||
interface IMondialRelayWSMethod
|
||||
{
|
||||
@ -56,5 +54,4 @@ interface IMondialRelayWSMethod
|
||||
*/
|
||||
public function getResult();
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
/**
|
||||
* 2007-2015 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
@ -18,10 +18,10 @@
|
||||
* 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-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 10348 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2015 PrestaShop SA
|
||||
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
@ -35,245 +35,251 @@ require_once(dirname(__FILE__).'/IMondialRelayWSMethod.php');
|
||||
*/
|
||||
class MRCreateTickets implements IMondialRelayWSMethod
|
||||
{
|
||||
public $class_name = __CLASS__;
|
||||
|
||||
private $_fields = array(
|
||||
'id_mr_selected' => 0,
|
||||
'list' => array(
|
||||
'Enseigne' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9A-Z]{2}[0-9A-Z ]{6}$#'),
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9A-Z]{2}[0-9A-Z ]{6}$#'),
|
||||
'ModeCol' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^(CCC|CDR|CDS|REL)$#'),
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^(CCC|CDR|CDS|REL)$#'),
|
||||
'ModeLiv' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^(LCC|LD1|LDS|24R|ESP|DRI)$#'),
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^(LCC|LD1|LDS|24R|ESP|DRI|HOM)$#'),
|
||||
'NDossier' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^(|[0-9A-Z_ -]{0,15})$#'),
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^(|[0-9A-Z_ -]{0,15})$#'),
|
||||
'NClient' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^(|[0-9A-Z]{0,9})$#'),
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^(|[0-9A-Z]{0,9})$#'),
|
||||
'Expe_Langage' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[A-Z]{2}$#'),
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[A-Z]{2}$#'),
|
||||
'Expe_Ad1' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9A-Z_\-\'., /]{2,32}$#'),
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9A-Z_\-\'., /]{2,32}$#'),
|
||||
'Expe_Ad2' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9A-Z_\-\'., /]{0,32}$#'),
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9A-Z_\-\'., /]{0,32}$#'),
|
||||
'Expe_Ad3' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9A-Z_\-\'., /]{0,32}$#'),
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9A-Z_\-\'., /]{0,32}$#'),
|
||||
'Expe_Ad4' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9A-Z]{2}[0-9A-Z ]{6}$#'),
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9A-Z]{2}[0-9A-Z ]{6}$#'),
|
||||
'Expe_Ville' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[A-Z_\-\' ]{2,26}$#'),
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[A-Z_\-\' 0-9]{2,26}$#'),
|
||||
'Expe_CP' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'params' => array(),
|
||||
'methodValidation' => 'checkZipcodeByCountry'),
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'params' => array(),
|
||||
'methodValidation' => 'checkZipcodeByCountry'),
|
||||
'Expe_Pays' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[A-Z]{2}$#'),
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[A-Z]{2}$#'),
|
||||
'Expe_Tel1' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^((00|\+)[1-9]{2}|0)[0-9][0-9]{7,8}$#'),
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^((00|\+)[1-9]{2}|0)[0-9][0-9]{7,8}$#'),
|
||||
'Expe_Tel2' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^((00|\+)[1-9]{2}|0)[0-9][0-9]{7,8}$#'),
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^((00|\+)[1-9]{2}|0)[0-9][0-9]{7,8}$#'),
|
||||
'Expe_Mail' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[\w\-\.\@_]{0,70}$#'),
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[\w\-\.\@_]{0,70}$#'),
|
||||
'Dest_Langage' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[A-Z]{2}$#'),
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[A-Z]{2}$#'),
|
||||
'Dest_Ad1' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9A-Z_\-\'., /]{2,32}$#'),
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9A-Z_\-\'., /]{2,32}$#'),
|
||||
'Dest_Ad2' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9A-Z_\-\'., /]{2,32}$#'),
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9A-Z_\-\'., /]{2,32}$#'),
|
||||
'Dest_Ad3' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9A-Z_\-\'., /]{2,32}$#'),
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9A-Z_\-\'., /]{2,32}$#'),
|
||||
'Dest_Ad4' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9A-Z_\-\'., /]{0,32}$#'),
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9A-Z_\-\'., /]{0,32}$#'),
|
||||
'Dest_Ville' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[A-Z_\-\' ]{2,26}$#'),
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[A-Z_\-\' 0-9]{2,26}$#'),
|
||||
'Dest_CP' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'params' => array(),
|
||||
'methodValidation' => 'checkZipcodeByCountry'),
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'params' => array(),
|
||||
'methodValidation' => 'checkZipcodeByCountry'),
|
||||
'Dest_Pays' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[A-Z]{2}$#'),
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[A-Z]{2}$#'),
|
||||
'Dest_Tel1' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^((00|\+)[1-9]{2}|0)[0-9][0-9]{7,8}$#'),
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^((00|\+)[1-9]{2}|0)[0-9][0-9]{7,8}$#'),
|
||||
'Dest_Tel2' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^((00|\+)[1-9]{2}|0)[0-9][0-9]{7,8}$#'),
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^((00|\+)[1-9]{2}|0)[0-9][0-9]{7,8}$#'),
|
||||
'Dest_Mail' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[\w\-\.\@_]{0,70}$#'),
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[\w\-\.\@_+]{0,70}$#'),
|
||||
'Poids' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9]{3,7}$#'),
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9]{3,7}$#'),
|
||||
'Longueur' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9]{0,3}$#'),
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9]{0,3}$#'),
|
||||
'Taille' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^(XS|S|M|L|XL|XXL|3XL)$#'),
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^(XS|S|M|L|XL|XXL|3XL)$#'),
|
||||
'NbColis' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9]{1,2}$#'),
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9]{1,2}$#'),
|
||||
'CRT_Valeur' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9]{1,7}$#'),
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9]{1,7}$#'),
|
||||
'CRT_Devise' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^(|EUR)$#'),
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^(|EUR)$#'),
|
||||
'Exp_Valeur' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9]{0,7}$#'),
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9]{0,7}$#'),
|
||||
'Exp_Devise' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^(|EUR)$#'),
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^(|EUR)$#'),
|
||||
'COL_Rel_Pays' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[A-Z]{2}$#'),
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[A-Z]{2}$#'),
|
||||
'COL_Rel' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^(|[0-9]{6})$#'),
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^(|[0-9]{6})$#'),
|
||||
'LIV_Rel_Pays' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[A-Z]{2}$#'),
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[A-Z]{2}$#'),
|
||||
'LIV_Rel' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^(|[0-9]{6})$#'),
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^(|[0-9]{6})$#'),
|
||||
'TAvisage' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^(|O|N)$#'),
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^(|O|N)$#'),
|
||||
'TReprise' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^(|O|N)$#'),
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^(|O|N)$#'),
|
||||
'Montage' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^(|[0-9]{1,3})$#'),
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^(|[0-9]{1,3})$#'),
|
||||
'TRDV' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^(|O|N)$#'),
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^(|O|N)$#'),
|
||||
'Assurance' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^(|[0-9A-Z]{1})$#'),
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^(|[0-9A-Z]{1})$#'),
|
||||
'Instructions' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9A-Z_\-\'., /]{0,31}#'),
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9A-Z_\-\'., /]{0,31}#'),
|
||||
'Security' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9A-Z]{32}$#'),
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9A-Z]{32}$#'),
|
||||
'Texte' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^([^<>&\']{3,30})(\(cr\)[^<>&\']{0,30}){0,9}$#')));
|
||||
|
||||
private $_orderListId = NULL;
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^([^<>&\']{3,30})(\(cr\)[^<>&\']{0,30}){0,9}$#')));
|
||||
|
||||
private $_orderListId = null;
|
||||
private $_totalOrder = 0;
|
||||
private $_weightList = NULL;
|
||||
private $_mondialRelay = NULL;
|
||||
private $_weightList = null;
|
||||
private $_insuranceList = null;
|
||||
private $_mondialrelay = null;
|
||||
private $_fieldsList = array();
|
||||
private $_webServiceKey = '';
|
||||
private $_markCode = '';
|
||||
|
||||
|
||||
private $_resultList = array(
|
||||
'error' => array(),
|
||||
'success' => array());
|
||||
|
||||
private $_webserviceURL = 'http://www.mondialrelay.fr/webservice/Web_Services.asmx?WSDL';
|
||||
|
||||
public function __construct($params)
|
||||
|
||||
private $_webserviceURL = '';
|
||||
|
||||
public function __construct($params, $object)
|
||||
{
|
||||
$this->_orderListId = $params['orderIdList'];
|
||||
$this->_totalOrder = $params['totalOrder'];
|
||||
$this->_weightList = $params['weightList'];
|
||||
$this->_webServiceKey = Configuration::get('MR_KEY_WEBSERVICE');
|
||||
$this->_markCode = Configuration::get('MR_CODE_MARQUE');
|
||||
$this->_insuranceList = isset($params['insuranceList']) ? $params['insuranceList'] : '';
|
||||
$this->_mondialrelay = $object;
|
||||
$this->_webServiceKey = $this->_mondialrelay->account_shop['MR_KEY_WEBSERVICE'];
|
||||
$this->_markCode = $this->_mondialrelay->account_shop['MR_CODE_MARQUE'];
|
||||
$this->class_name = Tools::strtolower($this->class_name);
|
||||
|
||||
$this->_webserviceURL = MondialRelay::MR_URL.'webservice/Web_Services.asmx?WSDL';
|
||||
}
|
||||
|
||||
|
||||
public function __destruct()
|
||||
{
|
||||
unset($this->_mondialRelay);
|
||||
unset($this->_mondialrelay);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Build a correct weight format (NNNNN)
|
||||
*/
|
||||
private function _weightFormat($weight)
|
||||
{
|
||||
while (strlen($weight) != 5)
|
||||
$weight = '0'.$weight;
|
||||
return $weight;
|
||||
{
|
||||
return sprintf("%05s", $weight);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Set the default value to the order paramaters
|
||||
*/
|
||||
private function _setRequestDefaultValue()
|
||||
{
|
||||
$this->_fields['list']['Enseigne']['value'] = Configuration::get('MR_ENSEIGNE_WEBSERVICE');
|
||||
$this->_fields['list']['Expe_Langage']['value'] = Configuration::get('MR_LANGUAGE');
|
||||
{
|
||||
$this->_fields['list']['Enseigne']['value'] = $this->_mondialrelay->account_shop['MR_ENSEIGNE_WEBSERVICE'];
|
||||
$this->_fields['list']['Expe_Langage']['value'] = $this->_mondialrelay->account_shop['MR_LANGUAGE'];
|
||||
$this->_fields['list']['Expe_Ad1']['value'] = Configuration::get('PS_SHOP_NAME');
|
||||
$this->_fields['list']['Expe_Ad3']['value'] = Configuration::get('PS_SHOP_ADDR1');
|
||||
// Deleted, cause to many failed for the process
|
||||
@ -281,13 +287,15 @@ class MRCreateTickets implements IMondialRelayWSMethod
|
||||
$this->_fields['list']['Expe_Ville']['value'] = Configuration::get('PS_SHOP_CITY');
|
||||
$this->_fields['list']['Expe_CP']['value'] = Configuration::get('PS_SHOP_CODE');
|
||||
$this->_fields['list']['Expe_CP']['params']['id_country'] = Configuration::get('PS_COUNTRY_DEFAULT');
|
||||
|
||||
if (_PS_VERSION_ >= '1.4')
|
||||
|
||||
if (version_compare(_PS_VERSION_, '1.4', '>='))
|
||||
{
|
||||
$this->_fields['list']['Expe_Pays']['value'] = Country::getIsoById(Configuration::get('PS_SHOP_COUNTRY_ID'));
|
||||
$this->_fields['list']['Expe_CP']['params']['id_country'] = Configuration::get('PS_SHOP_COUNTRY_ID');
|
||||
}
|
||||
else
|
||||
$this->_fields['list']['Expe_Pays']['value'] = substr(Configuration::get('PS_SHOP_COUNTRY'), 0, 2);
|
||||
|
||||
$this->_fields['list']['Expe_Tel1']['value'] = str_replace(array('.', ' ', '-', '_'), '', Configuration::get('PS_SHOP_PHONE'));
|
||||
$this->_fields['list']['Expe_Pays']['value'] = Tools::substr(Configuration::get('PS_SHOP_COUNTRY'), 0, 2);
|
||||
$this->_fields['list']['Expe_Tel1']['value'] = MRTools::getFormatedPhone(Configuration::get('PS_SHOP_PHONE'));
|
||||
$this->_fields['list']['Expe_Mail']['value'] = Configuration::get('PS_SHOP_EMAIL');
|
||||
$this->_fields['list']['NbColis']['value'] = 1;
|
||||
$this->_fields['list']['CRT_Valeur']['value'] = 0;
|
||||
@ -300,49 +308,56 @@ class MRCreateTickets implements IMondialRelayWSMethod
|
||||
*/
|
||||
public function init()
|
||||
{
|
||||
$this->_mondialRelay = new MondialRelay();
|
||||
|
||||
if ($this->_totalOrder == 0)
|
||||
throw new Exception($this->_mondialRelay->l('Please select at least one order'));
|
||||
|
||||
throw new Exception($this->_mondialrelay->l('Please select at least one order', $this->class_name));
|
||||
|
||||
$this->_setRequestDefaultValue();
|
||||
if (count($orderListDetails = $this->_mondialRelay->getOrders($this->_orderListId)))
|
||||
if (count($orderListDetails = $this->_mondialrelay->getOrders($this->_orderListId)))
|
||||
{
|
||||
foreach ($orderListDetails as $orderDetail)
|
||||
{
|
||||
{
|
||||
// Storage temporary
|
||||
$base = $this->_fields;
|
||||
$tmp = &$base['list'];
|
||||
|
||||
|
||||
$deliveriesAddress = new Address($orderDetail['id_address_delivery']);
|
||||
$customer = new Customer($orderDetail['id_customer']);
|
||||
|
||||
|
||||
// Store the weight order set by the user
|
||||
foreach($this->_weightList as $orderWeightInfos)
|
||||
|
||||
foreach ($this->_weightList as $orderWeightInfos)
|
||||
{
|
||||
$detail = explode('-', $orderWeightInfos);
|
||||
if (count($detail) == 2 && $detail[1] == $orderDetail['id_order'])
|
||||
$tmp['Poids']['value'] = $this->_weightFormat($detail[0]);
|
||||
$tmp['Poids']['value'] = (float)$this->_weightFormat($detail[0]);
|
||||
}
|
||||
|
||||
foreach ($this->_insuranceList as $insurance)
|
||||
{
|
||||
$detail = explode('-', $insurance);
|
||||
if (count($detail) == 2 && $detail[1] == $orderDetail['id_order'])
|
||||
$tmp['Assurance']['value'] = (int)($detail[0]);
|
||||
else
|
||||
$tmp['Assurance']['value'] = $orderDetail['mr_ModeAss'];
|
||||
}
|
||||
$dest_tel = (!empty($deliveriesAddress->phone)) ? MRTools::getFormatedPhone($deliveriesAddress->phone) : '';
|
||||
$dest_tel2 = (!empty($deliveriesAddress->phone_mobile)) ? MRTools::getFormatedPhone($deliveriesAddress->phone_mobile) : '';
|
||||
$destIsoCode = Country::getIsoById($deliveriesAddress->id_country);
|
||||
$tmp['ModeCol']['value'] = $orderDetail['mr_ModeCol'];
|
||||
$tmp['ModeLiv']['value'] = $orderDetail['mr_ModeLiv'];
|
||||
$tmp['NDossier']['value'] = $orderDetail['id_order'];
|
||||
$tmp['NClient']['value'] = $orderDetail['id_customer'];
|
||||
$tmp['Dest_Langage']['value'] = 'FR'; //Language::getIsoById($orderDetail['id_lang']);
|
||||
$tmp['Dest_Ad1']['value'] = substr($deliveriesAddress->firstname.' '.$deliveriesAddress->lastname, 0, 32);;
|
||||
$tmp['Dest_Ad2']['value'] = substr($deliveriesAddress->address2, 0, 32);
|
||||
$tmp['Dest_Ad3']['value'] = substr($deliveriesAddress->address1, 0, 32);
|
||||
$tmp['Dest_Ad1']['value'] = preg_replace(MRTools::REGEX_CLEAN_ADDR, '', Tools::substr(MRTools::removeAccents($deliveriesAddress->firstname.' '.$deliveriesAddress->lastname), 0, 32));
|
||||
$tmp['Dest_Ad2']['value'] = preg_replace(MRTools::REGEX_CLEAN_ADDR, '', Tools::substr(MRTools::removeAccents($deliveriesAddress->address2), 0, 32));
|
||||
$tmp['Dest_Ad3']['value'] = preg_replace(MRTools::REGEX_CLEAN_ADDR, '', Tools::substr(MRTools::removeAccents($deliveriesAddress->address1), 0, 32));
|
||||
$tmp['Dest_Ville']['value'] = $deliveriesAddress->city;
|
||||
$tmp['Dest_CP']['value'] = $deliveriesAddress->postcode;
|
||||
$tmp['Dest_CP']['params']['id_country'] = $deliveriesAddress->id_country;
|
||||
$tmp['Dest_Pays']['value'] = $destIsoCode;
|
||||
$tmp['Dest_Tel1']['value'] = str_replace(array('.', ' ', '-', '_'), '', $deliveriesAddress->phone);
|
||||
$tmp['Dest_Tel2']['value'] = str_replace(array('.', ' ', '-', '_'), '', $deliveriesAddress->phone_mobile);
|
||||
$tmp['Dest_Tel1']['value'] = $dest_tel;
|
||||
$tmp['Dest_Tel2']['value'] = $dest_tel2;
|
||||
$tmp['Dest_Mail']['value'] = $customer->email;
|
||||
$tmp['Assurance']['value'] = $orderDetail['mr_ModeAss'];
|
||||
if ($orderDetail['MR_Selected_Num'] != 'LD1' && $orderDetail['MR_Selected_Num'] != 'LDS')
|
||||
if ($orderDetail['mr_ModeLiv'] != 'LD1' && $orderDetail['mr_ModeLiv'] != 'LDS' && $orderDetail['mr_ModeLiv'] != 'HOM')
|
||||
{
|
||||
$tmp['LIV_Rel_Pays']['value'] = $orderDetail['MR_Selected_Pays'];
|
||||
$tmp['LIV_Rel']['value'] = $orderDetail['MR_Selected_Num'];
|
||||
@ -350,7 +365,7 @@ class MRCreateTickets implements IMondialRelayWSMethod
|
||||
|
||||
// Store the necessary information to the root case table
|
||||
$base['id_mr_selected'] = $orderDetail['id_mr_selected'];
|
||||
|
||||
|
||||
// Add the temporary values to a field list for multiple request
|
||||
$this->_fieldsList[] = $base;
|
||||
unset($deliveriesAddress);
|
||||
@ -359,7 +374,7 @@ class MRCreateTickets implements IMondialRelayWSMethod
|
||||
$this->_generateMD5SecurityKey();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Generate the MD5 key for each param list
|
||||
*/
|
||||
@ -367,79 +382,98 @@ class MRCreateTickets implements IMondialRelayWSMethod
|
||||
{
|
||||
// RootCase is the array case where the main information are stored
|
||||
// it's an array containing id_mr_selected and an array with the necessary fields
|
||||
foreach($this->_fieldsList as &$rootCase)
|
||||
foreach ($this->_fieldsList as &$rootCase)
|
||||
{
|
||||
$concatenationValue = '';
|
||||
foreach($rootCase['list'] as $paramName => &$valueDetailed)
|
||||
if ($paramName != 'Texte' && $paramName != 'Security')
|
||||
foreach ($rootCase['list'] as $paramName => &$valueDetailed)
|
||||
if ($paramName != 'Texte' && $paramName != 'Security')
|
||||
{
|
||||
// Mac server make an empty string instead of a cleaned string
|
||||
// TODO : test on windows and linux server
|
||||
$cleanedString = MRTools::replaceAccentedCharacters($valueDetailed['value']);
|
||||
$valueDetailed['value'] = !empty($cleanedString) ? strtoupper($cleanedString) : strtoupper($valueDetailed['value']);
|
||||
|
||||
$cleanedString = MRTools::removeAccents($valueDetailed['value']);
|
||||
$valueDetailed['value'] = !empty($cleanedString) ? Tools::strtoupper($cleanedString) : Tools::strtoupper($valueDetailed['value']);
|
||||
|
||||
// Call a pointer function if exist to do different test
|
||||
if (isset($valueDetailed['methodValidation']) &&
|
||||
method_exists('MRTools', $valueDetailed['methodValidation']) &&
|
||||
isset($valueDetailed['params']) &&
|
||||
MRTools::$valueDetailed['methodValidation']($valueDetailed['value'], $valueDetailed['params']))
|
||||
if (isset($valueDetailed['methodValidation']) && method_exists('MRTools', $valueDetailed['methodValidation']) && isset($valueDetailed['params']) && MRTools::$valueDetailed['methodValidation']($valueDetailed['value'], $valueDetailed['params']))
|
||||
$concatenationValue .= $valueDetailed['value'];
|
||||
// Use simple Regex test given by MondialRelay
|
||||
else if (isset($valueDetailed['regexValidation']) &&
|
||||
preg_match($valueDetailed['regexValidation'], $valueDetailed['value'], $matches))
|
||||
else if (isset($valueDetailed['regexValidation']) && preg_match($valueDetailed['regexValidation'], $valueDetailed['value'], $matches))
|
||||
$concatenationValue .= $valueDetailed['value'];
|
||||
// If the key is required, we set an error, else it's skipped
|
||||
else if ((!strlen($valueDetailed['value']) && $valueDetailed['required']) || strlen($valueDetailed['value']))
|
||||
// If the key is required, we set an error, else it's skipped
|
||||
else if ((!Tools::strlen($valueDetailed['value']) && $valueDetailed['required']) || Tools::strlen($valueDetailed['value']))
|
||||
{
|
||||
if (empty($valueDetailed['value']))
|
||||
$error = $this->_mondialRelay->l('This key').' ['.$paramName.'] '.$this->_mondialRelay->l('is empty and need to be filled');
|
||||
$error = $this->_mondialrelay->l('This key', $this->class_name).' ['.$paramName.'] '.$this->_mondialrelay->l('is empty and need to be filled', $this->class_name);
|
||||
else
|
||||
$error = 'This key ['.$paramName.'] hasn\'t a valid value format : '.$valueDetailed['value'];
|
||||
$error = 'This key ['.$paramName.'] hasn not a valid value format : '.$valueDetailed['value'];
|
||||
$this->_resultList['error'][$rootCase['list']['NDossier']['value']][] = $error;
|
||||
}
|
||||
}
|
||||
$concatenationValue .= $this->_webServiceKey;
|
||||
$rootCase['list']['Security']['value' ] = strtoupper(md5($concatenationValue));
|
||||
$concatenationValue .= $this->_webServiceKey;
|
||||
$rootCase['list']['Security']['value'] = Tools::strtoupper(md5($concatenationValue));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Update the tables used and send mail with the order history
|
||||
*/
|
||||
private function _updateTable($params, $expeditionNum, $ticketURL, $trackingURL, $id_mr_selected)
|
||||
{
|
||||
global $cookie;
|
||||
|
||||
Db::getInstance()->Execute('
|
||||
$sql = '
|
||||
UPDATE `'._DB_PREFIX_.'mr_selected`
|
||||
SET `MR_poids` = \''.pSQL($params['Poids']).'\',
|
||||
`MR_insurance` = \''.pSQL($params['Assurance']).'\',
|
||||
`exp_number` = \''.pSQL($expeditionNum).'\',
|
||||
`url_etiquette` = \''.pSQL($ticketURL).'\',
|
||||
`url_suivi` = \''.pSQL($trackingURL).'\'
|
||||
WHERE id_mr_selected = '.(int)$id_mr_selected);
|
||||
|
||||
WHERE id_mr_selected = '.(int)$id_mr_selected;
|
||||
Db::getInstance()->execute($sql);
|
||||
|
||||
// NDossier contains the id_order
|
||||
$order = new Order($params['NDossier']);
|
||||
|
||||
// Update the database for order and orderHistory
|
||||
|
||||
// Update the database for order and orderHistory
|
||||
$order->shipping_number = $expeditionNum;
|
||||
$order->update();
|
||||
|
||||
if (version_compare(_PS_VERSION_, '1.5', '>='))
|
||||
{
|
||||
//Retrieve Order Carrier
|
||||
$sql = 'SELECT `id_order_carrier`
|
||||
FROM `'._DB_PREFIX_.'order_carrier`
|
||||
WHERE `id_order` = '.(int)$order->id;
|
||||
|
||||
$id_order_carrier = Db::getInstance()->getValue($sql);
|
||||
|
||||
if($id_order_carrier)
|
||||
{
|
||||
$order_carrier = new OrderCarrier((int)$id_order_carrier);
|
||||
if(Validate::isLoadedObject($order_carrier))
|
||||
{
|
||||
$order_carrier->tracking_number = pSQL($expeditionNum);
|
||||
$order_carrier->update();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$templateVars = array('{followup}' => $trackingURL);
|
||||
$orderState = (Configuration::get('PS_OS_SHIPPING')) ?
|
||||
Configuration::get('PS_OS_SHIPPING') :
|
||||
$orderState = (Configuration::get('PS_OS_SHIPPING')) ?
|
||||
Configuration::get('PS_OS_SHIPPING') :
|
||||
_PS_OS_SHIPPING_;
|
||||
|
||||
|
||||
$history = new OrderHistory();
|
||||
$history->id_order = (int)$params['NDossier'];
|
||||
$history->changeIdOrderState($orderState, (int)$params['NDossier']);
|
||||
$history->id_employee = (int)$cookie->id_employee;
|
||||
if (version_compare(_PS_VERSION_, '1.5.2', '>='))
|
||||
$history->changeIdOrderState((int)$orderState, $order);
|
||||
else
|
||||
$history->changeIdOrderState((int)$orderState, (int)($params['NDossier']));
|
||||
$history->id_employee = (isset(Context::getContext()->employee->id) ? (int)Context::getContext()->employee->id : '');
|
||||
$history->addWithemail(true, $templateVars);
|
||||
|
||||
unset($order);
|
||||
unset($order_carrier);
|
||||
unset($history);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Manage the return value of the webservice, handle the errors or build the
|
||||
* succeed message
|
||||
@ -448,139 +482,128 @@ class MRCreateTickets implements IMondialRelayWSMethod
|
||||
{
|
||||
$errors = &$this->_resultList['error'][$params['NDossier']];
|
||||
$success = &$this->_resultList['success'][$params['NDossier']];
|
||||
|
||||
if ($client->fault)
|
||||
$errors[] = $this->_mondialRelay->l('It seems the request isn\'t valid:').
|
||||
$result;
|
||||
|
||||
$result = $result['WSI2_CreationEtiquetteResult'];
|
||||
if (($errorNumber = $result['STAT']) != 0)
|
||||
$result = $result->WSI2_CreationEtiquetteResult;
|
||||
if (($errorNumber = $result->STAT) != 0)
|
||||
{
|
||||
$errors[] = $this->_mondialRelay->l('There is an error number : ').$errorNumber;
|
||||
$errors[] = $this->_mondialRelay->l('Details : ').
|
||||
$this->_mondialRelay->getErrorCodeDetail($errorNumber);
|
||||
$errors[] = $this->_mondialrelay->l('There is an error number : ', $this->class_name).$errorNumber;
|
||||
$errors[] = $this->_mondialrelay->l('Details : ', $this->class_name).
|
||||
$this->_mondialrelay->getErrorCodeDetail($errorNumber);
|
||||
}
|
||||
else
|
||||
{
|
||||
$baseURL = 'http://www.mondialrelay.fr/';
|
||||
$expedition = $result['ExpeditionNum'];
|
||||
$securityKey = strtoupper(md5('<'.$params['Enseigne'].$this->_markCode.
|
||||
$baseURL = MondialRelay::MR_URL;
|
||||
$expedition = $result->ExpeditionNum;
|
||||
$securityKey = Tools::strtoupper(md5('<'.$params['Enseigne'].$this->_markCode.
|
||||
'>'.$expedition.'<'.$this->_webServiceKey.'>'));
|
||||
$ticketURL = $baseURL.$result['URL_Etiquette'];
|
||||
$ticketURL = $baseURL.$result->URL_Etiquette;
|
||||
$trackingURL = $baseURL.
|
||||
'lg_fr/espaces/url/popup_exp_details.aspx?cmrq='.$params['Enseigne'].
|
||||
$this->_markCode.'&nexp='.$expedition.'&crc='.$securityKey;
|
||||
|
||||
$success['displayExpedition'] = $this->_mondialRelay->l('Expedition Number : ') . $expedition;
|
||||
$success['displayTicketURL'] = $this->_mondialRelay->l('Ticket URL : ') . $ticketURL;
|
||||
$success['displayTrackingURL'] = $this->_mondialRelay->l('Tracking URL: ') . $trackingURL;
|
||||
$success['expeditionNumber'] = $expedition;
|
||||
'public/permanent/tracking.aspx?ens='.$params['Enseigne'].$this->_markCode.'&exp='.$expedition.'&language='.Configuration::get('PS_LANG_DEFAULT').'&crc='.$securityKey;
|
||||
|
||||
$this->_updateTable($params, $expedition, $ticketURL, $trackingURL, $id_mr_selected);
|
||||
$success['displayExpedition'] = $this->_mondialrelay->l('Expedition Number : ', $this->class_name).$expedition;
|
||||
$success['displayTicketURL'] = $this->_mondialrelay->l('Ticket URL : ', $this->class_name).$ticketURL;
|
||||
$success['displayTrackingURL'] = $this->_mondialrelay->l('Tracking URL: ', $this->class_name).$trackingURL;
|
||||
$success['expeditionNumber'] = $expedition;
|
||||
|
||||
$this->_updateTable($params, $expedition, $ticketURL, $trackingURL, $id_mr_selected);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Send one or multiple request to the webservice
|
||||
*/
|
||||
public function send()
|
||||
{
|
||||
if ($client = new nusoap_client($this->_webserviceURL, true))
|
||||
if ($client = new SoapClient($this->_webserviceURL))
|
||||
{
|
||||
$client->soap_defencoding = 'UTF-8';
|
||||
$client->decode_utf8 = false;
|
||||
|
||||
foreach($this->_fieldsList as $rootCase)
|
||||
|
||||
foreach ($this->_fieldsList as $rootCase)
|
||||
{
|
||||
$params = $this->_getSimpleParamArray($rootCase['list']);
|
||||
$result = $client->call(
|
||||
'WSI2_CreationEtiquette',
|
||||
$params,
|
||||
'http://www.mondialrelay.fr/webservice/',
|
||||
'http://www.mondialrelay.fr/webservice/WSI2_CreationEtiquette');
|
||||
|
||||
$result = $client->WSI2_CreationEtiquette($params);
|
||||
$this->_parseResult($client, $result, $params, $rootCase['id_mr_selected']);
|
||||
}
|
||||
unset($client);
|
||||
Configuration::updateValue('MONDIALRELAY_CONFIGURATION_OK', true);
|
||||
}
|
||||
else
|
||||
throw new Exception($this->_mondialRelay->l('The Mondial Relay webservice isn\'t currently reliable'));
|
||||
throw new Exception($this->_mondialrelay->l('The Mondial Relay webservice is not currently reliable', $this->class_name));
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** Check if the shop parameter are currently well configured
|
||||
*/
|
||||
public function checkPreValidation()
|
||||
{
|
||||
$errorList = array('error' => array(), 'warn' => array());
|
||||
|
||||
if (!$this->_mondialRelay)
|
||||
$this->_mondialRelay = new MondialRelay();
|
||||
|
||||
|
||||
$list = array(
|
||||
'Expe_Langage' => array(
|
||||
'value' => Configuration::get('MR_LANGUAGE'),
|
||||
'error' => $this->_mondialRelay->l('Please check your language configuration')),
|
||||
'value' => $this->_mondialrelay->account_shop['MR_LANGUAGE'],
|
||||
'error' => $this->_mondialrelay->l('Please check your language configuration', $this->class_name)),
|
||||
'Expe_Ad1' => array(
|
||||
'value' => Configuration::get('PS_SHOP_NAME'),
|
||||
'error' => $this->_mondialRelay->l('Please check your shop name configuration')),
|
||||
'error' => $this->_mondialrelay->l('Please check your shop name configuration', $this->class_name)),
|
||||
'Expe_Ad3' => array(
|
||||
'value' => Configuration::get('PS_SHOP_ADDR1'),
|
||||
'error' => $this->_mondialRelay->l('Please check your address 1 configuration')),
|
||||
'error' => $this->_mondialrelay->l('Please check your address 1 configuration', $this->class_name)),
|
||||
'Expe_Ville' => array(
|
||||
'value' => Configuration::get('PS_SHOP_CITY'),
|
||||
'error' => $this->_mondialRelay->l('Please check your city configuration')),
|
||||
'error' => $this->_mondialrelay->l('Please check your city configuration', $this->class_name)),
|
||||
'Expe_CP' => array(
|
||||
'value' => Configuration::get('PS_SHOP_CODE'),
|
||||
'error' => $this->_mondialRelay->l('Please check your zipcode configuration'),
|
||||
'warn' => $this->_mondialRelay->l('It seems the layout of your zipcode country is not configured or you didn\'t set a right zipcode')),
|
||||
'error' => $this->_mondialrelay->l('Please check your zipcode configuration', $this->class_name)),
|
||||
'Expe_Pays' => array(
|
||||
'value' => ((_PS_VERSION_ >= '1.4') ?
|
||||
Country::getIsoById(Configuration::get('PS_SHOP_COUNTRY_ID')) :
|
||||
substr(Configuration::get('PS_SHOP_COUNTRY'), 0, 2)),
|
||||
'error' => $this->_mondialRelay->l('Please check your country configuration')),
|
||||
'value' => ((version_compare(_PS_VERSION_, '1.4', '>=')) ?
|
||||
Country::getIsoById(Configuration::get('PS_SHOP_COUNTRY_ID')) :
|
||||
Tools::substr(Configuration::get('PS_SHOP_COUNTRY'), 0, 2)),
|
||||
'error' => $this->_mondialrelay->l('Please check your country configuration', $this->class_name)),
|
||||
'Expe_Tel1' => array(
|
||||
'value' => str_replace(array('.', ' ', '-'), '', Configuration::get('PS_SHOP_PHONE')),
|
||||
'error' => $this->_mondialRelay->l('Please check your Phone configuration')),
|
||||
'value' => MRTools::getFormatedPhone(Configuration::get('PS_SHOP_PHONE')),
|
||||
'error' => $this->_mondialrelay->l('Please check your Phone configuration', $this->class_name)),
|
||||
'Expe_Mail' => array(
|
||||
'value' => Configuration::get('PS_SHOP_EMAIL'),
|
||||
'error' => $this->_mondialRelay->l('Please check your mail configuration')));
|
||||
|
||||
foreach($list as $name => $tab)
|
||||
{
|
||||
'error' => $this->_mondialrelay->l('Please check your mail configuration', $this->class_name)));
|
||||
|
||||
foreach ($list as $name => $tab)
|
||||
{
|
||||
// Mac server make an empty string instead of a cleaned string
|
||||
// TODO : test on windows and linux server
|
||||
$cleanedString = MRTools::replaceAccentedCharacters($tab['value']);
|
||||
$tab['value'] = !empty($cleanedString) ? strtoupper($cleanedString) : strtoupper($tab['value']);
|
||||
|
||||
$cleanedString = MRTools::removeAccents($tab['value']);
|
||||
$tab['value'] = !empty($cleanedString) ? Tools::strtoupper($cleanedString) : Tools::strtoupper($tab['value']);
|
||||
|
||||
if ($name == 'Expe_CP')
|
||||
{
|
||||
if (!($zipcodeError = MRTools::checkZipcodeByCountry($tab['value'], array(
|
||||
'id_country' => Configuration::get('PS_COUNTRY_DEFAULT')))))
|
||||
$errorList['error'][$name] = $tab['error'];
|
||||
else if ($zipcodeError < 0)
|
||||
$errorList['warn'][$name] = $tab['warn'];
|
||||
if (version_compare(_PS_VERSION_, '1.4', '>='))
|
||||
{
|
||||
if (!(MRTools::checkZipcodeByCountry($tab['value'], array(
|
||||
'id_country' => Configuration::get('PS_SHOP_COUNTRY_ID')))))
|
||||
$errorList['error'][$name] = $tab['error'];
|
||||
}
|
||||
else
|
||||
$errorList['warn'][$name] = $this->_mondialrelay->l('Post code cannot be validated with PrestaShop versions older than 1.4', $this->class_name);
|
||||
}
|
||||
else if (isset($this->_fields['list'][$name]['regexValidation']) &&
|
||||
(!preg_match($this->_fields['list'][$name]['regexValidation'], $tab['value'], $matches)))
|
||||
else if (isset($this->_fields['list'][$name]['regexValidation']) &&
|
||||
(!preg_match($this->_fields['list'][$name]['regexValidation'], $tab['value'], $matches)))
|
||||
$errorList['error'][$name] = $tab['error'];
|
||||
}
|
||||
return $errorList;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Get the values with associated fields name
|
||||
* @fields : array containing multiple values information
|
||||
*/
|
||||
* Get the values with associated fields name
|
||||
* @fields : array containing multiple values information
|
||||
*/
|
||||
private function _getSimpleParamArray($fields)
|
||||
{
|
||||
$params = array();
|
||||
|
||||
foreach($fields as $keyName => $valueDetailed)
|
||||
|
||||
foreach ($fields as $keyName => $valueDetailed)
|
||||
$params[$keyName] = $valueDetailed['value'];
|
||||
return $params;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Return the fields list
|
||||
*/
|
||||
@ -588,7 +611,7 @@ class MRCreateTickets implements IMondialRelayWSMethod
|
||||
{
|
||||
return $this->_fieldsList['list'];
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Return the result of one or multiple sent requests
|
||||
*/
|
||||
@ -596,7 +619,7 @@ class MRCreateTickets implements IMondialRelayWSMethod
|
||||
{
|
||||
return $this->_resultList;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Return which number order of the list is currently managed
|
||||
*/
|
||||
|
191
modules/mondialrelay/classes/MRDownloadPDF.php
Executable file
@ -0,0 +1,191 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2015 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-2015 PrestaShop SA
|
||||
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
require_once(dirname(__FILE__).'/IMondialRelayWSMethod.php');
|
||||
|
||||
/*
|
||||
* Allow to create tickets - 'WSI2_CreationEtiquette'
|
||||
*/
|
||||
class MRDownloadPDF implements IMondialRelayWSMethod
|
||||
{
|
||||
public $class_name = __CLASS__;
|
||||
|
||||
private $_fields = array(
|
||||
'list' => array(
|
||||
'Enseigne' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9A-Z]{2}[0-9A-Z ]{6}$#'),
|
||||
'Expeditions' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9]{8}(;[0-9]{8})*$#'),
|
||||
'Langue' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[A-Z]{2}$#'),
|
||||
'Security' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9A-Z]{32}$#')));
|
||||
|
||||
|
||||
private $_mondialrelay = null;
|
||||
private $_fieldsList = array();
|
||||
private $_webServiceKey = '';
|
||||
private $_markCode = '';
|
||||
private $Expeditions = '';
|
||||
|
||||
private $_resultList = array(
|
||||
'error' => array(),
|
||||
'success' => array());
|
||||
|
||||
private $_webserviceURL = '';
|
||||
|
||||
public function __construct($params, $object)
|
||||
{
|
||||
$this->Expeditions = $params['Expeditions'];
|
||||
$this->_mondialrelay = $object;
|
||||
$this->_webServiceKey = $this->_mondialrelay->account_shop['MR_KEY_WEBSERVICE'];
|
||||
$this->_markCode = $this->_mondialrelay->account_shop['MR_CODE_MARQUE'];
|
||||
$this->class_name = Tools::strtolower($this->class_name);
|
||||
$this->_webserviceURL = MondialRelay::MR_URL.'webservice/Web_Services.asmx?WSDL';
|
||||
}
|
||||
|
||||
public function __destruct()
|
||||
{
|
||||
unset($this->_mondialrelay);
|
||||
}
|
||||
|
||||
/*
|
||||
* Initiate the data needed to be send properly
|
||||
* Can manage a list of data for multiple request
|
||||
*/
|
||||
public function init()
|
||||
{
|
||||
$this->_fields['list']['Enseigne']['value'] = $this->_mondialrelay->account_shop['MR_ENSEIGNE_WEBSERVICE'];
|
||||
$this->_fields['list']['Expeditions']['value'] = $this->Expeditions;
|
||||
$this->_fields['list']['Langue']['value'] = $this->_mondialrelay->account_shop['MR_LANGUAGE'];
|
||||
$this->_fieldsList[] = $this->_fields;
|
||||
$this->_generateMD5SecurityKey();
|
||||
}
|
||||
|
||||
/*
|
||||
* Generate the MD5 key for each param list
|
||||
*/
|
||||
private function _generateMD5SecurityKey()
|
||||
{
|
||||
foreach ($this->_fieldsList as &$rootCase)
|
||||
{
|
||||
$concatenationValue = '';
|
||||
foreach ($rootCase['list'] as $paramName => &$valueDetailed)
|
||||
if ($paramName != 'Texte' && $paramName != 'Security')
|
||||
{
|
||||
$valueDetailed['value'] = Tools::strtoupper($valueDetailed['value']);
|
||||
if (preg_match($valueDetailed['regexValidation'], $valueDetailed['value'], $matches))
|
||||
$concatenationValue .= $valueDetailed['value'];
|
||||
elseif ((!Tools::strlen($valueDetailed['value']) && $valueDetailed['required']) || Tools::strlen($valueDetailed['value']))
|
||||
{
|
||||
$error = $this->_mondialrelay->l('This key').' ['.$paramName.'] '.$this->_mondialrelay->l('hasn\'t a valide value format').' : '.$valueDetailed['value'];
|
||||
$this->_resultList['error'][] = $error;
|
||||
}
|
||||
}
|
||||
$concatenationValue .= $this->_webServiceKey;
|
||||
$rootCase['list']['Security']['value'] = Tools::strtoupper(md5($concatenationValue));
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Manage the return value of the webservice, handle the errors or build the
|
||||
* succeed message
|
||||
*/
|
||||
private function _parseResult($client, $result, $params)
|
||||
{
|
||||
$errors = &$this->_resultList['error'][];
|
||||
$success = &$this->_resultList['success'][];
|
||||
$result = $result->WSI2_GetEtiquettesResult;
|
||||
if (($errorNumber = $result->STAT) != 0)
|
||||
{
|
||||
$errors[] = $this->_mondialrelay->l('There is an error number : ', $this->class_name).$errorNumber;
|
||||
$errors[] = $this->_mondialrelay->l('Details : ', $this->class_name).
|
||||
$this->_mondialrelay->getErrorCodeDetail($errorNumber);
|
||||
}
|
||||
else
|
||||
{
|
||||
$baseURL = 'http://www.mondialrelay.fr';
|
||||
$success['URL_PDF_A4'] = $baseURL.$result->URL_PDF_A4;
|
||||
$success['URL_PDF_A5'] = $baseURL.$result->URL_PDF_A5;
|
||||
$success['URL_PDF_10x15'] = $baseURL.str_replace('format=A4', 'format=10x15', $result->URL_PDF_A4);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Send one or multiple request to the webservice
|
||||
*/
|
||||
public function send()
|
||||
{
|
||||
if ($client = new SoapClient($this->_webserviceURL))
|
||||
{
|
||||
$client->soap_defencoding = 'UTF-8';
|
||||
$client->decode_utf8 = false;
|
||||
foreach ($this->_fieldsList as $rootCase)
|
||||
{
|
||||
$params = $this->_getSimpleParamArray($rootCase['list']);
|
||||
$result = $client->WSI2_GetEtiquettes($params);
|
||||
$this->_parseResult($client, $result, $params);
|
||||
}
|
||||
unset($client);
|
||||
}
|
||||
else
|
||||
throw new Exception($this->_mondialrelay->l('The Mondial Relay webservice isn\'t currently reliable'));
|
||||
}
|
||||
|
||||
/*
|
||||
* Return the fields list
|
||||
*/
|
||||
public function getFieldsList()
|
||||
{
|
||||
return $this->_fieldsList['list'];
|
||||
}
|
||||
|
||||
/*
|
||||
* Return the result of one or multiple sent requests
|
||||
*/
|
||||
public function getResult()
|
||||
{
|
||||
return $this->_resultList;
|
||||
}
|
||||
|
||||
private function _getSimpleParamArray($fields)
|
||||
{
|
||||
$params = array();
|
||||
|
||||
foreach ($fields as $keyName => $valueDetailed)
|
||||
$params[$keyName] = $valueDetailed['value'];
|
||||
return $params;
|
||||
}
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
/**
|
||||
* 2007-2015 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
@ -18,10 +18,10 @@
|
||||
* 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-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 7086 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2015 PrestaShop SA
|
||||
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
@ -35,7 +35,7 @@ require_once(dirname(__FILE__).'/IMondialRelayWSMethod.php');
|
||||
*/
|
||||
class MRGetRelayPoint implements IMondialRelayWSMethod
|
||||
{
|
||||
// Params is required if you use a pointer function
|
||||
/*Params is required if you use a pointer function*/
|
||||
private $_fields = array(
|
||||
'list' => array(
|
||||
'Enseigne' => array(
|
||||
@ -49,7 +49,7 @@ class MRGetRelayPoint implements IMondialRelayWSMethod
|
||||
'Ville' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[A-Z_\-\' ]{2,25}$#'),
|
||||
'regexValidation' => '#^[A-Z_\-\' 0-9]{2,25}$#'),
|
||||
'CP' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
@ -62,11 +62,11 @@ class MRGetRelayPoint implements IMondialRelayWSMethod
|
||||
'Poids' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9]{1,6}$#'),
|
||||
'regexValidation' => '#^[0-9]{3,7}$#'),
|
||||
'Action' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^(REL|24R|ESP|DRI)$#'),
|
||||
'regexValidation' => '#^(REL|24R|ESP|DRI)$#'),
|
||||
'Security' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
@ -75,7 +75,7 @@ class MRGetRelayPoint implements IMondialRelayWSMethod
|
||||
private $_id_address_delivery = 0;
|
||||
private $_weight = 0;
|
||||
private $_webServiceKey = '';
|
||||
private $_mondialRelay = NULL;
|
||||
private $_mondialRelay = null;
|
||||
private $_id_carrier = 0;
|
||||
private $_id_delivery_country = 0;
|
||||
|
||||
@ -83,34 +83,36 @@ class MRGetRelayPoint implements IMondialRelayWSMethod
|
||||
'error' => array(),
|
||||
'success' => array());
|
||||
|
||||
private $_webserviceURL = 'http://www.mondialrelay.fr/webservice/Web_Services.asmx?WSDL';
|
||||
private $_webserviceURL;
|
||||
|
||||
public function __construct($params)
|
||||
{
|
||||
public function __construct($params, $object)
|
||||
{
|
||||
$this->_mondialRelay = $object;
|
||||
$this->_id_address_delivery = (int)($params['id_address_delivery']);
|
||||
$this->_id_carrier = (int)($params['id_carrier']);
|
||||
$this->_weight = (float)($params['weight']);
|
||||
$this->_webServiceKey = Configuration::get('MR_KEY_WEBSERVICE');
|
||||
$this->_weight = (float)($params['weight']);
|
||||
$this->_webServiceKey = $this->_mondialRelay->account_shop['MR_KEY_WEBSERVICE'];
|
||||
$this->_webserviceURL = MondialRelay::MR_URL.'webservice/Web_Services.asmx?WSDL';
|
||||
}
|
||||
|
||||
public function __destruct()
|
||||
{
|
||||
unset($this->_mondialRelay);
|
||||
unset($this->_mondialRelay);
|
||||
}
|
||||
|
||||
public function init()
|
||||
{
|
||||
$this->_mondialRelay = new MondialRelay();
|
||||
{
|
||||
$address = new Address($this->_id_address_delivery);
|
||||
$weight = $this->_mondialRelay->account_shop['MR_WEIGHT_COEFFICIENT'] * $this->_weight;
|
||||
|
||||
if (!$address)
|
||||
throw new Exception($this->_mondialrelay->l('Customer address can\'t be found'));
|
||||
|
||||
$this->_fields['list']['Enseigne']['value'] = Configuration::get('MR_ENSEIGNE_WEBSERVICE');
|
||||
$this->_fields['list']['Poids']['value'] = Configuration::get('MR_WEIGHT_COEF') * $this->_weight;
|
||||
$this->_fields['list']['Pays']['value'] = Country::getIsoById($address->id_country);
|
||||
$this->_fields['list']['Ville']['value'] = $address->city;
|
||||
$this->_fields['list']['CP']['value'] = $address->postcode;
|
||||
$this->_fields['list']['Enseigne']['value'] = $this->_mondialRelay->account_shop['MR_ENSEIGNE_WEBSERVICE'];
|
||||
$this->_fields['list']['Poids']['value'] = ($weight < 100) ? 100 : $weight;
|
||||
$this->_fields['list']['Pays']['value'] = trim(Country::getIsoById($address->id_country));
|
||||
$this->_fields['list']['Ville']['value'] = trim($address->city);
|
||||
$this->_fields['list']['CP']['value'] = trim($address->postcode);
|
||||
$this->_fields['list']['CP']['params']['id_country'] = $address->id_country;
|
||||
|
||||
$this->_generateMD5SecurityKey();
|
||||
@ -123,27 +125,23 @@ class MRGetRelayPoint implements IMondialRelayWSMethod
|
||||
private function _generateMD5SecurityKey()
|
||||
{
|
||||
$concatenationValue = '';
|
||||
foreach($this->_fields['list'] as $paramName => &$valueDetailed)
|
||||
foreach ($this->_fields['list'] as $paramName => &$valueDetailed)
|
||||
if ($paramName != 'Texte' && $paramName != 'Security')
|
||||
{
|
||||
// Mac server make an empty string instead of a cleaned string
|
||||
// TODO : test on windows and linux server
|
||||
$cleanedString = MRTools::replaceAccentedCharacters($valueDetailed['value']);
|
||||
$valueDetailed['value'] = !empty($cleanedString) ? strtoupper($cleanedString) : strtoupper($valueDetailed['value']);
|
||||
$cleanedString = MRTools::removeAccents($valueDetailed['value']);
|
||||
$valueDetailed['value'] = !empty($cleanedString) ? Tools::strtoupper($cleanedString) : Tools::strtoupper($valueDetailed['value']);
|
||||
|
||||
$valueDetailed['value'] = strtoupper($valueDetailed['value']);
|
||||
$valueDetailed['value'] = Tools::strtoupper($valueDetailed['value']);
|
||||
// Call a pointer function if exist to do different test
|
||||
if (isset($valueDetailed['methodValidation']) &&
|
||||
method_exists('MRTools', $valueDetailed['methodValidation']) &&
|
||||
isset($valueDetailed['params']) &&
|
||||
MRTools::$valueDetailed['methodValidation']($valueDetailed['value'], $valueDetailed['params']))
|
||||
if (isset($valueDetailed['methodValidation']) && method_exists('MRTools', $valueDetailed['methodValidation']) && isset($valueDetailed['params']) && MRTools::$valueDetailed['methodValidation']($valueDetailed['value'], $valueDetailed['params']))
|
||||
$concatenationValue .= $valueDetailed['value'];
|
||||
// Use simple Regex test given by MondialRelay
|
||||
else if (isset($valueDetailed['regexValidation']) &&
|
||||
preg_match($valueDetailed['regexValidation'], $valueDetailed['value'], $matches))
|
||||
else if (isset($valueDetailed['regexValidation']) && preg_match($valueDetailed['regexValidation'], $valueDetailed['value'], $matches))
|
||||
$concatenationValue .= $valueDetailed['value'];
|
||||
// If the key is required, we set an error, else it's skipped
|
||||
else if ((!strlen($valueDetailed['value']) && $valueDetailed['required']) || strlen($valueDetailed['value']))
|
||||
// If the key is required, we set an error, else it's skipped
|
||||
elseif ((!Tools::strlen($valueDetailed['value']) && $valueDetailed['required']) || Tools::strlen($valueDetailed['value']))
|
||||
{
|
||||
$error = $this->_mondialRelay->l('This key').' ['.$paramName.'] '.
|
||||
$this->_mondialRelay->l('hasn\'t a valide value format').' : '.$valueDetailed['value'];
|
||||
@ -151,7 +149,7 @@ class MRGetRelayPoint implements IMondialRelayWSMethod
|
||||
}
|
||||
}
|
||||
$concatenationValue .= $this->_webServiceKey;
|
||||
$this->_fields['list']['Security']['value'] = strtoupper(md5($concatenationValue));
|
||||
$this->_fields['list']['Security']['value'] = Tools::strtoupper(md5($concatenationValue));
|
||||
}
|
||||
|
||||
/*
|
||||
@ -162,7 +160,7 @@ class MRGetRelayPoint implements IMondialRelayWSMethod
|
||||
{
|
||||
$params = array();
|
||||
|
||||
foreach($fields as $keyName => $valueDetailed)
|
||||
foreach ($fields as $keyName => $valueDetailed)
|
||||
$params[$keyName] = $valueDetailed['value'];
|
||||
return $params;
|
||||
}
|
||||
@ -173,31 +171,28 @@ class MRGetRelayPoint implements IMondialRelayWSMethod
|
||||
private function _getRelayPointDetails($relayPointList)
|
||||
{
|
||||
$relayPointNumList = array();
|
||||
foreach($relayPointList as $num => $relayPoint)
|
||||
foreach ($relayPointList as $relayPoint)
|
||||
$relayPointNumList[] = $relayPoint['Num'];
|
||||
|
||||
$MRRelayDetail = new MRRelayDetail(array(
|
||||
'relayPointNumList' => $relayPointNumList,
|
||||
'id_address_delivery' => $this->_id_address_delivery));
|
||||
$MRRelayDetail->init();
|
||||
$MRRelayDetail->send();
|
||||
return $MRRelayDetail->getResult();
|
||||
$MRRelayDetail = new MRRelayDetail(array('relayPointNumList' => $relayPointNumList, 'id_address_delivery' => $this->_id_address_delivery));
|
||||
$MRRelayDetail->init();
|
||||
$MRRelayDetail->send();
|
||||
return $MRRelayDetail->getResult();
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** Generate a perman link to view relay detail on their website
|
||||
*/
|
||||
private function _addLinkHoursDetail(&$relayPointList)
|
||||
{
|
||||
$relayPointNumList = array();
|
||||
foreach($relayPointList as $num => $relayPoint)
|
||||
$relayPointNumList[] = $relayPoint['Num'];
|
||||
foreach ($relayPointList as $relayPoint)
|
||||
$relayPointNumList[] = $relayPoint->Num;
|
||||
$permaList = MRRelayDetail::getPermaLink($relayPointNumList, $this->_id_address_delivery);
|
||||
foreach($relayPointList as $num => &$relayPoint)
|
||||
foreach ($relayPointList as &$relayPoint)
|
||||
{
|
||||
$relayPoint['permaLinkDetail'] = '';
|
||||
if (array_key_exists($relayPoint['Num'], $permaList))
|
||||
$relayPoint['permaLinkDetail'] = $permaList[$relayPoint['Num']];
|
||||
$relayPoint->permaLinkDetail = '';
|
||||
if (array_key_exists($relayPoint->Num, $permaList))
|
||||
$relayPoint->permaLinkDetail = $permaList[$relayPoint->Num];
|
||||
}
|
||||
return $relayPointList;
|
||||
}
|
||||
@ -210,46 +205,41 @@ class MRGetRelayPoint implements IMondialRelayWSMethod
|
||||
{
|
||||
$errors = array();
|
||||
$success = array();
|
||||
|
||||
if ($client->fault)
|
||||
$errors[$errorTotal++] = $this->_mondialRelay->l('It seems the request isn\'t valid:').
|
||||
$result;
|
||||
|
||||
$result = $result['WSI2_RecherchePointRelaisResult'];
|
||||
if (($errorNumber = $result['STAT']) != 0)
|
||||
$result = $result->WSI2_RecherchePointRelaisResult;
|
||||
if (($errorNumber = $result->STAT) != 0)
|
||||
{
|
||||
$errors[] = $this->_mondialRelay->l('There is an error number : ').$errorNumber;
|
||||
$errors[] = $this->_mondialRelay->l('Details : ').
|
||||
$this->_mondialRelay->getErrorCodeDetail($errorNumber);
|
||||
$this->_mondialRelay->getErrorCodeDetail($errorNumber);
|
||||
}
|
||||
else
|
||||
{
|
||||
unset($result['STAT']);
|
||||
unset($result->STAT);
|
||||
|
||||
// Clean Content
|
||||
foreach($result as $num => $relayPoint)
|
||||
foreach ($result as $num => $relayPoint)
|
||||
{
|
||||
$totalEmptyFields = 0;
|
||||
foreach ($relayPoint as $key => &$value)
|
||||
foreach ($relayPoint as &$value)
|
||||
{
|
||||
$value = trim($value);
|
||||
if (empty($value))
|
||||
++$totalEmptyFields;
|
||||
}
|
||||
if ($totalEmptyFields == count($relayPoint))
|
||||
unset($result[$num]);
|
||||
}
|
||||
if (!count($result))
|
||||
$errors[] = $this->_mondialRelay->l('MondialRelay can\'t find any relay point near your address. Maybe your address isn\'t properly filled ?');
|
||||
else
|
||||
{
|
||||
$this->_addLinkHoursDetail($result);
|
||||
|
||||
// Fetch detail info using webservice (not used anymore)
|
||||
// $this->_generateLinkHoursDetail($result);
|
||||
// $result = (count($relayDetail['success'])) ? $relayDetail['success'] : $result;
|
||||
}
|
||||
$success = $result;
|
||||
$value = trim($value);
|
||||
if (empty($value))
|
||||
++$totalEmptyFields;
|
||||
}
|
||||
if ($totalEmptyFields == count($relayPoint))
|
||||
unset($result[$num]);
|
||||
}
|
||||
if (!count($result))
|
||||
$errors[] = $this->_mondialRelay->l('MondialRelay can\'t find any relay point near your address. Maybe your address isn\'t properly filled ?');
|
||||
else
|
||||
{
|
||||
$this->_addLinkHoursDetail($result);
|
||||
|
||||
// Fetch detail info using webservice (not used anymore)
|
||||
// $this->_generateLinkHoursDetail($result);
|
||||
// $result = (count($relayDetail['success'])) ? $relayDetail['success'] : $result;
|
||||
}
|
||||
$success = $result;
|
||||
}
|
||||
$this->_resultList['error'] = $errors;
|
||||
$this->_resultList['success'] = $success;
|
||||
@ -260,18 +250,13 @@ class MRGetRelayPoint implements IMondialRelayWSMethod
|
||||
*/
|
||||
public function send()
|
||||
{
|
||||
if ($client = new nusoap_client($this->_webserviceURL, true))
|
||||
if ($client = new SoapClient($this->_webserviceURL))
|
||||
{
|
||||
$client->soap_defencoding = 'UTF-8';
|
||||
$client->decode_utf8 = false;
|
||||
|
||||
$params = $this->_getSimpleParamArray($this->_fields['list']);
|
||||
$result = $client->call(
|
||||
'WSI2_RecherchePointRelais',
|
||||
$params,
|
||||
'http://www.mondialrelay.fr/webservice/',
|
||||
'http://www.mondialrelay.fr/webservice/WSI2_RecherchePointRelais');
|
||||
|
||||
$result = $client->WSI2_RecherchePointRelais($params);
|
||||
$this->_parseResult($client, $result, $params);
|
||||
unset($client);
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
/**
|
||||
* 2007-2015 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
@ -18,10 +18,10 @@
|
||||
* 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-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 8783 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2015 PrestaShop SA
|
||||
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
@ -56,31 +56,31 @@ class MRGetTickets implements IMondialRelayWSMethod
|
||||
|
||||
private $_detailedExpeditionList = array();
|
||||
private $_webServiceKey = '';
|
||||
private $_mondialRelay = NULL;
|
||||
private $_mondialrelay = null;
|
||||
|
||||
private $_resultList = array(
|
||||
'error' => array(),
|
||||
'success' => array());
|
||||
|
||||
private $_webserviceURL = 'http://www.mondialrelay.fr/webservice/Web_Services.asmx?WSDL';
|
||||
private $_webserviceURL;
|
||||
|
||||
public function __construct($params)
|
||||
public function __construct($params, $object)
|
||||
{
|
||||
$this->_mondialrelay = $object;
|
||||
$this->_detailedExpeditionList = $params['detailedExpeditionList'];
|
||||
$this->_webServiceKey = Configuration::get('MR_KEY_WEBSERVICE');
|
||||
$this->_webServiceKey = $this->_mondialrelay->account_shop['MR_KEY_WEBSERVICE'];
|
||||
$this->_webserviceURL = MondialRelay::MR_URL.'webservice/Web_Services.asmx?WSDL';
|
||||
}
|
||||
|
||||
public function __destruct()
|
||||
{
|
||||
unset($this->_mondialRelay);
|
||||
unset($this->_mondialrelay);
|
||||
}
|
||||
|
||||
public function init()
|
||||
{
|
||||
$this->_mondialRelay = new MondialRelay();
|
||||
|
||||
$this->_fields['list']['Enseigne']['value'] = Configuration::get('MR_ENSEIGNE_WEBSERVICE');
|
||||
$this->_fields['list']['Langue']['value'] = Configuration::get('MR_LANGUAGE');
|
||||
{
|
||||
$this->_fields['list']['Enseigne']['value'] = $this->_mondialrelay->account_shop['MR_ENSEIGNE_WEBSERVICE'];
|
||||
$this->_fields['list']['Langue']['value'] = $this->_mondialrelay->account_shop['MR_LANGUAGE'];
|
||||
|
||||
foreach ($this->_detailedExpeditionList as $detailedExpedition)
|
||||
{
|
||||
@ -101,24 +101,24 @@ class MRGetTickets implements IMondialRelayWSMethod
|
||||
{
|
||||
// RootCase is the array case where the main information are stored
|
||||
// it's an array containing id_mr_selected and an array with the necessary fields
|
||||
foreach($this->_fieldsList as &$rootCase)
|
||||
foreach ($this->_fieldsList as &$rootCase)
|
||||
{
|
||||
$concatenationValue = '';
|
||||
foreach($rootCase['list'] as $paramName => &$valueDetailed)
|
||||
foreach ($rootCase['list'] as $paramName => &$valueDetailed)
|
||||
if ($paramName != 'Texte' && $paramName != 'Security')
|
||||
{
|
||||
$valueDetailed['value'] = strtoupper($valueDetailed['value']);
|
||||
$valueDetailed['value'] = Tools::strtoupper($valueDetailed['value']);
|
||||
if (preg_match($valueDetailed['regexValidation'], $valueDetailed['value'], $matches))
|
||||
$concatenationValue .= $valueDetailed['value'];
|
||||
elseif ((!strlen($valueDetailed['value']) && $valueDetailed['required']) || strlen($valueDetailed['value']))
|
||||
elseif ((!Tools::strlen($valueDetailed['value']) && $valueDetailed['required']) || Tools::strlen($valueDetailed['value']))
|
||||
{
|
||||
$error = $this->_mondialRelay->l('This key').' ['.$paramName.'] '.$this->_mondialRelay->l('hasn\'t a valide value format').' : '.$valueDetailed['value'];
|
||||
$error = $this->_mondialrelay->l('This key').' ['.$paramName.'] '.$this->_mondialrelay->l('hasn\'t a valide value format').' : '.$valueDetailed['value'];
|
||||
$id_order = $this->_getOrderIdWithExpeditionNumber($rootCase['list']['Expeditions']['value']);
|
||||
$this->_resultList['error'][$id_order][] = $error;
|
||||
}
|
||||
}
|
||||
$concatenationValue .= $this->_webServiceKey;
|
||||
$rootCase['list']['Security']['value' ] = strtoupper(md5($concatenationValue));
|
||||
$rootCase['list']['Security']['value'] = Tools::strtoupper(md5($concatenationValue));
|
||||
}
|
||||
}
|
||||
|
||||
@ -130,7 +130,7 @@ class MRGetTickets implements IMondialRelayWSMethod
|
||||
{
|
||||
$params = array();
|
||||
|
||||
foreach($fields as $keyName => $valueDetailed)
|
||||
foreach ($fields as $keyName => $valueDetailed)
|
||||
$params[$keyName] = $valueDetailed['value'];
|
||||
return $params;
|
||||
}
|
||||
@ -141,14 +141,14 @@ class MRGetTickets implements IMondialRelayWSMethod
|
||||
private function _updateTable($id_order, $expeditionNumber, $URLA4, $URLA5, &$success)
|
||||
{
|
||||
$query = '
|
||||
SELECT id FROM `'._DB_PREFIX_.'mr_historique`
|
||||
SELECT id FROM `'._DB_PREFIX_.'mr_history`
|
||||
WHERE `order`='.(int)$id_order;
|
||||
|
||||
$row = Db::getInstance()->getRow($query);
|
||||
if ($row)
|
||||
{
|
||||
$query = '
|
||||
UPDATE `'._DB_PREFIX_.'mr_historique`
|
||||
UPDATE `'._DB_PREFIX_.'mr_history`
|
||||
SET
|
||||
`exp` = \''.(int)$expeditionNumber.'\',
|
||||
`url_a4` = \''.pSQL((string)$URLA4).'\',
|
||||
@ -158,7 +158,7 @@ class MRGetTickets implements IMondialRelayWSMethod
|
||||
else
|
||||
{
|
||||
$query = '
|
||||
INSERT INTO '._DB_PREFIX_.'mr_historique
|
||||
INSERT INTO '._DB_PREFIX_.'mr_history
|
||||
(`order`, `exp`, `url_a4`, `url_a5`)
|
||||
VALUES (
|
||||
'.(int)$id_order.',
|
||||
@ -166,7 +166,7 @@ class MRGetTickets implements IMondialRelayWSMethod
|
||||
\''.pSQL((string)$URLA4).'\',
|
||||
\''.pSQL((string)$URLA5).'\')';
|
||||
}
|
||||
Db::getInstance()->Execute($query);
|
||||
Db::getInstance()->execute($query);
|
||||
$success['id_mr_history'] = isset($row['id']) ? $row['id'] : Db::getInstance()->Insert_ID();
|
||||
}
|
||||
|
||||
@ -180,27 +180,24 @@ class MRGetTickets implements IMondialRelayWSMethod
|
||||
$success = array();
|
||||
|
||||
$id_order = $this->_getOrderIdWithExpeditionNumber($params['Expeditions']);
|
||||
if ($client->fault)
|
||||
$errors[$errorTotal++] = $this->_mondialRelay->l('It seems the request isn\'t valid:').
|
||||
$result;
|
||||
|
||||
$result = $result['WSI2_GetEtiquettesResult'];
|
||||
if (($errorNumber = $result['STAT']) != 0)
|
||||
$result = $result->WSI2_GetEtiquettesResult;
|
||||
if (($errorNumber = $result->STAT) != 0)
|
||||
{
|
||||
$errors[] = $this->_mondialRelay->l('There is an error number : ').$errorNumber;
|
||||
$errors[] = $this->_mondialRelay->l('Details : ').
|
||||
$this->_mondialRelay->getErrorCodeDetail($errorNumber);
|
||||
$errors[] = $this->_mondialrelay->l('There is an error number : ').$errorNumber;
|
||||
$errors[] = $this->_mondialrelay->l('Details : ').
|
||||
$this->_mondialrelay->getErrorCodeDetail($errorNumber);
|
||||
}
|
||||
else
|
||||
{
|
||||
$baseURL = 'http://www.mondialrelay.fr';
|
||||
$URLPDF_A4 = $baseURL.$result['URL_PDF_A4'];
|
||||
$URLPDF_A5 = $baseURL.$result['URL_PDF_A5'];
|
||||
|
||||
$URLPDF_A4 = $baseURL.$result->URL_PDF_A4;
|
||||
$URLPDF_A5 = $baseURL.$result->URL_PDF_A5;
|
||||
|
||||
$success['id_order'] = $id_order;
|
||||
$success['expeditionNumber'] = $params['Expeditions'];
|
||||
$success['URLPDF_A4'] = $URLPDF_A4;
|
||||
$success['URLPDF_A5'] = $URLPDF_A5;
|
||||
$success['URLPDF_10x15'] = $baseURL.str_replace('format=A4', 'format=10x15', $result->URL_PDF_A4);
|
||||
$this->_updateTable($id_order, $params['Expeditions'], $URLPDF_A4, $URLPDF_A5, $success);
|
||||
}
|
||||
$this->_resultList['error'][$id_order] = $errors;
|
||||
@ -212,7 +209,7 @@ class MRGetTickets implements IMondialRelayWSMethod
|
||||
*/
|
||||
private function _getOrderIdWithExpeditionNumber($expeditionNumber)
|
||||
{
|
||||
foreach($this->_detailedExpeditionList as $detailedExpedition)
|
||||
foreach ($this->_detailedExpeditionList as $detailedExpedition)
|
||||
if ($detailedExpedition['expeditionNumber'] == $expeditionNumber)
|
||||
return $detailedExpedition['id_order'];
|
||||
return 0;
|
||||
@ -223,26 +220,21 @@ class MRGetTickets implements IMondialRelayWSMethod
|
||||
*/
|
||||
public function send()
|
||||
{
|
||||
if ($client = new nusoap_client($this->_webserviceURL, true))
|
||||
if ($client = new SoapClient($this->_webserviceURL))
|
||||
{
|
||||
$client->soap_defencoding = 'UTF-8';
|
||||
$client->decode_utf8 = false;
|
||||
|
||||
foreach($this->_fieldsList as $rootCase)
|
||||
foreach ($this->_fieldsList as $rootCase)
|
||||
{
|
||||
$params = $this->_getSimpleParamArray($rootCase['list']);
|
||||
$result = $client->call(
|
||||
'WSI2_GetEtiquettes',
|
||||
$params,
|
||||
'http://www.mondialrelay.fr/webservice/',
|
||||
'http://www.mondialrelay.fr/webservice/WSI2_GetEtiquettes');
|
||||
|
||||
$result = $client->WSI2_GetEtiquettes($params);
|
||||
$this->_parseResult($client, $result, $params);
|
||||
}
|
||||
unset($client);
|
||||
}
|
||||
else
|
||||
throw new Exception($this->_mondialRelay->l('The Mondial Relay webservice isn\'t currently reliable'));
|
||||
throw new Exception($this->_mondialrelay->l('The Mondial Relay webservice isn\'t currently reliable'));
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
/**
|
||||
* 2007-2015 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
@ -18,10 +18,10 @@
|
||||
* 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-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 9219 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2015 PrestaShop SA
|
||||
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
@ -42,30 +42,29 @@ class MRManagement extends MondialRelay
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
public function __destruct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
** This method fill the database with the selected carrier
|
||||
*/
|
||||
public function addSelectedCarrierToDB()
|
||||
{
|
||||
$query = 'SELECT `id_mr_selected`
|
||||
FROM `' . _DB_PREFIX_ . 'mr_selected`
|
||||
WHERE `id_cart` = '.(int)$this->_params['id_cart'];
|
||||
|
||||
$db = Db::getInstance();
|
||||
// insutance
|
||||
$sql = 'SELECT insurance FROM '._DB_PREFIX_.'mr_method WHERE id_mr_method = '.(int)$this->_params['id_mr_method'];
|
||||
$insurance = $db->getValue($sql);
|
||||
|
||||
$query = 'SELECT `id_mr_selected` FROM `'._DB_PREFIX_.'mr_selected` WHERE `id_cart` = '.(int)$this->_params['id_cart'].' ';
|
||||
|
||||
// Not exist and needed for database
|
||||
unset($this->_params['relayPointInfo']['permaLinkDetail']);
|
||||
|
||||
// Update if Exist else add a new entry
|
||||
if (Db::getInstance()->getRow($query))
|
||||
if ($db->getRow($query))
|
||||
{
|
||||
$query = 'UPDATE `'._DB_PREFIX_.'mr_selected`
|
||||
SET `id_method` = '.(int)$this->_params['id_mr_method'].', ';
|
||||
SET `id_method` = '.(int)$this->_params['id_mr_method'].',
|
||||
`MR_insurance` = '.(int)$insurance.',';
|
||||
if (is_array($this->_params['relayPointInfo']))
|
||||
foreach($this->_params['relayPointInfo'] as $nameKey => $value)
|
||||
foreach ($this->_params['relayPointInfo'] as $nameKey => $value)
|
||||
$query .= '`MR_Selected_'.MRTools::bqSQL($nameKey).'` = "'.pSQL($value).'", ';
|
||||
else // Clean the existing relay point data
|
||||
$query .= '
|
||||
@ -82,34 +81,36 @@ class MRManagement extends MondialRelay
|
||||
else
|
||||
{
|
||||
$query = 'INSERT INTO `'._DB_PREFIX_.'mr_selected`
|
||||
(`id_customer`, `id_method`, `id_cart`, ';
|
||||
(`id_customer`, `id_method`, `id_cart`, MR_insurance, ';
|
||||
if (is_array($this->_params['relayPointInfo']))
|
||||
foreach($this->_params['relayPointInfo'] as $nameKey => $value)
|
||||
foreach ($this->_params['relayPointInfo'] as $nameKey => $value)
|
||||
$query .= '`MR_Selected_'.MRTools::bqSQL($nameKey).'`, ';
|
||||
$query = rtrim($query, ', ').') VALUES (
|
||||
'.(int)$this->_params['id_customer'].',
|
||||
'.(int)$this->_params['id_mr_method'].',
|
||||
'.(int)$this->_params['id_cart'].', ';
|
||||
'.(int)$this->_params['id_cart'].',
|
||||
'.(int)$insurance.', ';
|
||||
|
||||
if (is_array($this->_params['relayPointInfo']))
|
||||
foreach($this->_params['relayPointInfo'] as $nameKey => $value)
|
||||
foreach ($this->_params['relayPointInfo'] as $nameKey => $value)
|
||||
$query .= '"'.pSQL($value).'", ';
|
||||
$query = rtrim($query, ', ').')';
|
||||
}
|
||||
Db::getInstance()->Execute($query);
|
||||
$db->execute($query);
|
||||
}
|
||||
|
||||
|
||||
public function uninstallDetail()
|
||||
{
|
||||
$html = '';
|
||||
|
||||
switch($this->_params['action'])
|
||||
switch ($this->_params['action'])
|
||||
{
|
||||
case 'showFancy':
|
||||
$html .= '
|
||||
<div id="PS_MRAskBackupContent">
|
||||
<h2>'.$this->l('Uninstalling Mondial Relay').'</h2>
|
||||
<div>
|
||||
'.$this->l('You\'re attempt to uninstall the module, do you want to remove the database').' ?
|
||||
'.$this->l('You\'re about to uninstall the module, do you want to remove the database').' ?
|
||||
<p id="PS_MRUninstallListSelection">
|
||||
<input type="button" id="PS_MR_BackupAction" href="javascript:void(0)" value="'.$this->l('Keep it and uninstall').'"/>
|
||||
<br />
|
||||
@ -139,24 +140,23 @@ class MRManagement extends MondialRelay
|
||||
if (is_array($this->_params['historyIdList']) && count($this->_params['historyIdList']))
|
||||
{
|
||||
$query = '
|
||||
DELETE FROM `'._DB_PREFIX_.'mr_historique`
|
||||
DELETE FROM `'._DB_PREFIX_.'mr_history`
|
||||
WHERE id IN(';
|
||||
foreach($this->_params['historyIdList'] as $id)
|
||||
foreach ($this->_params['historyIdList'] as $id)
|
||||
$query .= (int)$id.', ';
|
||||
$query = trim($query, ', ').')';
|
||||
|
||||
$success['deletedListId'] = $this->_params['historyIdList'];
|
||||
$totalDeleted = Db::getInstance()->Execute($query);
|
||||
$totalDeleted = Db::getInstance()->execute($query);
|
||||
if (count($success['deletedListId']) != $totalDeleted)
|
||||
{
|
||||
$error[] = $this->l('Some items can\'t be removed, please try to remove it again');
|
||||
foreach($success['deletedListId'] as $id)
|
||||
foreach ($success['deletedListId'] as $id)
|
||||
{
|
||||
$query = '
|
||||
SELECT id FROM `'._DB_PREFIX_.'mr_historique`
|
||||
SELECT id FROM `'._DB_PREFIX_.'mr_history`
|
||||
WHERE id='.(int)$id;
|
||||
if (Db::getInstance()->getRow($query) &&
|
||||
($key = array_search($id, $success['deletedListId'])) !== FALSE)
|
||||
if (Db::getInstance()->getRow($query) && ($key = array_search($id, $success['deletedListId'])) !== false)
|
||||
unset($success['deletedListId'][$key]);
|
||||
}
|
||||
}
|
||||
@ -167,5 +167,4 @@ class MRManagement extends MondialRelay
|
||||
throw new Exception($this->l('Please select at least one history element'));
|
||||
return $this->_resultList;
|
||||
}
|
||||
}
|
||||
?>
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
/**
|
||||
* 2007-2015 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
@ -18,10 +18,10 @@
|
||||
* 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-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 8783 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2015 PrestaShop SA
|
||||
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
@ -54,40 +54,42 @@ class MRRelayDetail implements IMondialRelayWSMethod
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9A-Z]{32}$#')));
|
||||
|
||||
private $_relayPointNumList = array();
|
||||
private $_relayPointNumList = array();
|
||||
private $_id_address_delivery = 0;
|
||||
private $_webServiceKey = '';
|
||||
private $_mondialRelay = NULL;
|
||||
private $_mondialrelay = null;
|
||||
private $_markCode = '';
|
||||
|
||||
private $_resultList = array(
|
||||
'error' => array(),
|
||||
'success' => array());
|
||||
|
||||
private $_webserviceURL = 'http://www.mondialrelay.fr/webservice/Web_Services.asmx?WSDL';
|
||||
private $_webserviceURL = '';
|
||||
|
||||
public function __construct($params)
|
||||
public function __construct($params, $object)
|
||||
{
|
||||
$this->_mondialrelay = $object;
|
||||
|
||||
$this->_relayPointNumList = $params['relayPointNumList'];
|
||||
$this->_id_address_delivery = (int)($params['id_address_delivery']);
|
||||
$this->_webServiceKey = Configuration::get('MR_KEY_WEBSERVICE');
|
||||
$this->_markCode = Configuration::get('MR_CODE_MARQUE');
|
||||
$this->_webServiceKey = $this->_mondialRelay->account_shop['MR_KEY_WEBSERVICE'];
|
||||
$this->_markCode = $this->_mondialRelay->account_shop['MR_CODE_MARQUE'];
|
||||
$this->_webserviceURL = MondialRelay::MR_URL.'webservice/Web_Services.asmx?WSDL';
|
||||
}
|
||||
|
||||
public function __destruct()
|
||||
{
|
||||
unset($this->_mondialRelay);
|
||||
unset($this->_mondialrelay);
|
||||
}
|
||||
|
||||
public function init()
|
||||
{
|
||||
$this->_mondialRelay = new MondialRelay();
|
||||
{
|
||||
$address = new Address($this->_id_address_delivery);
|
||||
|
||||
if (!$address)
|
||||
throw new Exception($this->_mondialrelay->l('Customer address can\'t be found'));
|
||||
|
||||
$this->_fields['list']['Enseigne']['value'] = Configuration::get('MR_ENSEIGNE_WEBSERVICE');
|
||||
$this->_fields['list']['Enseigne']['value'] = $this->_mondialRelay->account_shop['MR_ENSEIGNE_WEBSERVICE'];
|
||||
$this->_fields['list']['Pays']['value'] = Country::getIsoById($address->id_country);
|
||||
|
||||
foreach ($this->_relayPointNumList as $num)
|
||||
@ -110,39 +112,35 @@ class MRRelayDetail implements IMondialRelayWSMethod
|
||||
{
|
||||
// RootCase is the array case where the main information are stored
|
||||
// it's an array containing id_mr_selected and an array with the necessary fields
|
||||
foreach($this->_fieldsList as &$rootCase)
|
||||
foreach ($this->_fieldsList as &$rootCase)
|
||||
{
|
||||
$concatenationValue = '';
|
||||
foreach($rootCase['list'] as $paramName => &$valueDetailed)
|
||||
foreach ($rootCase['list'] as $paramName => &$valueDetailed)
|
||||
if ($paramName != 'Texte' && $paramName != 'Security')
|
||||
{
|
||||
// Mac server make an empty string instead of a cleaned string
|
||||
// TODO : test on windows and linux server
|
||||
$cleanedString = MRTools::replaceAccentedCharacters($valueDetailed['value']);
|
||||
$valueDetailed['value'] = !empty($cleanedString) ? strtoupper($cleanedString) : strtoupper($valueDetailed['value']);
|
||||
$cleanedString = MRTools::removeAccents($valueDetailed['value']);
|
||||
$valueDetailed['value'] = !empty($cleanedString) ? Tools::strtoupper($cleanedString) : Tools::strtoupper($valueDetailed['value']);
|
||||
|
||||
// Call a pointer function if exist to do different test
|
||||
if (isset($valueDetailed['methodValidation']) &&
|
||||
method_exists('MRTools', $valueDetailed['methodValidation']) &&
|
||||
isset($valueDetailed['params']) &&
|
||||
MRTools::$valueDetailed['methodValidation']($valueDetailed['value'], $valueDetailed['params']))
|
||||
if (isset($valueDetailed['methodValidation']) && method_exists('MRTools', $valueDetailed['methodValidation']) && isset($valueDetailed['params']) && MRTools::$valueDetailed['methodValidation']($valueDetailed['value'], $valueDetailed['params']))
|
||||
$concatenationValue .= $valueDetailed['value'];
|
||||
// Use simple Regex test given by MondialRelay
|
||||
else if (isset($valueDetailed['regexValidation']) &&
|
||||
preg_match($valueDetailed['regexValidation'], $valueDetailed['value'], $matches))
|
||||
else if (isset($valueDetailed['regexValidation']) && preg_match($valueDetailed['regexValidation'], $valueDetailed['value'], $matches))
|
||||
$concatenationValue .= $valueDetailed['value'];
|
||||
// If the key is required, we set an error, else it's skipped
|
||||
else if ((!strlen($valueDetailed['value']) && $valueDetailed['required']) || strlen($valueDetailed['value']))
|
||||
// If the key is required, we set an error, else it's skipped
|
||||
elseif ((!Tools::strlen($valueDetailed['value']) && $valueDetailed['required']) || Tools::strlen($valueDetailed['value']))
|
||||
{
|
||||
if (empty($valueDetailed['value']))
|
||||
$error = $this->_mondialRelay->l('This key').' ['.$paramName.'] '.$this->_mondialRelay->l('is empty and need to be filled');
|
||||
$error = $this->_mondialrelay->l('This key').' ['.$paramName.'] '.$this->_mondialrelay->l('is empty and need to be filled');
|
||||
else
|
||||
$error = 'This key ['.$paramName.'] hasn\'t a valid value format : '.$valueDetailed['value'];
|
||||
$error = 'This key ['.$paramName.'] hasn\'t a valid value format : '.$valueDetailed['value'];
|
||||
$this->_resultList['error'][$rootCase['list']['Num']['value']] = $error;
|
||||
}
|
||||
}
|
||||
$concatenationValue .= $this->_webServiceKey;
|
||||
$rootCase['list']['Security']['value' ] = strtoupper(md5($concatenationValue));
|
||||
$rootCase['list']['Security']['value'] = Tools::strtoupper(md5($concatenationValue));
|
||||
}
|
||||
}
|
||||
|
||||
@ -154,7 +152,7 @@ class MRRelayDetail implements IMondialRelayWSMethod
|
||||
{
|
||||
$params = array();
|
||||
|
||||
foreach($fields as $keyName => $valueDetailed)
|
||||
foreach ($fields as $keyName => $valueDetailed)
|
||||
$params[$keyName] = $valueDetailed['value'];
|
||||
return $params;
|
||||
}
|
||||
@ -166,44 +164,41 @@ class MRRelayDetail implements IMondialRelayWSMethod
|
||||
private function _parseResult($client, $result, $params)
|
||||
{
|
||||
$errors = array();
|
||||
|
||||
if ($client->fault)
|
||||
$errors[$errorTotal++] = $this->_mondialRelay->l('It seems the request isn\'t valid:').
|
||||
$result;
|
||||
$result = $result['WSI2_DetailPointRelaisResult'];
|
||||
if (($errorNumber = $result['STAT']) != 0)
|
||||
$result = $result->WSI2_DetailPointRelaisResult;
|
||||
if (($errorNumber = $result->STAT) != 0)
|
||||
{
|
||||
$errors[] = $this->_mondialRelay->l('There is an error number : ').$errorNumber;
|
||||
$errors[] = $this->_mondialRelay->l('Details : ').
|
||||
$this->_mondialRelay->getErrorCodeDetail($errorNumber);
|
||||
$errors[] = $this->_mondialrelay->l('There is an error number : ').$errorNumber;
|
||||
$errors[] = $this->_mondialrelay->l('Details : ').
|
||||
$this->_mondialrelay->getErrorCodeDetail($errorNumber);
|
||||
}
|
||||
else
|
||||
{
|
||||
$HDayList = array(
|
||||
'Horaires_Lundi' => $this->_mondialRelay->l('Monday'),
|
||||
'Horaires_Mardi' => $this->_mondialRelay->l('Tuesday'),
|
||||
'Horaires_Mercredi' => $this->_mondialRelay->l('Wednesday'),
|
||||
'Horaires_Jeudi' => $this->_mondialRelay->l('Thursday'),
|
||||
'Horaires_Vendredi' => $this->_mondialRelay->l('Friday'),
|
||||
'Horaires_Samedi' => $this->_mondialRelay->l('Saturday'),
|
||||
'Horaires_Dimanche' => $this->_mondialRelay->l('Sunday'));
|
||||
'Horaires_Lundi' => $this->_mondialrelay->l('Monday'),
|
||||
'Horaires_Mardi' => $this->_mondialrelay->l('Tuesday'),
|
||||
'Horaires_Mercredi' => $this->_mondialrelay->l('Wednesday'),
|
||||
'Horaires_Jeudi' => $this->_mondialrelay->l('Thursday'),
|
||||
'Horaires_Vendredi' => $this->_mondialrelay->l('Friday'),
|
||||
'Horaires_Samedi' => $this->_mondialrelay->l('Saturday'),
|
||||
'Horaires_Dimanche' => $this->_mondialrelay->l('Sunday'));
|
||||
|
||||
$orderedDate = array();
|
||||
// Format hour properly
|
||||
$priority = 0;
|
||||
foreach($HDayList as $day => $tradDayName)
|
||||
foreach ($HDayList as $day => $tradDayName)
|
||||
{
|
||||
foreach($result[$day]['string'] as $num => &$value)
|
||||
$mr_day = $result->{$day};
|
||||
foreach ($mr_day['string'] as &$value)
|
||||
if ($value == '0000')
|
||||
$value = '';
|
||||
else
|
||||
$value = implode('h', str_split($value, 2));
|
||||
$orderedDate[$priority++] = array('name' => $tradDayName, 'list' => $result[$day]);
|
||||
$orderedDate[$priority++] = array('name' => $tradDayName, 'list' => $mr_day);
|
||||
unset($result[$day]);
|
||||
}
|
||||
$result['orderedDate'] = $orderedDate;
|
||||
$this->_resultList['success'][$result['Num']] = $result;
|
||||
}
|
||||
$result->orderedDate = $orderedDate;
|
||||
$this->_resultList['success'][$result->Num] = $result;
|
||||
}
|
||||
$this->_resultList['error'][] = $errors;
|
||||
}
|
||||
|
||||
@ -212,48 +207,44 @@ class MRRelayDetail implements IMondialRelayWSMethod
|
||||
*/
|
||||
public function send()
|
||||
{
|
||||
if ($client = new nusoap_client($this->_webserviceURL, true))
|
||||
if ($client = new SoapClient($this->_webserviceURL))
|
||||
{
|
||||
$client->soap_defencoding = 'UTF-8';
|
||||
$client->decode_utf8 = false;
|
||||
|
||||
foreach($this->_fieldsList as $rootCase)
|
||||
foreach ($this->_fieldsList as $rootCase)
|
||||
{
|
||||
$params = $this->_getSimpleParamArray($rootCase['list']);
|
||||
$result = $client->call(
|
||||
'WSI2_DetailPointRelais',
|
||||
$params,
|
||||
'http://www.mondialrelay.fr/webservice/',
|
||||
'http://www.mondialrelay.fr/webservice/WSI2_GetEtiquettes');
|
||||
|
||||
$result = $client->WSI2_DetailPointRelais($params);
|
||||
$this->_parseResult($client, $result, $params);
|
||||
}
|
||||
unset($client);
|
||||
}
|
||||
else
|
||||
throw new Exception($this->_mondialRelay->l('The Mondial Relay webservice isn\'t currently reliable'));
|
||||
throw new Exception($this->_mondialrelay->l('The Mondial Relay webservice isn\'t currently reliable'));
|
||||
}
|
||||
|
||||
/*
|
||||
** Generate a list of perma link
|
||||
*/
|
||||
static public function getPermaLink($relayList, $id_address_delivery)
|
||||
public static function getPermaLink($relayList, $id_address_delivery)
|
||||
{
|
||||
if (!($address = new Address($id_address_delivery)))
|
||||
return array();
|
||||
|
||||
$mondialrelay = new MondialRelay();
|
||||
|
||||
$permaList = array();
|
||||
$iso = strtoupper(Country::getIsoById($address->id_country));
|
||||
$ens = strtoupper(Configuration::get('MR_ENSEIGNE_WEBSERVICE').Configuration::get('MR_CODE_MARQUE'));
|
||||
$url = 'http://www.mondialrelay.com/public/permanent/details_relais.aspx?ens='.
|
||||
Configuration::get('MR_ENSEIGNE_WEBSERVICE').Configuration::get('MR_CODE_MARQUE');
|
||||
foreach($relayList as $num => $relayNum)
|
||||
$list = array();
|
||||
$iso = Tools::strtoupper(Country::getIsoById($address->id_country));
|
||||
$ens = $mondialrelay->account_shop['MR_ENSEIGNE_WEBSERVICE'].$mondialrelay->account_shop['MR_CODE_MARQUE'];
|
||||
$url = 'http://www.mondialrelay.com/public/permanent/details_relais.aspx?ens='.$ens;
|
||||
foreach ($relayList as $relayNum)
|
||||
{
|
||||
$crc = strtoupper(MD5('<'.$ens.'>'.$relayNum.$iso.'<'.Configuration::get('MR_KEY_WEBSERVICE').'>'));
|
||||
$permaList[$relayNum] = $url.'&num='.$relayNum.'&pays='.$iso.'&crc='.$crc;
|
||||
$crc = Tools::strtoupper(md5('<'.Tools::strtoupper($ens).'>'.$relayNum.$iso.'<'.$mondialrelay->account_shop['MR_KEY_WEBSERVICE'].'>'));
|
||||
$list[$relayNum] = $url.'&num='.$relayNum.'&pays='.$iso.'&crc='.$crc;
|
||||
}
|
||||
unset($address);
|
||||
return $permaList;
|
||||
unset($address, $mondialrelay);
|
||||
return $list;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
/**
|
||||
* 2007-2015 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
@ -18,10 +18,10 @@
|
||||
* 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-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 6839 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2015 PrestaShop SA
|
||||
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
@ -30,29 +30,201 @@
|
||||
*/
|
||||
class MRTools
|
||||
{
|
||||
/*
|
||||
** Replace all accented chars to normal
|
||||
*/
|
||||
static public function replaceAccentedCharacters($string)
|
||||
const REGEX_CLEAN_ADDR = '/[^a-zA-Z0-9-\s\'\!\,\|\(\)\.\*\&\#\/\:]/';
|
||||
|
||||
const REGEX_CLEAN_PHONE = '/[^0-9+\(\)]*/';
|
||||
|
||||
/**
|
||||
* Check if a string could be UTF8 one
|
||||
*
|
||||
* @static
|
||||
* @param $str
|
||||
* @return bool
|
||||
*/
|
||||
public static function seemsUTF8($str)
|
||||
{
|
||||
if (function_exists('iconv'))
|
||||
$length = strlen($str);
|
||||
|
||||
for ($i = 0; $i < $length; $i++)
|
||||
{
|
||||
$currentLocale = setlocale(LC_ALL, NULL);
|
||||
setlocale(LC_ALL, 'en_US.UTF8');
|
||||
$cleanedString = iconv('UTF-8','ASCII//TRANSLIT', $string);
|
||||
setLocale(LC_ALL, $currentLocale);
|
||||
$c = ord($str[$i]);
|
||||
if ($c < 0x80)
|
||||
$n = 0; # 0bbbbbbb
|
||||
else if (($c & 0xE0) == 0xC0)
|
||||
$n = 1; # 110bbbbb
|
||||
else if (($c & 0xF0) == 0xE0)
|
||||
$n = 2; # 1110bbbb
|
||||
else if (($c & 0xF8) == 0xF0)
|
||||
$n = 3; # 11110bbb
|
||||
else if (($c & 0xFC) == 0xF8)
|
||||
$n = 4; # 111110bb
|
||||
else if (($c & 0xFE) == 0xFC)
|
||||
$n = 5; # 1111110b
|
||||
else
|
||||
return false; # Does not match any model
|
||||
for ($j = 0; $j < $n; $j++)
|
||||
{
|
||||
# n bytes matching 10bbbbbb follow ?
|
||||
if ((++$i == $length) || ((ord($str[$i]) & 0xC0) != 0x80))
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Converts all accent characters to ASCII characters.
|
||||
*
|
||||
* If there are no accent characters, then the string given is just returned.
|
||||
*
|
||||
* @param string $string Text that might have accent characters
|
||||
* @return string Filtered string with replaced "nice" characters.
|
||||
*/
|
||||
public static function removeAccents($string)
|
||||
{
|
||||
if (!preg_match('/[\x80-\xff]/', $string))
|
||||
return $string;
|
||||
|
||||
if (MRTools::seemsUTF8($string))
|
||||
{
|
||||
$chars = array(
|
||||
// Decompositions for Latin-1 Supplement
|
||||
chr(195).chr(128) => 'A', chr(195).chr(129) => 'A',
|
||||
chr(195).chr(130) => 'A', chr(195).chr(131) => 'A',
|
||||
chr(195).chr(132) => 'A', chr(195).chr(133) => 'A',
|
||||
chr(195).chr(135) => 'C', chr(195).chr(136) => 'E',
|
||||
chr(195).chr(137) => 'E', chr(195).chr(138) => 'E',
|
||||
chr(195).chr(139) => 'E', chr(195).chr(140) => 'I',
|
||||
chr(195).chr(141) => 'I', chr(195).chr(142) => 'I',
|
||||
chr(195).chr(143) => 'I', chr(195).chr(145) => 'N',
|
||||
chr(195).chr(146) => 'O', chr(195).chr(147) => 'O',
|
||||
chr(195).chr(148) => 'O', chr(195).chr(149) => 'O',
|
||||
chr(195).chr(150) => 'O', chr(195).chr(153) => 'U',
|
||||
chr(195).chr(154) => 'U', chr(195).chr(155) => 'U',
|
||||
chr(195).chr(156) => 'U', chr(195).chr(157) => 'Y',
|
||||
chr(195).chr(159) => 's', chr(195).chr(160) => 'a',
|
||||
chr(195).chr(161) => 'a', chr(195).chr(162) => 'a',
|
||||
chr(195).chr(163) => 'a', chr(195).chr(164) => 'a',
|
||||
chr(195).chr(165) => 'a', chr(195).chr(167) => 'c',
|
||||
chr(195).chr(168) => 'e', chr(195).chr(169) => 'e',
|
||||
chr(195).chr(170) => 'e', chr(195).chr(171) => 'e',
|
||||
chr(195).chr(172) => 'i', chr(195).chr(173) => 'i',
|
||||
chr(195).chr(174) => 'i', chr(195).chr(175) => 'i',
|
||||
chr(195).chr(177) => 'n', chr(195).chr(178) => 'o',
|
||||
chr(195).chr(179) => 'o', chr(195).chr(180) => 'o',
|
||||
chr(195).chr(181) => 'o', chr(195).chr(182) => 'o',
|
||||
chr(195).chr(182) => 'o', chr(195).chr(185) => 'u',
|
||||
chr(195).chr(186) => 'u', chr(195).chr(187) => 'u',
|
||||
chr(195).chr(188) => 'u', chr(195).chr(189) => 'y',
|
||||
chr(195).chr(191) => 'y',
|
||||
// Decompositions for Latin Extended-A
|
||||
chr(196).chr(128) => 'A', chr(196).chr(129) => 'a',
|
||||
chr(196).chr(130) => 'A', chr(196).chr(131) => 'a',
|
||||
chr(196).chr(132) => 'A', chr(196).chr(133) => 'a',
|
||||
chr(196).chr(134) => 'C', chr(196).chr(135) => 'c',
|
||||
chr(196).chr(136) => 'C', chr(196).chr(137) => 'c',
|
||||
chr(196).chr(138) => 'C', chr(196).chr(139) => 'c',
|
||||
chr(196).chr(140) => 'C', chr(196).chr(141) => 'c',
|
||||
chr(196).chr(142) => 'D', chr(196).chr(143) => 'd',
|
||||
chr(196).chr(144) => 'D', chr(196).chr(145) => 'd',
|
||||
chr(196).chr(146) => 'E', chr(196).chr(147) => 'e',
|
||||
chr(196).chr(148) => 'E', chr(196).chr(149) => 'e',
|
||||
chr(196).chr(150) => 'E', chr(196).chr(151) => 'e',
|
||||
chr(196).chr(152) => 'E', chr(196).chr(153) => 'e',
|
||||
chr(196).chr(154) => 'E', chr(196).chr(155) => 'e',
|
||||
chr(196).chr(156) => 'G', chr(196).chr(157) => 'g',
|
||||
chr(196).chr(158) => 'G', chr(196).chr(159) => 'g',
|
||||
chr(196).chr(160) => 'G', chr(196).chr(161) => 'g',
|
||||
chr(196).chr(162) => 'G', chr(196).chr(163) => 'g',
|
||||
chr(196).chr(164) => 'H', chr(196).chr(165) => 'h',
|
||||
chr(196).chr(166) => 'H', chr(196).chr(167) => 'h',
|
||||
chr(196).chr(168) => 'I', chr(196).chr(169) => 'i',
|
||||
chr(196).chr(170) => 'I', chr(196).chr(171) => 'i',
|
||||
chr(196).chr(172) => 'I', chr(196).chr(173) => 'i',
|
||||
chr(196).chr(174) => 'I', chr(196).chr(175) => 'i',
|
||||
chr(196).chr(176) => 'I', chr(196).chr(177) => 'i',
|
||||
chr(196).chr(178) => 'IJ',chr(196).chr(179) => 'ij',
|
||||
chr(196).chr(180) => 'J', chr(196).chr(181) => 'j',
|
||||
chr(196).chr(182) => 'K', chr(196).chr(183) => 'k',
|
||||
chr(196).chr(184) => 'k', chr(196).chr(185) => 'L',
|
||||
chr(196).chr(186) => 'l', chr(196).chr(187) => 'L',
|
||||
chr(196).chr(188) => 'l', chr(196).chr(189) => 'L',
|
||||
chr(196).chr(190) => 'l', chr(196).chr(191) => 'L',
|
||||
chr(197).chr(128) => 'l', chr(197).chr(129) => 'L',
|
||||
chr(197).chr(130) => 'l', chr(197).chr(131) => 'N',
|
||||
chr(197).chr(132) => 'n', chr(197).chr(133) => 'N',
|
||||
chr(197).chr(134) => 'n', chr(197).chr(135) => 'N',
|
||||
chr(197).chr(136) => 'n', chr(197).chr(137) => 'N',
|
||||
chr(197).chr(138) => 'n', chr(197).chr(139) => 'N',
|
||||
chr(197).chr(140) => 'O', chr(197).chr(141) => 'o',
|
||||
chr(197).chr(142) => 'O', chr(197).chr(143) => 'o',
|
||||
chr(197).chr(144) => 'O', chr(197).chr(145) => 'o',
|
||||
chr(197).chr(146) => 'OE',chr(197).chr(147) => 'oe',
|
||||
chr(197).chr(148) => 'R',chr(197).chr(149) => 'r',
|
||||
chr(197).chr(150) => 'R',chr(197).chr(151) => 'r',
|
||||
chr(197).chr(152) => 'R',chr(197).chr(153) => 'r',
|
||||
chr(197).chr(154) => 'S',chr(197).chr(155) => 's',
|
||||
chr(197).chr(156) => 'S',chr(197).chr(157) => 's',
|
||||
chr(197).chr(158) => 'S',chr(197).chr(159) => 's',
|
||||
chr(197).chr(160) => 'S', chr(197).chr(161) => 's',
|
||||
chr(197).chr(162) => 'T', chr(197).chr(163) => 't',
|
||||
chr(197).chr(164) => 'T', chr(197).chr(165) => 't',
|
||||
chr(197).chr(166) => 'T', chr(197).chr(167) => 't',
|
||||
chr(197).chr(168) => 'U', chr(197).chr(169) => 'u',
|
||||
chr(197).chr(170) => 'U', chr(197).chr(171) => 'u',
|
||||
chr(197).chr(172) => 'U', chr(197).chr(173) => 'u',
|
||||
chr(197).chr(174) => 'U', chr(197).chr(175) => 'u',
|
||||
chr(197).chr(176) => 'U', chr(197).chr(177) => 'u',
|
||||
chr(197).chr(178) => 'U', chr(197).chr(179) => 'u',
|
||||
chr(197).chr(180) => 'W', chr(197).chr(181) => 'w',
|
||||
chr(197).chr(182) => 'Y', chr(197).chr(183) => 'y',
|
||||
chr(197).chr(184) => 'Y', chr(197).chr(185) => 'Z',
|
||||
chr(197).chr(186) => 'z', chr(197).chr(187) => 'Z',
|
||||
chr(197).chr(188) => 'z', chr(197).chr(189) => 'Z',
|
||||
chr(197).chr(190) => 'z', chr(197).chr(191) => 's',
|
||||
// Euro Sign
|
||||
chr(226).chr(130).chr(172) => 'E',
|
||||
// GBP (Pound) Sign
|
||||
chr(194).chr(163) => '');
|
||||
|
||||
$string = strtr($string, $chars);
|
||||
}
|
||||
else
|
||||
$cleanedString = strtr($string,
|
||||
'àáâãäçèéêëìíîïñòóôõöùúûüýÿÀÁÂÃÄÇÈÉÊËÌÍÎÏÑÒÓÔÕÖÙÚÛÜÝ',
|
||||
'aaaaaceeeeiiiinooooouuuuyyAAAAACEEEEIIIINOOOOOUUUUY');
|
||||
return $cleanedString;
|
||||
{
|
||||
// Assume ISO-8859-1 if not UTF-8
|
||||
$chars['in'] = chr(128).chr(131).chr(138).chr(142).chr(154).chr(158)
|
||||
.chr(159).chr(162).chr(165).chr(181).chr(192).chr(193).chr(194)
|
||||
.chr(195).chr(196).chr(197).chr(199).chr(200).chr(201).chr(202)
|
||||
.chr(203).chr(204).chr(205).chr(206).chr(207).chr(209).chr(210)
|
||||
.chr(211).chr(212).chr(213).chr(214).chr(216).chr(217).chr(218)
|
||||
.chr(219).chr(220).chr(221).chr(224).chr(225).chr(226).chr(227)
|
||||
.chr(228).chr(229).chr(231).chr(232).chr(233).chr(234).chr(235)
|
||||
.chr(236).chr(237).chr(238).chr(239).chr(241).chr(242).chr(243)
|
||||
.chr(244).chr(245).chr(246).chr(248).chr(249).chr(250).chr(251)
|
||||
.chr(252).chr(253).chr(255);
|
||||
|
||||
$chars['out'] = 'EfSZszYcYuAAAAAACEEEEIIIINOOOOOOUUUUYaaaaaaceeeeiiiinoooooouuuuyy';
|
||||
|
||||
$string = strtr($string, $chars['in'], $chars['out']);
|
||||
$double_chars = array();
|
||||
$double_chars['in'] = array(chr(140), chr(156), chr(198), chr(208), chr(222), chr(223), chr(230), chr(240), chr(254));
|
||||
$double_chars['out'] = array('OE', 'oe', 'AE', 'DH', 'TH', 'ss', 'ae', 'dh', 'th');
|
||||
$string = str_replace($double_chars['in'], $double_chars['out'], $string);
|
||||
}
|
||||
return $string;
|
||||
}
|
||||
|
||||
/* Add for 1.3 compatibility and avoid duplicate code */
|
||||
public static function jsonEncode($result)
|
||||
{
|
||||
return (method_exists('Tools', 'jsonEncode')) ?
|
||||
Tools::jsonEncode($result) : Tools::jsonEncode($result);
|
||||
}
|
||||
|
||||
/*
|
||||
** Fix security and compatibility for PS < 1.4.5
|
||||
*/
|
||||
static function bqSQL($string)
|
||||
public static function bqSQL($string)
|
||||
{
|
||||
return str_replace('`', '\`', pSQL($string));
|
||||
}
|
||||
@ -60,7 +232,7 @@ class MRTools
|
||||
/*
|
||||
** Check zip code by country
|
||||
*/
|
||||
static public function checkZipcodeByCountry($zipcode, $params)
|
||||
public static function checkZipcodeByCountry($zipcode, $params)
|
||||
{
|
||||
$id_country = $params['id_country'];
|
||||
|
||||
@ -84,6 +256,15 @@ class MRTools
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function getFormatedPhone($phone_number)
|
||||
{
|
||||
$begin = Tools::substr($phone_number, 0, 3);
|
||||
$pad_number = (strpos($begin, '+3') !== false) ? 12 :
|
||||
(strpos($begin, '00') ? 13 : 10);
|
||||
|
||||
return str_pad(Tools::substr(preg_replace(MRTools::REGEX_CLEAN_PHONE, '', $phone_number), 0, $pad_number), $pad_number, '0');
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
@ -1,13 +1,13 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
/**
|
||||
* 2007-2015 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 3.0)
|
||||
* 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/osl-3.0.php
|
||||
* 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.
|
||||
@ -18,13 +18,12 @@
|
||||
* 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-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 7233 $
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2015 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");
|
||||
|
||||
|
60
modules/mondialrelay/connexion.php
Executable file
@ -0,0 +1,60 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2015 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 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/osl-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-2015 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
include_once(dirname(__FILE__).'/../../config/config.inc.php');
|
||||
include_once(dirname(__FILE__).'/mondialrelay.php');
|
||||
include_once(dirname(__FILE__).'/errorCode.php');
|
||||
try{
|
||||
if (!Tools::getValue('token'))
|
||||
die('{"error":"Security error"}');
|
||||
if (sha1('mr'._COOKIE_KEY_.'Back') != Tools::getValue('token'))
|
||||
die('{"error":"Security error"}');
|
||||
|
||||
$webservice = MondialRelay::MR_URL.'webservice/Web_Services.asmx?WSDL';
|
||||
$client = new SoapClient($webservice);
|
||||
$params = array();
|
||||
$params['Enseigne'] = Tools::getValue('enseigne');
|
||||
$params['Poids'] = '';
|
||||
$params['Taille'] = '';
|
||||
$params['CP'] = (Configuration::get('PS_SHOP_CODE')) ? Configuration::get('PS_SHOP_CODE') : '75000';
|
||||
$params['Ville'] = '';
|
||||
$id_country = (Configuration::get('PS_SHOP_COUNTRY_ID')) ? Configuration::get('PS_SHOP_COUNTRY_ID') : Configuration::get('PS_COUNTRY_DEFAULT');
|
||||
$params['Pays'] = Country::getIsoById($id_country);
|
||||
$params['Action'] = '';
|
||||
$concat = $params['Enseigne'].$params['Pays'].$params['Ville'].$params['CP'].$params['Poids'].Tools::getValue('key');
|
||||
$params['Security'] = Tools::strtoupper(md5($concat));
|
||||
$result_mr = $client->WSI2_RecherchePointRelais($params);
|
||||
if (($errorNumber = $result_mr->WSI2_RecherchePointRelaisResult->STAT) != 0)
|
||||
{
|
||||
echo '{"error":"'.str_replace('"', '', $statCode[$errorNumber]).'"}';
|
||||
die();
|
||||
}
|
||||
echo '{"success":1}';
|
||||
}
|
||||
catch(Exception $e) {
|
||||
echo '{"error":"'.str_replace('"', '', $statCode[99]).'"}';
|
||||
die();
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
/**
|
||||
* 2007-2015 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
@ -18,10 +18,9 @@
|
||||
* 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-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 7835 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2015 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
@ -31,40 +30,49 @@ include_once('mondialrelay.php');
|
||||
if (Tools::getValue('secure_key') != Configuration::get('MONDIAL_RELAY_SECURE_KEY'))
|
||||
exit;
|
||||
|
||||
$expeditions = Db::getInstance()->ExecuteS('
|
||||
$account_shop = MondialRelay::getAccountDetail();
|
||||
|
||||
$expeditions = Db::getInstance()->executeS('
|
||||
SELECT ms.`exp_number`, ms.`id_cart`, o.`id_order`
|
||||
FROM `'._DB_PREFIX_.'mr_selected` ms
|
||||
LEFT JOIN `'._DB_PREFIX_.'orders` o ON (o.`id_cart` = ms.`id_cart`)
|
||||
WHERE `exp_number` != 0');
|
||||
|
||||
if (empty($expeditions))
|
||||
exit;
|
||||
|
||||
die('No order');
|
||||
else
|
||||
echo 'Start progress<br/>';
|
||||
|
||||
$params = array(
|
||||
'Enseigne' => Configuration::get('MR_ENSEIGNE_WEBSERVICE'),
|
||||
'Enseigne' => $account_shop['MR_ENSEIGNE_WEBSERVICE'],
|
||||
'Langue' => 'FR'
|
||||
);
|
||||
|
||||
require_once(dirname(__FILE__).'/lib/nusoap/lib/nusoap.php');
|
||||
$client_mr = new nusoap_client("http://www.mondialrelay.fr/webservice/Web_Services.asmx?WSDL", true);
|
||||
$client_mr = new SoapClient(MondialRelay::MR_URL.'webservice/Web_Services.asmx?WSDL');
|
||||
$client_mr->soap_defencoding = 'UTF-8';
|
||||
$client_mr->decode_utf8 = false;
|
||||
|
||||
$i = 0;
|
||||
foreach ($expeditions as $expedition)
|
||||
{
|
||||
if ($expedition['id_order'] == NULL)
|
||||
if ($expedition['id_order'] == null)
|
||||
continue;
|
||||
if (OrderHistory::getLastOrderState((int)($expedition['id_order']))->id == Configuration::get('PS_OS_DELIVERED'))
|
||||
$order = new Order((int)($expedition['id_order']));
|
||||
if ($order->current_state == Configuration::get('PS_OS_DELIVERED'))
|
||||
continue;
|
||||
$params['Expedition'] = $expedition['exp_number'];
|
||||
$params['Security'] = strtoupper(md5($params['Enseigne'].$params['Expedition'].'FR'.Configuration::get('MR_KEY_WEBSERVICE')));
|
||||
$params['Security'] = Tools::strtoupper(md5($params['Enseigne'].$params['Expedition'].'FR'.$account_shop['MR_KEY_WEBSERVICE']));
|
||||
|
||||
$is_delivered = 0;
|
||||
$result_mr = $client_mr->call('WSI2_TracingColisDetaille', $params, 'http://www.mondialrelay.fr/webservice/', 'http://www.mondialrelay.fr/webservice/WSI2_TracingColisDetaille');
|
||||
if (isset($result_mr['WSI2_TracingColisDetailleResult']['Tracing']['ret_WSI2_sub_TracingColisDetaille']))
|
||||
foreach ($result_mr['WSI2_TracingColisDetailleResult']['Tracing']['ret_WSI2_sub_TracingColisDetaille'] as $result)
|
||||
if (isset($result['Libelle']) AND $result['Libelle'] == 'COLIS LIVRÉ')
|
||||
$result_mr = $client_mr->WSI2_TracingColisDetaille($params);
|
||||
|
||||
if (isset($result_mr->WSI2_TracingColisDetailleResult->Tracing->ret_WSI2_sub_TracingColisDetaille))
|
||||
foreach ($result_mr->WSI2_TracingColisDetailleResult->Tracing->ret_WSI2_sub_TracingColisDetaille as $result)
|
||||
if (isset($result->Libelle) && $result->Libelle == 'COLIS LIVRÉ')
|
||||
{
|
||||
$is_delivered = 1;
|
||||
break;
|
||||
}
|
||||
|
||||
if ($is_delivered == 1)
|
||||
{
|
||||
@ -73,4 +81,8 @@ foreach ($expeditions as $expedition)
|
||||
$history->changeIdOrderState((int)(Configuration::get('PS_OS_DELIVERED')), (int)($expedition['id_order']));
|
||||
$history->addWithemail();
|
||||
}
|
||||
$i++;
|
||||
|
||||
echo '<p>'.$i.'<p>';
|
||||
}
|
||||
echo 'End progress<br/>';
|
36
modules/mondialrelay/css/index.php
Executable file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2015 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 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/osl-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-2015 PrestaShop SA
|
||||
* @version Release: $Revision: 7776 $
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 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;
|
453
modules/mondialrelay/css/style.css
Executable file
@ -0,0 +1,453 @@
|
||||
div.PS_MRFormType
|
||||
{
|
||||
width:100%;
|
||||
margin-top:20px;
|
||||
}
|
||||
|
||||
div.PS_MRFormType fieldset > ul
|
||||
{
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
div.PS_MRFormType fieldset > ul > li
|
||||
{
|
||||
margin-top:10px;
|
||||
}
|
||||
|
||||
div.PS_MRFormType fieldset > ul > li > span.indication
|
||||
{
|
||||
font-style:italic;
|
||||
font-size:11px;
|
||||
margin-left:5px;
|
||||
}
|
||||
|
||||
div.PS_MRFormType fieldset > ul > li.PS_MRSubmit
|
||||
{
|
||||
text-align:left;
|
||||
padding-left:150px;
|
||||
}
|
||||
|
||||
div.PS_MRSubmitButton
|
||||
{
|
||||
text-align:center;
|
||||
margin-top:20px;
|
||||
}
|
||||
|
||||
.PS_MRRequireFields
|
||||
{
|
||||
display:inline;
|
||||
padding:2px 10px;
|
||||
}
|
||||
|
||||
tr.PS_MRErrorList td
|
||||
{
|
||||
border: 1px solid #EC9B9B;
|
||||
background-color: #FFE2E3;
|
||||
color: #383838;
|
||||
font-weight: 700;
|
||||
line-height: 18px;
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
tr.PS_MRSuccessList td
|
||||
{
|
||||
border: 1px solid #72CB67;
|
||||
background-color: #DFFAD3;
|
||||
color: #383838;
|
||||
font-weight: 700;
|
||||
line-height: 18px;
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
table#PS_MRHistoriqueTableList
|
||||
{
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
table#PS_MRHistoriqueTableList tr > td > img
|
||||
{
|
||||
margin-bottom:5px;
|
||||
}
|
||||
|
||||
table#PS_MRHistoriqueTableList
|
||||
{
|
||||
width:100%;
|
||||
}
|
||||
|
||||
table#PS_MRHistoriqueTableList tr
|
||||
{
|
||||
height:30px;
|
||||
}
|
||||
|
||||
div#otherErrors
|
||||
{
|
||||
display:none;
|
||||
}
|
||||
|
||||
div#otherErrors span
|
||||
{
|
||||
text-align:left;
|
||||
}
|
||||
|
||||
div#PS_MRUnRemovedItem
|
||||
{
|
||||
display:none;
|
||||
color:#FF0000;
|
||||
}
|
||||
|
||||
.shippingList {
|
||||
|
||||
}
|
||||
.shippingList li {
|
||||
margin: 5px;
|
||||
display: block;
|
||||
clear: both;
|
||||
}
|
||||
.shipLabel {
|
||||
width: 230px;
|
||||
float: left;
|
||||
text-align: left;
|
||||
}
|
||||
.selectShipping {
|
||||
width: 100px;
|
||||
}
|
||||
.settingsList {
|
||||
width: 400px;
|
||||
float: left;
|
||||
margin-right: 10px;
|
||||
}
|
||||
.settingsList li {
|
||||
display: block;
|
||||
padding: 5px;
|
||||
clear: both;
|
||||
}
|
||||
.upsLabel {
|
||||
width: 170px;
|
||||
float: left;
|
||||
text-align: left;
|
||||
}
|
||||
.upsInput {
|
||||
float: left;
|
||||
}
|
||||
.upsSubmit {
|
||||
text-align: center;
|
||||
}
|
||||
.addMethodForm {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
table#orders
|
||||
{
|
||||
width:100%;
|
||||
}
|
||||
|
||||
table#orders td
|
||||
{
|
||||
text-align:center;
|
||||
height: 30px;
|
||||
}
|
||||
|
||||
table#orders th
|
||||
{
|
||||
text-align:center;
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
table#orders th.fixed
|
||||
{
|
||||
width:70px;
|
||||
}
|
||||
|
||||
table#orders tr
|
||||
{
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
div.submit_button
|
||||
{
|
||||
margin-top:10px;
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
div.PS_MRLoader
|
||||
{
|
||||
display:none;
|
||||
}
|
||||
|
||||
.MR_form_admintab h3
|
||||
{
|
||||
margin: 10px;
|
||||
margin-bottom: .5em;
|
||||
line-height: 1.4em;
|
||||
}
|
||||
|
||||
div#PS_MRAskBackupContent
|
||||
{
|
||||
border:1px solid #000;
|
||||
background: url(../img/logo_hd.png) no-repeat 10px 50px #BEBEBE;
|
||||
line-height:18px;
|
||||
font-size:14px;
|
||||
height:190px;
|
||||
}
|
||||
|
||||
div#PS_MRAskBackupContent div
|
||||
{
|
||||
width:290px;
|
||||
float:right;
|
||||
margin-right:20px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
div#PS_MRAskBackupContent div > p
|
||||
{
|
||||
line-height: 30px;
|
||||
}
|
||||
|
||||
div#PS_MRAskBackupContent h2
|
||||
{
|
||||
padding-top:10px;
|
||||
}
|
||||
|
||||
tr.PS_MRSelectedCarrier > td
|
||||
{
|
||||
text-align: center;
|
||||
border-bottom: 1px black;
|
||||
}
|
||||
|
||||
.PS_MRWarn
|
||||
{
|
||||
border: 1px solid #D3C200;
|
||||
background-color: #FFFAC6;
|
||||
line-height: 20px;
|
||||
}
|
||||
|
||||
.PS_MRRelayPointInfo
|
||||
{
|
||||
text-align: left;
|
||||
vertical-align: top;
|
||||
margin: 10px 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.PS_MRRelayPointInfo:hover
|
||||
{
|
||||
background-color: #f4f4f4;
|
||||
}
|
||||
|
||||
.PS_MRRelayPointInfo img
|
||||
{
|
||||
height: 40px;
|
||||
float:left;
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
||||
.PS_MRRelayPointInfo p
|
||||
{
|
||||
float:left;
|
||||
width:360px;
|
||||
text-align: justify;
|
||||
}
|
||||
|
||||
.PS_MRFloatRelayPointSelecteIt
|
||||
{
|
||||
display:block;
|
||||
}
|
||||
|
||||
.PS_MRRelayPointInfo:hover .PS_MRFloatRelayPointSelecteIt
|
||||
{
|
||||
display:block;
|
||||
}
|
||||
|
||||
.PS_MRRelayPointInfo .PS_MRFloatRelayPointSelected
|
||||
{
|
||||
color:#333333;
|
||||
background:url(../img/selectRelayPoint.png) no-repeat 0px -25px;
|
||||
}
|
||||
|
||||
.PS_MRFloatRelayPointSelected
|
||||
{
|
||||
display:block;
|
||||
}
|
||||
|
||||
.PS_MRFloatRelayPointSelecteIt a.PS_MRSelectRelayPointButton
|
||||
{
|
||||
background: url("../img/selectRelayPoint.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
|
||||
color: #666666;
|
||||
display: block;
|
||||
float: right;
|
||||
height: 25px;
|
||||
margin-top: 8px;
|
||||
padding: 0 20px 0 25px;
|
||||
text-decoration: none;
|
||||
width: 90px;
|
||||
line-height: 25px;
|
||||
}
|
||||
|
||||
.PS_MRFloatRelayPointSelected a.PS_MRSelectRelayPointButton
|
||||
{
|
||||
background: url("../img/selectRelayPoint.png") no-repeat scroll 0 -25px rgba(0, 0, 0, 0);
|
||||
color: #333333;
|
||||
display: block;
|
||||
float: right;
|
||||
font-size: 10px;
|
||||
height: 25px;
|
||||
margin-top: 8px;
|
||||
padding: 0 20px 0 25px;
|
||||
text-decoration: none;
|
||||
width: 90px;
|
||||
line-height: 25px;
|
||||
}
|
||||
|
||||
a.PS_MRSelectRelayPointButton:hover
|
||||
{
|
||||
color:#333333;
|
||||
background:url(../img/selectRelayPoint.png) no-repeat 0px -25px;
|
||||
}
|
||||
|
||||
.PS_MRGmapDefaultPosition
|
||||
{
|
||||
display:none;
|
||||
}
|
||||
|
||||
div.PS_MRGmapStyle
|
||||
{
|
||||
width: 550px;
|
||||
height:250px;
|
||||
display: none;
|
||||
}
|
||||
|
||||
div#PS_MRPersonalizedFields
|
||||
{
|
||||
display:none;
|
||||
}
|
||||
|
||||
.clearfix:before,
|
||||
.clearfix:after
|
||||
{
|
||||
content: ".";
|
||||
display: block;
|
||||
height: 0;
|
||||
overflow: hidden
|
||||
}
|
||||
.clearfix:after {clear: both}
|
||||
.clearfix {zoom: 1}
|
||||
|
||||
.PS_MRGmapBulbe
|
||||
{
|
||||
width:405px;
|
||||
height:66px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.MR_date {width:450px;position:relative;float:right; line-height: 9px;}
|
||||
.MR_date span.titre {margin-left:50px;font-weight:bold;}
|
||||
.MR_date span.vacances {margin-left:5px;color:Red; }
|
||||
.MR_date table {border-spacing:3px;font-size:11pt; border: solid 1px #eee;}
|
||||
.MR_date tr.p {background-color:#e9e9e9; height:9px;}
|
||||
.MR_date td.g {font-weight:bold;}
|
||||
.MR_date td.d {}
|
||||
|
||||
/* 1.3 compatibility*/
|
||||
.MR_warn
|
||||
{
|
||||
border: 1px solid #D3C200;
|
||||
background-color: #FFFAC6;
|
||||
color: #383838;
|
||||
font-weight: 700;
|
||||
margin: 0 0 10px 0;
|
||||
line-height: 20px;
|
||||
padding: 10px 0px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* 1.3 compatibility*/
|
||||
.MR_error
|
||||
{
|
||||
border: 1px solid #EC9B9B;
|
||||
background-color: #FAE2E3;
|
||||
color: #383838;
|
||||
font-weight: 700;
|
||||
margin: 0 0 10px 0;
|
||||
line-height: 20px;
|
||||
padding: 10px 0px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.MR_error ul > li, .MR_warn ul > li
|
||||
{
|
||||
list-style: none;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
/* 1.3 - 1.4 compatibility*/
|
||||
.MR_hint
|
||||
{
|
||||
margin-top: 4px;
|
||||
margin-bottom: 2px;
|
||||
border: 1px solid #268CCD;
|
||||
padding: 8px 6px 8px 34px;
|
||||
color: #383838;
|
||||
background: #F1F9FF url(../img/help.png) no-repeat 6px 5px;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
#MR_config_menu
|
||||
{
|
||||
background-color: #F8F8F8;
|
||||
border: 1px solid #CCC;
|
||||
margin-bottom: 10px;
|
||||
padding: 10px 0;
|
||||
border-radius: 3px;
|
||||
-moz-border-radius: 3px;
|
||||
-webkit-border-radius: 3px;
|
||||
border-image: initial;
|
||||
height: 130px;
|
||||
}
|
||||
|
||||
#MR_config_menu ul
|
||||
{
|
||||
margin: 0 auto;
|
||||
padding: 0;
|
||||
width:100%;
|
||||
}
|
||||
|
||||
#MR_config_menu ul > li
|
||||
{
|
||||
color: #666;
|
||||
float: left;
|
||||
list-style: none outside none;
|
||||
padding: 10px 40px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#MR_config_menu ul > li.selected
|
||||
{
|
||||
color: #383838;
|
||||
font-weight: bolder;
|
||||
border: 1px solid #CCC;
|
||||
border-radius: 3px;
|
||||
-moz-border-radius: 3px;
|
||||
-webkit-border-radius: 3px;
|
||||
background-color: #EBEDF4;
|
||||
}
|
||||
|
||||
#MR_config_menu ul > li.selected > a
|
||||
{
|
||||
color: #383838;
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
#MR_error_account
|
||||
{
|
||||
display: none;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.PS_MRFormType
|
||||
{
|
||||
display: none;
|
||||
}
|
||||
|
||||
.send_disable_carrier_form {
|
||||
cursor: pointer;
|
||||
}
|
@ -2,175 +2,181 @@
|
||||
|
||||
global $_MODULE;
|
||||
$_MODULE = array();
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_e0626222614bdee31951d84c64e5e9ff'] = 'Auswählen';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_91b442d385b54e1418d81adc34871053'] = 'Ausgewählt';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_ef2a1f426c2c289ed5986c7636a5d696'] = 'Bitte wählen Sie einen Paketstützpunkt';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_80a0c205cd57b22fca7f174253870300'] = 'Öffnungszeiten';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_2b56b60f878922093facd42284848a0c'] = 'Mehr...';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_e82faee1422140edd04b2f94c5051500'] = 'Azione avvenuta con successo';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_3b2d373418745276ae6e207421245cdc'] = 'Stato ordine aggiornato';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_b4ac3d3f15bc0984d0906aff1202e701'] = 'Non posso aggiornare l\'account negozio';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_44585fcd617dce6416d8283b026714c1'] = 'Mondial Relay';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_ed4a3b96dc1f38c160775cac1f7bcd6d'] = 'An Mondial Relay Stützpunkte liefern.';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_70d70ce314f545b7c500a086f147f64b'] = 'Ungültiger Shop';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_709b076565df5fa98cdb2528d897633d'] = 'Ungültiger Mark-Code';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_c86508f5bc6b4456e7003d6a1868689d'] = 'Ungültiger Webservice Schlüssel';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_ea9261a3dad976b40ff2088a19fda2c3'] = 'Ungültige Sprache';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_4eb287cc225ba0e1bcfe9cc1b8315def'] = 'Ungültiger Gewichtskoeffizient';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_f82576de014726e9ef9b4ed2a9eb947b'] = 'Bitte konfigurieren Sie Ihre Mondial Relay-Konto-Einstellungen vor dem Erstellen eines Lieferanten';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_70ff82d47f295f730c6accf07a2948e8'] = 'Ungültiger Versanddienstnamen';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_e1f1787db2fee596f4c3bfaf1d098f8d'] = 'Ungültiger Col-Modus';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_9414b7de379a09941e894d28f19949ae'] = 'Ungültiger Liefermodus';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_5eeb9ca7eee4be7192dd10d917f79a12'] = 'Ungültiger Assurance-Modus';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_8b446ac2013dc7085802de71cc342ead'] = 'Sie müssen mindestens ein Zustellungsland angeben';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_b9a85d87ae6dd77f2107734a4cd0bb15'] = 'Ungültiger Google-Schlüssel';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_979c6094728c14aac1b66d544dc5cebd'] = 'Ungültiger Bestellstatus';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_808fb4e3a637a759565de1d314ea526f'] = 'Die übermittelte Hauptadresse hat ein ungültiges Format';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_c888438d14855d7d96a2724ee9c306bd'] = 'Einstellungen erfolgreich aktualisiert';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_07213a0161f52846ab198be103b5ab43'] = 'Fehler';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_cb5e100e5a9a3e7f6d1fd97512215282'] = 'Fehler';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_350c1cc4343826a89f08a33bb49c6d98'] = 'Mondial Relay Bewertungsmodul konfigurieren';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_5a2355a42ba3ab265701183c914467f2'] = 'Versuchen Sie den Cache und Kompilierung auf AUS zu stellen';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_3de769f9a81eed916583d5b35c58dbdd'] = 'falls Sie mit dem Modul nach einer Aktualisierung Probleme haben sollten';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_8f8b21bd013b38d1e3059557c22a57e7'] = 'Nutzen Sie die folgende Kurzanleitung, um das Mondial Relay Modul zu konfigurieren.';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_d21a9f93917604d5490ad529a7cf1ff9'] = 'So erstellen Sie eine Mondial Relay Lieferanten';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_c6a2e6af5fff47adb3afd780b97d9b4b'] = 'Geben Sie Ihre Mondial Relay-Konto-Einstellungen ein und speichern Sie sie';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_94fbe32464fcfa902feed9f256439833'] = 'Erstellen sie einen Versanddienst mit dem nachstehenden Formular \"Neuen Versanddienst erstellen\"';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_b962d8fb95f5a439f50502152f3bad71'] = 'Definieren Sie einen Preis für Ihren Lieferanten auf';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_faf1247ae6846a9955a466d4f301bbe4'] = 'Der Lieferanten-Seite';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_10d78806b84b97ebc774e9f6277af6ac'] = 'Um Etiketten zu generieren, müssen Sie eine gültige und registrierte Adresse Ihres Shops auf Ihrer';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_af5efea250326c1c34d69aa9364b482c'] = 'Kontakt-Seite haben';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_362dff77f7403550e886db901404856c'] = 'Löschen erfolgreich';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_66661dacf33146201b60dc16520ddd68'] = 'Fügen Sie eine Versandart hinzu';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_b651efdb98a5d6bd2b3935d0c3f4a5e2'] = 'Erforderlich';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_531e144cc23ef08408b81cb4d9c641dc'] = 'Lieferantenname';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_c9b415ea1576b19d10d42b332798cd16'] = 'Sammel-Modus';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_d24262afca47ba80b691c878243441e8'] = 'Sammeln im Shop';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_201bdb87f8e278b943d07ae924d5de6e'] = 'Liefer-Modus';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_142ef02888af88b8b772335277d1c0c8'] = 'Lieferung an einen Abholpunkt';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_eeab8b7cf3c7a558a0e8a4050fa994ca'] = 'Colis Drive Lieferung';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_8f7794b107749728c3333ef38d2687e8'] = 'Hauslieferung RDC (1 Person)';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_e451efc8ce05b96b214b4c2935f2c657'] = 'Besondere Hauslieferung (2 Personen)';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_eaff1bdf24fcffe0e14e29a1bff51a12'] = 'Versicherung';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_96ba408f20bc3e065f400c650d32fd1a'] = 'Keine Versicherung';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_e5a8fafb1dfb538c172e1e014e86b871'] = 'Zusatzversicherung Lv1';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_b02f8d6d4b6217cca317161c87f64065'] = 'Zusatzversicherung Lv2';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_90b95ae88150c6a34c4129dc4f1ebbd5'] = 'Zusatzversicherung Lv3';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_c15b40b8c535191f6f0b6f9beaced3cf'] = 'Zusatzversicherung LV4';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_b67a442fff3ca0a03ea253b0668f946d'] = 'Zusatzversicherung Lv5';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_33cbd0d8b6476501f55a8320481ec0f1'] = 'Zustellländer:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_aef71ba4fd060dea2e2c76d1b5076caf'] = 'Halten Sie die die STRG-Taste gedrückt, um mehrere Länder zu wählen';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_0309a6c666a7a803fdb9db95de71cf01'] = 'Frankreich';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_6c1674d14bf5f95742f572cddb0641a7'] = 'Belgien';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_06630c890abadde9228ea818ce52b621'] = 'Luxemburg';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_907eba32d950bfab68227fd7ea22999b'] = 'Spanien';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_0c24ec05a02c710cedd400e3680d8b81'] = 'Versandart-Liste';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_14039af96b01e718a9c9d9c1259b6472'] = 'Keine Versandmethoden erstellt';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_8596361cec00f8d2438d264827eee737'] = 'Versand konfigurieren';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_9ffc3ccc968a96d902af963c6d7b4e97'] = 'Erweiterte Einstellungen';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_1d1d57f5840e1da871622295ba206b30'] = 'Klicken um Optionen anzuzeigen oder zu verbergen';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_fcf5b2122da1d5a5f5c7253b96a3f9d9'] = 'URL Cron Task:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_759e1f68a70bbe8c48eb30fa4b512de8'] = 'Sei haben Mondialrelay nicht durch die Installationsmethode aktualisiert. Führen Sie bitte folgende Einstellungen manuell durch, damit der Ticket-Prozess reibungslos funktioniert';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_bbd9bc77f1f5b6a9edce6db062b607c9'] = 'Dieser Teil erlaubt Ihnen die Daten zwischenzuspeichern, nachdem Sie ein MondialRelay Ticket generiert haben. Einige Felder sind in der Länge und nur auf Buchstaben beschränkt.';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_9127fe218b2cac7f0c8aecd7016a891d'] = 'Shopname';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_7e9bbecd32836500b557db33c3b3e93b'] = 'Der veon Mondialrelay genutzte Schlüssel lautet';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_32963eea43914b6a418fb2fd9850beb9'] = 'und hat folgenden Standard-Wert';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_c9cc8cce247e49bae79f15173ce97354'] = 'Speichern';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_f4f70727dc34561dfde1a3c529b6205c'] = 'Einstellungen';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_d02bbc3cb147c272b0445ac5ca7d1a36'] = 'Bestellstatus';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_818f954f4838ecad839c5dcbd287d291'] = 'Wählen Sie den Bestellstatus für Marken. Sie können die Marken auf';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_5117e194c641ad4fc55417b554aead3c'] = 'der Mondial Relay Verwaltungsseite verwalten';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_1ba3935c9858ffb8e19a35ca640b8505'] = 'Mondial Relay Kontoeinstellungen';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_a125105400f6e4ee4574da3793af5ef2'] = 'Diese Parameter werden Ihnen von Mondialrelay mitgeteilt, sobald Sie den Dienst abonniert haben';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_12a3fbd35c1cab4b1101b91d708efd15'] = 'mr_marke_WebService:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_6f0434b67007b555dfd1201f4e0d5254'] = 'mr_code_marke:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_08f785193c96b2a78dec8d76a46648d6'] = 'mr_Schlüssel_WebService:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_0dae2d7c71f2daaedb00191af25dc28d'] = 'mr_Sprache:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_a26329cba9723551cb8654deba32872b'] = 'mr_Gewicht_koef:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_99244b234ec089eca40ff9e8ec343e87'] = 'Gramm = 1';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_61cbc2d26b4157292673c772ddd6c0f7'] = 'Einstellungen aktualisieren';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_2673bca5ba0a7871770e69c962e6ce38'] = 'Nb Versand:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_0dbe844fb964d5eca2f51be724e43294'] = 'Label URL';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_c6aefd5e2191e1210a2f50416812b517'] = 'Follow-up-URL';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_61e70b58e38fd01daa254f44c4fa264b'] = 'Nb Abholpunkt:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_bba366864d25056c941b72f18ef79e7c'] = 'Dieser Fehler ist nicht bekannt :';
|
||||
$_MODULE['<{mondialrelay}prestashop>orderdetail_81b7b4587a2a3ea7a0d6bb1df3fbba54'] = 'Lieferung nach';
|
||||
$_MODULE['<{mondialrelay}prestashop>orderdetail_c2d05abc7f5ebdc72b6656df35038b43'] = 'Meine Sendung auf der Mondial Relay Webseite verfolgen';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_a1c3470a944b9625cfb924fd15c8bdbf'] = 'Bitte mindestens eine Bestellung auswählen';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_dc41aac14af17f1d19fca5e3b9439e74'] = 'Dieser Schlüssel';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_306b346c19017609403424203ea3d720'] = 'ist leer und muss angegeben werden';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_e6940b76f045c8bc0aaaa5b2476cdaf7'] = 'Die Anfrage scheint ungültig zu sein';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_c9b4de92f371ae545ad6f051c07d58ca'] = 'Fehler Nummer:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_ea5f761be4e4888eabf4e1501d7817d1'] = 'Detail:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_eabb11bf9623f08409a0a4c9d035a336'] = 'Versand-Nummer:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_b92c3d3319314513c547675924ceecd1'] = 'Ticket URL : ';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_66b793b6b4125e300717e8cf7449f533'] = 'Tracking URL: ';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_2653c23b8c0daac59571e4be5e8fa7d0'] = 'Der Webservice von Mondial Relay ist zu r Zeit nicht erreichbar';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_26b6b6eaec970108c5e84286159fbf48'] = 'Bitte prüfen Sie Ihre Spracheinstellungen';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_557595c2e17c9948a9448eb763ac1a88'] = 'Bitte prüfen Sie Ihre Namenseinstellungen';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_017ca6b770ad53669a4eec82894dfcd3'] = 'Bitte prüfen Sie Ihre Adresseneinstellungen';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_3f79e1fc66b4f9cca7bd68cab176020d'] = 'Bitte prüfen Sie Ihre Städteeinstellungen';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_404665d9b65239985d59b30b3dcb26b5'] = 'Bitte prüfen Sie Ihre PLZ-Einstellungen';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_74cb73eddbe6eaf556023f943fc7e1fd'] = 'Das Format Ihrer PLZ entspricht nicht dem Länderformat oder Sie haben keine entsprechende PLZ angegeben.';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_0b8a30478b9572b86718989d483fd88d'] = 'Bitte prüfen Sie Ihre Ländereinstellungen';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_7ddf2d94bf037b7d1088c0600ea589c3'] = 'Bitte prüfen Sie Ihre Telefonnummer-Einstellungen';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_9c7ce7be9a2c593b24d448edb4f804e0'] = 'Bitte prüfen Sie Ihre Maileinstellungen';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_14288d48d107056c1acf8aaae1bf282b'] = 'Kudenadresse nicht gefunden';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_dc41aac14af17f1d19fca5e3b9439e74'] = 'Der Schlüssel';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_135a7b9a62531e066a95093d8951b344'] = 'hat kein gültiges Datenformat';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_e6940b76f045c8bc0aaaa5b2476cdaf7'] = 'Die Anfrage ist ungültig:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_c9b4de92f371ae545ad6f051c07d58ca'] = 'Fehler: ';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_ea5f761be4e4888eabf4e1501d7817d1'] = 'Details:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_4e274658c9e97c2a336dde79dd0a7772'] = 'Mondial Relay kann in Ihrer Nähe leider keinen Stützpunkt finden. Haben Sie Ihre Adresse korrekt angegeben ?';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_2653c23b8c0daac59571e4be5e8fa7d0'] = 'Mondial Relay Seite ist im Moment nicht verfügbar.';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgettickets_dc41aac14af17f1d19fca5e3b9439e74'] = 'Der Schlüssel';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgettickets_135a7b9a62531e066a95093d8951b344'] = 'hat kein gültiges Datenformat';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgettickets_e6940b76f045c8bc0aaaa5b2476cdaf7'] = 'Die Anfrage ist ungültig:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgettickets_c9b4de92f371ae545ad6f051c07d58ca'] = 'Fehler:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgettickets_ea5f761be4e4888eabf4e1501d7817d1'] = 'Details: ';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgettickets_2653c23b8c0daac59571e4be5e8fa7d0'] = 'Der Webservice von Mondial Relay ist zu r Zeit nicht erreichbar';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrmanagement_38b4abe2f5860f034e315f2da648a3d6'] = 'Mondial Relay Uninstall';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrmanagement_77bad09c976ec16f38381dc220139367'] = 'Sie versuchen das Modul zu deinstallieren, alle Datenbankeinträge werden ebenso entfernt';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrmanagement_09c081633d484a62a2f6940c12a0de36'] = 'Daten belassen und deinstallieren';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrmanagement_0b7f47fce1d82d53244771c64b1535c0'] = 'Deaktivieren (alle Daten löschen) und deinstallieren';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrmanagement_ea4788705e6873b424c65e91c2846b19'] = 'stornieren';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrmanagement_a42bb0eaa485682166770a54469385f6'] = 'Einige Einträge konnten nicht entfernt werden, bitte versuchen Sie es noch einmal.';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrmanagement_11744bfebb33e52be37a66a530b7045d'] = 'Bitte wählen Sie mindestens ein Verlaufselement aus';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_14288d48d107056c1acf8aaae1bf282b'] = 'Kundenadresse konnte nicht gefunden werden';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_dc41aac14af17f1d19fca5e3b9439e74'] = 'Dieser Schlüssel';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_306b346c19017609403424203ea3d720'] = 'ist leer und muss angegeben werden';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_e6940b76f045c8bc0aaaa5b2476cdaf7'] = 'Die Anfrage ist ungültig:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_c9b4de92f371ae545ad6f051c07d58ca'] = 'Es ist ein Fehler in der Nummer vorhanden:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_ea5f761be4e4888eabf4e1501d7817d1'] = 'Details:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_6f8522e0610541f1ef215a22ffa66ff6'] = 'Montag';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_5792315f09a5d54fb7e3d066672b507f'] = 'Dienstag';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_796c163589f295373e171842f37265d5'] = 'Mittwoch';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_78ae6f0cd191d25147e252dc54768238'] = 'Donnerstag';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_c33b138a163847cdb6caeeb7c9a126b4'] = 'Freitag';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_8b7051187b9191cdcdae6ed5a10e5adc'] = 'Samstag';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_9d1a0949c39e66a0cd65240bc0ac9177'] = 'Sonntag';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_2653c23b8c0daac59571e4be5e8fa7d0'] = 'Modial Relay Webservice ist im Moment nicht verfügbar.';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_d1908b9b04e81c4b6112e38b608c49af'] = 'Sie haben den Fehler korrigiert. Besten Dank.';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_ccce63109db30895153094de05c60fa5'] = 'Kontaktseite';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_7c5fd3d93bd19d81953db3b374997961'] = 'Bitte überprüfen Sie diese Warnung, es kann sein dass die Generierung Ihres Tickets deshalb fehlschlägt';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_de21dc13e1ea638777fbfad49f88b332'] = 'Alle Bestellugen, die den Status haben';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_a0bf3c9ac2d785f053d883b8746e91ba'] = 'wird für die Erstellung Ihres Aufklebers verfügbar sein';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_2345e28c9b93f368968be4781ed70f5c'] = 'Konfiguration ändern';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_37c85a61df6352af7285c307022c4413'] = 'Keine Bestelungen mit diesem Status';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_d79cf3f429596f77db95c65074663a54'] = 'Bestell ID';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_ce26601dac0dea138b7295f02b7620a7'] = 'Kunde';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_0eede552438475bdfe820c13f24c9399'] = 'Gesamtpreis';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_f4e8b53a114e5a17d051ab84d326cae5'] = 'Versandkosten Gesamt';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_44749712dbec183e983dcd78a7736c41'] = 'Datum';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_3715c824cbc0f966c61a72254f248a2e'] = 'Gewicht (Gramm)';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_6ccc0fdff9995e1a0fce00c99e5b6085'] = 'MR Nummer';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_f9c50cba4de9032d7a6797a2458f8ed9'] = 'MR Land';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_428c091372d840900cf8536519fa0056'] = 'Exp Nummer';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_a254c25adc7d10d7e9c4889484f875a5'] = 'Detail';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_4351cfebe4b61d8aa5efa1d020710005'] = 'Ansicht';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_2e01172e31495f41fcebcf3f831cc82c'] = 'Erfolgreich abgeschlossen';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_32b919d18cfaca89383f6000dcc9c031'] = 'generieren';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_4f1a377c20ace646ddd303ad1e1d243d'] = 'Aufkleber Verlauf';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_e1a98101d56e29eeea312a0eb2748a92'] = 'Exp Nr.';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_aab39f783ba2e72eaad1770f4d9ad0c4'] = 'A4 Aufkleber drucken';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_3eb2bc1ee46258d2a166e89398756b3e'] = 'A5 Aufkleber drucken';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_fa98e6528c9df7f26978c2beb7de3d99'] = 'Verlauf löschen';
|
||||
|
||||
?>
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_ed4a3b96dc1f38c160775cac1f7bcd6d'] = 'Consegna nei punti Relay';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_d2286c9c8c8f92cb0e805b17834591b0'] = 'Insegna non valida';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_709b076565df5fa98cdb2528d897633d'] = 'Codice marchio non valido';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_c86508f5bc6b4456e7003d6a1868689d'] = 'Chiave webservice non valida';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_ea9261a3dad976b40ff2088a19fda2c3'] = 'Lingua non valida';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_4eb287cc225ba0e1bcfe9cc1b8315def'] = 'Coefficiente di peso non valido';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_70ff82d47f295f730c6accf07a2948e8'] = 'Nome del corriere non valido';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_e1f1787db2fee596f4c3bfaf1d098f8d'] = 'Col mode non valido';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_9414b7de379a09941e894d28f19949ae'] = 'Modalità di consegna non valida';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_5eeb9ca7eee4be7192dd10d917f79a12'] = 'Modalità di garanzia non valida';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_8b446ac2013dc7085802de71cc342ead'] = 'È necessario scegliere almeno un paese di consegna';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_979c6094728c14aac1b66d544dc5cebd'] = 'Stato dell\'ordine non valido';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_e82faee1422140edd04b2f94c5051500'] = 'Azione avvenuta con successo';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_672facd73d4aee44c116cfd95298db87'] = 'Dettaggli account aggiornati con successo';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_b4ac3d3f15bc0984d0906aff1202e701'] = 'Non posso aggiornare l\'account negozio';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_ea50be3d60be594e10e9e3560cb9159f'] = 'Metodo di spedizione aggiunto';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_d0cfdfcfb71029b561f5ebdc176d87ca'] = 'Stato ordine cambiato con succsso';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_7534411af2e35bed1f79df5938f077f9'] = 'Spedizioniere trovato (disabilitato dal database di prestashop)';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_2673bca5ba0a7871770e69c962e6ce38'] = 'Numero spedizione:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_0dbe844fb964d5eca2f51be724e43294'] = 'Etichetta URL';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_c6aefd5e2191e1210a2f50416812b517'] = 'URL di tracking';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_61e70b58e38fd01daa254f44c4fa264b'] = 'Numero punto relay:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_aa625fced6f01ae595b6a9ac499c2ecf'] = 'Range di peso non può essere aggiunto';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_63d15383121b5bb5c53323f3f96bd1f2'] = 'Range di prezzo non può essere aggiunto';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_d4d197dd028e28ae56208971b564921a'] = 'Zona di default non può essere aggiunta';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_760ac6deb1c5b84321f65ba0c7f319f5'] = 'Zona dello spedizioniere e di destinazione non può essere aggiunta';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_8bf569ff65b32464e623ca9e9a10688d'] = 'Spedizioniere non può essere creato in PrestaShop';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_6ed26bdf3f9141ddca4ede91f943e567'] = 'Metodo di spedizione non può essere aggiunto per il modulo';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_af135815ccf731bcbffb522004762b57'] = 'Spedizioniere non può essere cancellato';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_bba366864d25056c941b72f18ef79e7c'] = 'Questo errore non è contemplata:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_a1c3470a944b9625cfb924fd15c8bdbf'] = 'Si prega di selezionare almeno un ordine';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_dc41aac14af17f1d19fca5e3b9439e74'] = 'Questo tasto';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_306b346c19017609403424203ea3d720'] = 'è vuoto e deve essere riempito';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_c9b4de92f371ae545ad6f051c07d58ca'] = 'C\'è un numero di errore:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_ea5f761be4e4888eabf4e1501d7817d1'] = 'Dettagli:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_eabb11bf9623f08409a0a4c9d035a336'] = 'Spedizione Numero:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_b92c3d3319314513c547675924ceecd1'] = 'Biglietto URL:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_66b793b6b4125e300717e8cf7449f533'] = 'URL di tracciamento:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_26b6b6eaec970108c5e84286159fbf48'] = 'Si prega di controllare la configurazione del linguaggio';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_557595c2e17c9948a9448eb763ac1a88'] = 'Si prega di controllare la configurazione del nome del negozio';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_017ca6b770ad53669a4eec82894dfcd3'] = 'Verifica il tuo indirizzo 1 configurazione';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_3f79e1fc66b4f9cca7bd68cab176020d'] = 'Si prega di controllare la configurazione della città';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_404665d9b65239985d59b30b3dcb26b5'] = 'Si prega di controllare la configurazione del codice postale';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_0b8a30478b9572b86718989d483fd88d'] = 'Si prega di controllare la configurazione del paese';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_7ddf2d94bf037b7d1088c0600ea589c3'] = 'Si prega di controllare la configurazione del telefono';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_9c7ce7be9a2c593b24d448edb4f804e0'] = 'Controlla la tua configurazione della posta';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_85e6a18230d49abf8cfe912809185258'] = 'Una versione precedente alla 1.4 di PrestaShop non può validare il CAP';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_14288d48d107056c1acf8aaae1bf282b'] = 'Indirizzo di un cliente non può essere trovato';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_dc41aac14af17f1d19fca5e3b9439e74'] = 'Questo tasto';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_135a7b9a62531e066a95093d8951b344'] = 'non ha un formato Valide valore';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_e6940b76f045c8bc0aaaa5b2476cdaf7'] = 'Sembra che la richiesta non è valida:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_c9b4de92f371ae545ad6f051c07d58ca'] = 'C\'è un numero di errore:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_ea5f761be4e4888eabf4e1501d7817d1'] = 'Dettagli:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_4e274658c9e97c2a336dde79dd0a7772'] = 'MondialRelay non riesce a trovare alcun punto di relè vicino al vostro indirizzo. Forse il vostro indirizzo non è riempita?';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_2653c23b8c0daac59571e4be5e8fa7d0'] = 'Il webservice Mondial Relay non è attualmente affidabile';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgettickets_dc41aac14af17f1d19fca5e3b9439e74'] = 'Questo tasto';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgettickets_135a7b9a62531e066a95093d8951b344'] = 'non ha un formato Valide valore';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgettickets_e6940b76f045c8bc0aaaa5b2476cdaf7'] = 'Sembra che la richiesta non è valida:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgettickets_c9b4de92f371ae545ad6f051c07d58ca'] = 'C\'è un numero di errore:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgettickets_ea5f761be4e4888eabf4e1501d7817d1'] = 'Dettagli:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgettickets_2653c23b8c0daac59571e4be5e8fa7d0'] = 'Il webservice Mondial Relay non è attualmente affidabile';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrmanagement_38b4abe2f5860f034e315f2da648a3d6'] = 'Disinstallazione Mondial Relay';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrmanagement_a4691c957e81a6f0b6f0ed44f8f2dfe8'] = 'Sei tentativo di disinstallare il modulo, vuoi rimuovere il database';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrmanagement_09c081633d484a62a2f6940c12a0de36'] = 'Keep it e disinstallare';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrmanagement_0b7f47fce1d82d53244771c64b1535c0'] = 'Rimuovere e disinstallare';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrmanagement_ea4788705e6873b424c65e91c2846b19'] = 'Annullare';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrmanagement_a42bb0eaa485682166770a54469385f6'] = 'Alcune voci non possono essere rimossi, prova a rimuoverlo di nuovo';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrmanagement_11744bfebb33e52be37a66a530b7045d'] = 'Si prega di selezionare almeno un elemento di storia';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_14288d48d107056c1acf8aaae1bf282b'] = 'Indirizzo di un cliente non può essere trovato';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_dc41aac14af17f1d19fca5e3b9439e74'] = 'Questo tasto';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_306b346c19017609403424203ea3d720'] = 'è vuoto e deve essere riempito';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_e6940b76f045c8bc0aaaa5b2476cdaf7'] = 'Sembra che la richiesta non è valida:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_c9b4de92f371ae545ad6f051c07d58ca'] = 'C\'è un numero di errore:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_ea5f761be4e4888eabf4e1501d7817d1'] = 'Dettagli:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_6f8522e0610541f1ef215a22ffa66ff6'] = 'Lunedi';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_5792315f09a5d54fb7e3d066672b507f'] = 'Martedì';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_796c163589f295373e171842f37265d5'] = 'Mercoledì';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_78ae6f0cd191d25147e252dc54768238'] = 'Giovedi';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_c33b138a163847cdb6caeeb7c9a126b4'] = 'Venerdì';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_8b7051187b9191cdcdae6ed5a10e5adc'] = 'Sabato';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_9d1a0949c39e66a0cd65240bc0ac9177'] = 'Domenica';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_2653c23b8c0daac59571e4be5e8fa7d0'] = 'Il webservice Mondial Relay non è attualmente affidabile';
|
||||
$_MODULE['<{mondialrelay}prestashop>checkout_process_836f6c949a2f2d61489bf410def82111'] = 'Mondial Relay non può trovare dei punti relay a causa di un errore di PrestaShop';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_0f27e5e9020f28e3f31b78376e11d4c7'] = 'Configurazione Mondial Relay';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_8bc212f48680748479bbd322d4d73d3f'] = 'Dettagli account';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_ea9cf7e47ff33b2be14e6dd07cbcefc6'] = 'Spedizione';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_fe4c6a5e7bd6793b37370e4e46daf998'] = 'Settaggi avanzati';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_326e057f57e830834c20d668e44627ef'] = 'informazioni';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_29141d2b5a484e8032ef64339733f0dc'] = 'Per favore inserisci i tuoi settaggi account di Modial Relay';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_5a2355a42ba3ab265701183c914467f2'] = 'Cerca di spegnere la cache e forza la compilazione su sì';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_3de769f9a81eed916583d5b35c58dbdd'] = 'Se hai problemi con questo modulo dopo un aggiornamento';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_8f8b21bd013b38d1e3059557c22a57e7'] = 'Guarda il seguente HOW TO per aiutarti a configurare il modulo Mondial Relay';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_d21a9f93917604d5490ad529a7cf1ff9'] = 'Per creare uno spedizioniere Modial Relay';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_c6a2e6af5fff47adb3afd780b97d9b4b'] = 'Inserisci e salva i tuoi settaggi account Mondial Relay';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_b29c4694f835ad29b9893cd3fed36fbc'] = 'Crea uno Spedizioniere usanto il bottone Spedizioni';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_b962d8fb95f5a439f50502152f3bad71'] = 'Definisci un prezzo per il tuo corriere';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_faf1247ae6846a9955a466d4f301bbe4'] = 'La pagina del corriere';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_10d78806b84b97ebc774e9f6277af6ac'] = 'Per generare le etichette, devi aver registrato un indirizzo valido nel tuo negozio nella tua';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_af5efea250326c1c34d69aa9364b482c'] = 'pagina contatti';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_1ba3935c9858ffb8e19a35ca640b8505'] = 'Settaggi account Mondial Relay';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_a125105400f6e4ee4574da3793af5ef2'] = 'Questi parametri ti sono stati forniti da Mondial Relay una volta iscritto al servizio';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_12a3fbd35c1cab4b1101b91d708efd15'] = 'Insegna WebService:';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_6f0434b67007b555dfd1201f4e0d5254'] = 'Codice marca:';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_08f785193c96b2a78dec8d76a46648d6'] = 'Chiave WebService';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_0dae2d7c71f2daaedb00191af25dc28d'] = 'Lingua:';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_a26329cba9723551cb8654deba32872b'] = 'Coefficiente di peso';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_99244b234ec089eca40ff9e8ec343e87'] = 'Grammi = 1';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_61cbc2d26b4157292673c772ddd6c0f7'] = 'Aggiorna le impostazioni';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_70397c4b252a5168c5ec003931cea215'] = 'Campi richiesti';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_9ffc3ccc968a96d902af963c6d7b4e97'] = 'Settaggi avanzati';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_fcf5b2122da1d5a5f5c7253b96a3f9d9'] = 'URL Cron Task:';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_66661dacf33146201b60dc16520ddd68'] = 'Aggiunti un metodo di spedizione';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_531e144cc23ef08408b81cb4d9c641dc'] = 'Nome corriere';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_8f497c1a3d15af9e0c215019f26b887d'] = 'Ritardo';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_201bdb87f8e278b943d07ae924d5de6e'] = 'Modalità di consegna';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_142ef02888af88b8b772335277d1c0c8'] = 'Consegna ad un punto Relay';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_eeab8b7cf3c7a558a0e8a4050fa994ca'] = 'Consegna dal corriere';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_8f7794b107749728c3333ef38d2687e8'] = 'Consegna a piano terra (1 persona)';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_e451efc8ce05b96b214b4c2935f2c657'] = 'Consegna a casa (2 persone)';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_eaff1bdf24fcffe0e14e29a1bff51a12'] = 'Assicurazione';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_96ba408f20bc3e065f400c650d32fd1a'] = 'No assicurazione';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_e5a8fafb1dfb538c172e1e014e86b871'] = 'Complementary Insurance Lv1';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_b02f8d6d4b6217cca317161c87f64065'] = 'Complementary Insurance Lv2';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_90b95ae88150c6a34c4129dc4f1ebbd5'] = 'Complementary Insurance Lv3';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_c15b40b8c535191f6f0b6f9beaced3cf'] = 'Complementary Insurance Lv4';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_b67a442fff3ca0a03ea253b0668f946d'] = 'Complementary Insurance Lv5';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_33cbd0d8b6476501f55a8320481ec0f1'] = 'Nazioni di consegna:';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_aef71ba4fd060dea2e2c76d1b5076caf'] = 'Tu puoi scegliere diverse nazioni premendo CTRL';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_0309a6c666a7a803fdb9db95de71cf01'] = 'Francia';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_6c1674d14bf5f95742f572cddb0641a7'] = 'Beglio';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_06630c890abadde9228ea818ce52b621'] = 'Lussemburgo';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_907eba32d950bfab68227fd7ea22999b'] = 'Spagna';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_0c24ec05a02c710cedd400e3680d8b81'] = 'Lista metodi di spedizione';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_14039af96b01e718a9c9d9c1259b6472'] = 'Nessun metodo di spedizione creato';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_daf999e234b6f358dda641bf381b685a'] = 'Configura spedizioni';
|
||||
$_MODULE['<{mondialrelay}prestashop>header_e0626222614bdee31951d84c64e5e9ff'] = 'Seleziona';
|
||||
$_MODULE['<{mondialrelay}prestashop>header_91b442d385b54e1418d81adc34871053'] = 'Selezionato';
|
||||
$_MODULE['<{mondialrelay}prestashop>header_ef2a1f426c2c289ed5986c7636a5d696'] = 'Scegli un punto Reley';
|
||||
$_MODULE['<{mondialrelay}prestashop>header_80a0c205cd57b22fca7f174253870300'] = 'Apertura ore';
|
||||
$_MODULE['<{mondialrelay}prestashop>header_2b56b60f878922093facd42284848a0c'] = 'Altri dettagli';
|
||||
$_MODULE['<{mondialrelay}prestashop>order_detail_81b7b4587a2a3ea7a0d6bb1df3fbba54'] = 'Spedire a';
|
||||
$_MODULE['<{mondialrelay}prestashop>order_detail_c2d05abc7f5ebdc72b6656df35038b43'] = 'Segui il mio pacco sul sito Mondial Relay';
|
||||
$_MODULE['<{mondialrelay}prestashop>post_action_466ec9f29b485204ef53818459da48af'] = 'errore(i)';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_8d63728960e021f7632a11922685705e'] = 'Grazie per correggere gli errori su';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_264f456c4202f0aba86e481a246a3ef1'] = 'la pagina contatti:';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_de21dc13e1ea638777fbfad49f88b332'] = 'Tutti gli ordini che hanno uno stato';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_378116486b5a90bb50fd4f1557698d96'] = 'sarà disponibile per la creazione di una etichetta';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_5dadbd0ec9f0b182be4ead8dad39da79'] = 'Lista ordini';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_d79cf3f429596f77db95c65074663a54'] = 'ID ordine';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_ce26601dac0dea138b7295f02b7620a7'] = 'Cliente';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_0eede552438475bdfe820c13f24c9399'] = 'Totale prezzo';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_c28e0582276cb6747e37d948e1727929'] = 'Totale spedizione';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_44749712dbec183e983dcd78a7736c41'] = 'Data';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_52150799c57e873360cca13c080a91b4'] = 'Inserisci un peso (gr)';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_6ccc0fdff9995e1a0fce00c99e5b6085'] = 'MR numero';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_f9c50cba4de9032d7a6797a2458f8ed9'] = 'MR Nazione';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_428c091372d840900cf8536519fa0056'] = 'EXP Numero';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_a254c25adc7d10d7e9c4889484f875a5'] = 'Dettagli';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_4351cfebe4b61d8aa5efa1d020710005'] = 'Vedi';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_2e01172e31495f41fcebcf3f831cc82c'] = 'Operazione completata con successo';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_37c85a61df6352af7285c307022c4413'] = 'Nessun ordine con questo stato';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_32b919d18cfaca89383f6000dcc9c031'] = 'Generare';
|
||||
$_MODULE['<{mondialrelay}prestashop>history_4f1a377c20ace646ddd303ad1e1d243d'] = 'Storico delle etichette create';
|
||||
$_MODULE['<{mondialrelay}prestashop>history_d79cf3f429596f77db95c65074663a54'] = 'ID ordine';
|
||||
$_MODULE['<{mondialrelay}prestashop>history_e1a98101d56e29eeea312a0eb2748a92'] = 'Exp num';
|
||||
$_MODULE['<{mondialrelay}prestashop>history_aab39f783ba2e72eaad1770f4d9ad0c4'] = 'Stampa etichetta A4';
|
||||
$_MODULE['<{mondialrelay}prestashop>history_3eb2bc1ee46258d2a166e89398756b3e'] = 'Stampa etichetta A5';
|
||||
$_MODULE['<{mondialrelay}prestashop>history_9e50665937cbb2f3c833d3626a9f9abb'] = 'Nessun storico disponibile';
|
||||
$_MODULE['<{mondialrelay}prestashop>history_fa98e6528c9df7f26978c2beb7de3d99'] = 'Cancella storico selezionato';
|
||||
$_MODULE['<{mondialrelay}prestashop>settings_0a4ee7474864081af12dba847fafdaa6'] = 'Settaggi tab Admin';
|
||||
$_MODULE['<{mondialrelay}prestashop>settings_d02bbc3cb147c272b0445ac5ca7d1a36'] = 'Stato ordine';
|
||||
$_MODULE['<{mondialrelay}prestashop>settings_ca57625685f058f54d82c6e05876a131'] = 'Scegli uno stato ordine per le etichette';
|
||||
$_MODULE['<{mondialrelay}prestashop>settings_c9cc8cce247e49bae79f15173ce97354'] = 'Salva';
|
||||
$_MODULE['<{mondialrelay}prestashop>settings_f4f70727dc34561dfde1a3c529b6205c'] = 'Impostazioni';
|
||||
|
35
modules/mondialrelay/docs/index.php
Executable file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2015 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 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/osl-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-2015 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 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;
|
@ -2,8 +2,3 @@
|
||||
|
||||
global $_MODULE;
|
||||
$_MODULE = array();
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_12a3fbd35c1cab4b1101b91d708efd15'] = 'Webservice Enseigne:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_6f0434b67007b555dfd1201f4e0d5254'] = 'Code marque:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_08f785193c96b2a78dec8d76a46648d6'] = 'Webservice Key:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_0dae2d7c71f2daaedb00191af25dc28d'] = 'Etiquette\'s Language:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_a26329cba9723551cb8654deba32872b'] = 'Weight Coefficient:';
|
||||
|
@ -1,6 +1,28 @@
|
||||
<?php
|
||||
|
||||
global $statCode;
|
||||
/**
|
||||
* 2007-2015 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 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/osl-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-2015 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
$statCode = array(
|
||||
'1' => 'Enseigne invalide',
|
||||
|
@ -2,173 +2,181 @@
|
||||
|
||||
global $_MODULE;
|
||||
$_MODULE = array();
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_d1908b9b04e81c4b6112e38b608c49af'] = 'Gracias por corregir los siguientes errores en';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_ccce63109db30895153094de05c60fa5'] = 'la página de contacto';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_7c5fd3d93bd19d81953db3b374997961'] = 'Por favor mire la siguiente advertencia, quizas el ticket no se genere';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_de21dc13e1ea638777fbfad49f88b332'] = 'Todos los pedidos que tengan un estado';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_a0bf3c9ac2d785f053d883b8746e91ba'] = 'estará disponible para la creación del ticket';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_2345e28c9b93f368968be4781ed70f5c'] = 'Cambio de configuración';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_37c85a61df6352af7285c307022c4413'] = 'No hay pedidos con este estado.';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_d79cf3f429596f77db95c65074663a54'] = 'ID del pedido';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_ce26601dac0dea138b7295f02b7620a7'] = 'Cliente';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_0eede552438475bdfe820c13f24c9399'] = 'El precio total';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_f4e8b53a114e5a17d051ab84d326cae5'] = 'Total de gastos de envío';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_44749712dbec183e983dcd78a7736c41'] = 'Fecha';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_3715c824cbc0f966c61a72254f248a2e'] = 'Ponga un peso (gramos)';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_6ccc0fdff9995e1a0fce00c99e5b6085'] = 'Número MR';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_f9c50cba4de9032d7a6797a2458f8ed9'] = 'País RM ';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_428c091372d840900cf8536519fa0056'] = 'Número envío';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_a254c25adc7d10d7e9c4889484f875a5'] = 'Detalle';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_4351cfebe4b61d8aa5efa1d020710005'] = 'Ver';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_2e01172e31495f41fcebcf3f831cc82c'] = 'Operación realizada con éxito';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_32b919d18cfaca89383f6000dcc9c031'] = 'Generar';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_4f1a377c20ace646ddd303ad1e1d243d'] = 'Historia de la creación de etiquetas';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_e1a98101d56e29eeea312a0eb2748a92'] = 'Exp. número';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_aab39f783ba2e72eaad1770f4d9ad0c4'] = 'Imprimir etiqutea en formato A4';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_3eb2bc1ee46258d2a166e89398756b3e'] = 'Imprimir etiqueta en formato A5 ';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_fa98e6528c9df7f26978c2beb7de3d99'] = 'Borrar los historiales seleccionados';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_e82faee1422140edd04b2f94c5051500'] = 'Acción de éxito';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_3b2d373418745276ae6e207421245cdc'] = 'Estado de pedido ha sido actualizado';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_b4ac3d3f15bc0984d0906aff1202e701'] = 'No se puede actualizar la cuenta de la tienda';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_44585fcd617dce6416d8283b026714c1'] = 'Mondial Relay';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_ed4a3b96dc1f38c160775cac1f7bcd6d'] = 'Entregue sus envíos en un punto de recogida ';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_70d70ce314f545b7c500a086f147f64b'] = 'Tienda no válida';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_d2286c9c8c8f92cb0e805b17834591b0'] = 'Enseigne no válido ';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_709b076565df5fa98cdb2528d897633d'] = 'Código Marca no válido';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_c86508f5bc6b4456e7003d6a1868689d'] = 'Clave Webservice no válida';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_ea9261a3dad976b40ff2088a19fda2c3'] = 'Idioma no válido';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_4eb287cc225ba0e1bcfe9cc1b8315def'] = 'Coeficiente de peso no válido';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_f82576de014726e9ef9b4ed2a9eb947b'] = 'Antes de crear un transportista, debe configurar los parámetros de su cuenta Mondial Relay';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_70ff82d47f295f730c6accf07a2948e8'] = 'Nombre del transportista no válido';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_e1f1787db2fee596f4c3bfaf1d098f8d'] = 'Modo Col no válido';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_9414b7de379a09941e894d28f19949ae'] = 'Modo de entrega no válido';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_5eeb9ca7eee4be7192dd10d917f79a12'] = 'Seguro no válido';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_8b446ac2013dc7085802de71cc342ead'] = 'Debe elegir al menos un país de entrega';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_b9a85d87ae6dd77f2107734a4cd0bb15'] = 'Clave Google no válida';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_979c6094728c14aac1b66d544dc5cebd'] = 'Estado de pedido no válido';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_808fb4e3a637a759565de1d314ea526f'] = 'La dirección principal entrada no tiene un buen formato';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_c888438d14855d7d96a2724ee9c306bd'] = 'Se ha actualizado con éxito';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_07213a0161f52846ab198be103b5ab43'] = 'errores';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_cb5e100e5a9a3e7f6d1fd97512215282'] = 'error';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_350c1cc4343826a89f08a33bb49c6d98'] = 'Configuración del módulo Relay Rate';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_5a2355a42ba3ab265701183c914467f2'] = 'Intente desactivar la cache y activar Forzar compilación';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_3de769f9a81eed916583d5b35c58dbdd'] = 'si tiene problemas con el modulo después de actualizar';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_8f8b21bd013b38d1e3059557c22a57e7'] = 'Mire los siguientes How-To para ayudarlo a configurar el modulo Mondial Relay';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_d21a9f93917604d5490ad529a7cf1ff9'] = 'Para crear un transportista Mondial Relay';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_c6a2e6af5fff47adb3afd780b97d9b4b'] = 'Introduzca y guarde los parámetros de la cuenta Mondial Relay';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_94fbe32464fcfa902feed9f256439833'] = 'Cree un transporte usando la opcion Añadir transportista abajo';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_b962d8fb95f5a439f50502152f3bad71'] = 'Deafina un precio para sus transportista en';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_faf1247ae6846a9955a466d4f301bbe4'] = 'La página de transportistas';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_10d78806b84b97ebc774e9f6277af6ac'] = 'Para generar sus etiquetas, debe haber introducido una dirección correcta de su tienda en';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_af5efea250326c1c34d69aa9364b482c'] = 'página contacto';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_362dff77f7403550e886db901404856c'] = 'Borrado con éxito';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_66661dacf33146201b60dc16520ddd68'] = 'Añadir un transportista';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_b651efdb98a5d6bd2b3935d0c3f4a5e2'] = 'Campo obligatorio';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_531e144cc23ef08408b81cb4d9c641dc'] = 'Nombre del transportista';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_c9b415ea1576b19d10d42b332798cd16'] = 'Modo de recogida';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_d24262afca47ba80b691c878243441e8'] = 'Recogida en la tienda';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_201bdb87f8e278b943d07ae924d5de6e'] = 'Modo de entraga';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_142ef02888af88b8b772335277d1c0c8'] = 'Entrega en Punto de recogida';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_eeab8b7cf3c7a558a0e8a4050fa994ca'] = 'Entrega Colis Drive';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_8f7794b107749728c3333ef38d2687e8'] = 'Entrega a domicilio RDC (1 persona)';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_e451efc8ce05b96b214b4c2935f2c657'] = 'Entrega a domicilio especializada (2 personas)';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_eaff1bdf24fcffe0e14e29a1bff51a12'] = 'Seguro';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_96ba408f20bc3e065f400c650d32fd1a'] = 'Sin seguro';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_e5a8fafb1dfb538c172e1e014e86b871'] = 'Seguro complementario N1';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_b02f8d6d4b6217cca317161c87f64065'] = 'Seguro complementario N2';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_90b95ae88150c6a34c4129dc4f1ebbd5'] = 'Seguro complementario N3';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_c15b40b8c535191f6f0b6f9beaced3cf'] = 'Seguro complementario N4';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_b67a442fff3ca0a03ea253b0668f946d'] = 'Seguro complementario N5';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_33cbd0d8b6476501f55a8320481ec0f1'] = 'Lista de países :';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_aef71ba4fd060dea2e2c76d1b5076caf'] = 'Puede elegir varios países pulsando Ctrl mientras selecciona los países';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_0309a6c666a7a803fdb9db95de71cf01'] = 'Francia';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_6c1674d14bf5f95742f572cddb0641a7'] = 'Bélgica';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_06630c890abadde9228ea818ce52b621'] = 'Luxemburgo';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_907eba32d950bfab68227fd7ea22999b'] = 'España';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_0c24ec05a02c710cedd400e3680d8b81'] = 'Lista de transportistas';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_14039af96b01e718a9c9d9c1259b6472'] = 'No se ha creado ningún transportista';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_8596361cec00f8d2438d264827eee737'] = 'Configuración transportista';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_9ffc3ccc968a96d902af963c6d7b4e97'] = 'Opciones avanzadas';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_1d1d57f5840e1da871622295ba206b30'] = 'Clic para mostrar / ocultar opciones';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_fcf5b2122da1d5a5f5c7253b96a3f9d9'] = 'URL del cron para lanzar la actualización de los pedidos';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_759e1f68a70bbe8c48eb30fa4b512de8'] = 'Parece que actualizo Mondialrelay sin usar instalar/desinstalar , Debe configurar esta parte para que la generación de tickets funcione';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_bbd9bc77f1f5b6a9edce6db062b607c9'] = 'Esta parte de deja sobreescribir la información enviada a Mondial Relay cuando genera un ticket. Algunos campos están restringidos por longitud o caracteres prohibidos.';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_9127fe218b2cac7f0c8aecd7016a891d'] = 'Nombre de la tienda';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_7e9bbecd32836500b557db33c3b3e93b'] = 'La clave utilizada por Mondialrelay es';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_32963eea43914b6a418fb2fd9850beb9'] = 'y tiene el valor por defecto';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_c9cc8cce247e49bae79f15173ce97354'] = 'Guardar';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_f4f70727dc34561dfde1a3c529b6205c'] = 'Parámetros';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_d02bbc3cb147c272b0445ac5ca7d1a36'] = 'Estado de los pedidos';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_818f954f4838ecad839c5dcbd287d291'] = 'Elija un estado para generar etiquetas. Puede administrar sus etiquetas en';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_5117e194c641ad4fc55417b554aead3c'] = 'la página de administración de Mondial Relay';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_1ba3935c9858ffb8e19a35ca640b8505'] = 'Parámetros de la cuenta Mondial Relay';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_a125105400f6e4ee4574da3793af5ef2'] = 'Estos parametros son dados por Mondial Relay una vez suscripto a su servicio';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_12a3fbd35c1cab4b1101b91d708efd15'] = 'Tienda WebService ';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_6f0434b67007b555dfd1201f4e0d5254'] = 'Código marca:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_08f785193c96b2a78dec8d76a46648d6'] = 'Clave Webservice:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_0dae2d7c71f2daaedb00191af25dc28d'] = 'Idioma:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_a26329cba9723551cb8654deba32872b'] = 'Coeficinte de peso:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_99244b234ec089eca40ff9e8ec343e87'] = 'gramos = 1';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_61cbc2d26b4157292673c772ddd6c0f7'] = 'Guardar cambios';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_2673bca5ba0a7871770e69c962e6ce38'] = 'Número de expediciones';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_0dbe844fb964d5eca2f51be724e43294'] = 'URL de las etiquetas';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_c6aefd5e2191e1210a2f50416812b517'] = 'URL de los seguimientos';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_61e70b58e38fd01daa254f44c4fa264b'] = 'Número de puntos recogida';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_e82faee1422140edd04b2f94c5051500'] = 'Acción de éxito';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_672facd73d4aee44c116cfd95298db87'] = 'El detalle de la cuenta se ha actualizado';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_b4ac3d3f15bc0984d0906aff1202e701'] = 'No se puede actualizar la cuenta de la tienda';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_ea50be3d60be594e10e9e3560cb9159f'] = 'El método de envío se ha añadido';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_d0cfdfcfb71029b561f5ebdc176d87ca'] = 'Estado de envío cambiado correctamente';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_7534411af2e35bed1f79df5938f077f9'] = 'EL transportista ha sido borrado (desactivada en la base de datos prestashop)';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_2673bca5ba0a7871770e69c962e6ce38'] = 'Nb expedición:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_0dbe844fb964d5eca2f51be724e43294'] = 'Etiqueta de URL';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_c6aefd5e2191e1210a2f50416812b517'] = 'Seguimiento de URL';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_61e70b58e38fd01daa254f44c4fa264b'] = 'Nb Punto de Transición:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_aa625fced6f01ae595b6a9ac499c2ecf'] = 'Rango de peso no se puede añadir';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_63d15383121b5bb5c53323f3f96bd1f2'] = 'Rango de precios no se puede añadir';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_d4d197dd028e28ae56208971b564921a'] = 'Zona predeterminada no se puede añadir';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_760ac6deb1c5b84321f65ba0c7f319f5'] = 'Datos de la zona Transportista o entrega no se añadira';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_8bf569ff65b32464e623ca9e9a10688d'] = 'El transportista no puede crearse en Prestashop';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_6ed26bdf3f9141ddca4ede91f943e567'] = 'El metodo del transportista no puede agregarse al modulo';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_af135815ccf731bcbffb522004762b57'] = 'EL transportista no puede borrarse todavia';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_bba366864d25056c941b72f18ef79e7c'] = 'Este error no se conoce:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_e0626222614bdee31951d84c64e5e9ff'] = 'Seleccionar';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_91b442d385b54e1418d81adc34871053'] = 'Seleccionado';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_ef2a1f426c2c289ed5986c7636a5d696'] = 'Por favor seleccione un punto de envio';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_80a0c205cd57b22fca7f174253870300'] = 'Horario de atención';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_2b56b60f878922093facd42284848a0c'] = 'Mas detalles';
|
||||
$_MODULE['<{mondialrelay}prestashop>orderdetail_81b7b4587a2a3ea7a0d6bb1df3fbba54'] = 'Entregado a';
|
||||
$_MODULE['<{mondialrelay}prestashop>orderdetail_c2d05abc7f5ebdc72b6656df35038b43'] = 'Seguir mi paquete en la web de Mondial Relay';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_a1c3470a944b9625cfb924fd15c8bdbf'] = 'Por favor, seleccione al menos un pedido';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_dc41aac14af17f1d19fca5e3b9439e74'] = 'La clave';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_306b346c19017609403424203ea3d720'] = 'está vacío y debe ser llenado';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_e6940b76f045c8bc0aaaa5b2476cdaf7'] = 'Parece que la petición no es válida:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_c9b4de92f371ae545ad6f051c07d58ca'] = 'Hay un número de error:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_ea5f761be4e4888eabf4e1501d7817d1'] = 'Detalles:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_eabb11bf9623f08409a0a4c9d035a336'] = 'Envío Número:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_b92c3d3319314513c547675924ceecd1'] = 'Ticket URL';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_66b793b6b4125e300717e8cf7449f533'] = 'URL de seguimiento:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_2653c23b8c0daac59571e4be5e8fa7d0'] = 'El servicio web Mondial Relay no es seguro actualmente ';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_26b6b6eaec970108c5e84286159fbf48'] = 'Por favor verifique la configuración de su idioma';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_557595c2e17c9948a9448eb763ac1a88'] = 'Por favor verifique el nombre de su tienda';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_017ca6b770ad53669a4eec82894dfcd3'] = 'Por favor verifique la dirección 1';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_3f79e1fc66b4f9cca7bd68cab176020d'] = 'Por favor verifique la configuración de su ciudad';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_404665d9b65239985d59b30b3dcb26b5'] = 'Por favor verifique la configuración de su código postal';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_74cb73eddbe6eaf556023f943fc7e1fd'] = 'Parece que la configuración de el código postal de su país no esta configurado o puso el código incorrecto';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_0b8a30478b9572b86718989d483fd88d'] = 'Por favor verifique la configuración de su pais';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_7ddf2d94bf037b7d1088c0600ea589c3'] = 'Por favor verifique la configuración de su teléfono';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_9c7ce7be9a2c593b24d448edb4f804e0'] = 'Por favor verifique la configuración de su email';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_14288d48d107056c1acf8aaae1bf282b'] = 'La dirección del cliente no se encuentra';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_dc41aac14af17f1d19fca5e3b9439e74'] = 'Esta llave';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_135a7b9a62531e066a95093d8951b344'] = 'no tiene un formato válido';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_e6940b76f045c8bc0aaaa5b2476cdaf7'] = 'Parece que la solicitud es inválida:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_c9b4de92f371ae545ad6f051c07d58ca'] = 'Hay un error numero:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_ea5f761be4e4888eabf4e1501d7817d1'] = 'Detalles:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_26b6b6eaec970108c5e84286159fbf48'] = 'Por favor, compruebe su configuración de idioma';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_557595c2e17c9948a9448eb763ac1a88'] = 'Por favor, compruebe la configuración de su nombre de la tienda';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_017ca6b770ad53669a4eec82894dfcd3'] = 'Por favor, compruebe la configuracion de la dirección1';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_3f79e1fc66b4f9cca7bd68cab176020d'] = 'Por favor, compruebe la configuración de su ciudad';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_404665d9b65239985d59b30b3dcb26b5'] = 'Por favor, compruebe la configuración de su código postal';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_0b8a30478b9572b86718989d483fd88d'] = 'Por favor, compruebe la configuración de su país';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_7ddf2d94bf037b7d1088c0600ea589c3'] = 'Por favor, compruebe la configuración de su teléfono';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_9c7ce7be9a2c593b24d448edb4f804e0'] = 'Por favor, revise su configuración de correo';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_85e6a18230d49abf8cfe912809185258'] = 'Utilizando una versión PrestaShop menos de 1.4, nose puede validar el código postal';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_14288d48d107056c1acf8aaae1bf282b'] = 'Dirección del cliente no se encuentra';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_dc41aac14af17f1d19fca5e3b9439e74'] = 'La clave';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_135a7b9a62531e066a95093d8951b344'] = 'no tiene un formato de valor válido';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_e6940b76f045c8bc0aaaa5b2476cdaf7'] = 'Parece que la petición no es válida';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_c9b4de92f371ae545ad6f051c07d58ca'] = 'Hay un número de error:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_ea5f761be4e4888eabf4e1501d7817d1'] = 'Detalles';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_4e274658c9e97c2a336dde79dd0a7772'] = 'MondialRelay no puede encontrar ningun punto cerca de su dirección. Quizás su dirección no es correcta?';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_2653c23b8c0daac59571e4be5e8fa7d0'] = 'El servicio web Mondial Relay no esta disponible';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_2653c23b8c0daac59571e4be5e8fa7d0'] = 'El servicio web Mondial Relay no es seguro actualmente ';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgettickets_dc41aac14af17f1d19fca5e3b9439e74'] = 'La clave';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgettickets_135a7b9a62531e066a95093d8951b344'] = 'no tiene un formato de valor válido';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgettickets_e6940b76f045c8bc0aaaa5b2476cdaf7'] = 'Parece que la petición no es válida';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgettickets_c9b4de92f371ae545ad6f051c07d58ca'] = 'Hay un número de error:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgettickets_ea5f761be4e4888eabf4e1501d7817d1'] = 'Detalles: ';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgettickets_2653c23b8c0daac59571e4be5e8fa7d0'] = 'El servicio web Mondial Relay no es seguro actualmente ';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrmanagement_38b4abe2f5860f034e315f2da648a3d6'] = 'Desinstalar Mondial Relay';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrmanagement_77bad09c976ec16f38381dc220139367'] = 'Usted esta intentando desinstalar el modulo, desea remover la base de datos';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrmanagement_09c081633d484a62a2f6940c12a0de36'] = 'Mantener y desinstalar';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrmanagement_0b7f47fce1d82d53244771c64b1535c0'] = 'Borrar y desinstalar';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrmanagement_ea4788705e6873b424c65e91c2846b19'] = 'Cancelar';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrmanagement_38b4abe2f5860f034e315f2da648a3d6'] = 'Desinstalación de Mondial Relay';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrmanagement_a4691c957e81a6f0b6f0ed44f8f2dfe8'] = 'Usted debe vuelver a intentar desinstalar el módulo, desea eliminar la base de datos';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrmanagement_09c081633d484a62a2f6940c12a0de36'] = 'Mantener y desinstalar';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrmanagement_0b7f47fce1d82d53244771c64b1535c0'] = 'Borrar y desinstalar';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrmanagement_ea4788705e6873b424c65e91c2846b19'] = 'Suprimir';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrmanagement_a42bb0eaa485682166770a54469385f6'] = 'Algunos artículos no se pueden quitar, por favor, inténtelo de nuevo';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrmanagement_11744bfebb33e52be37a66a530b7045d'] = 'Por favor, seleccione al menos un elemento';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_14288d48d107056c1acf8aaae1bf282b'] = 'No se encuentra la dirección del cliente';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_dc41aac14af17f1d19fca5e3b9439e74'] = 'Esta llave';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_306b346c19017609403424203ea3d720'] = 'esta vacia y necesita llenarla';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_e6940b76f045c8bc0aaaa5b2476cdaf7'] = 'Parece que la solicitud es inválida:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_c9b4de92f371ae545ad6f051c07d58ca'] = 'Hay un error e nel numero:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_ea5f761be4e4888eabf4e1501d7817d1'] = 'Detalles:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_6f8522e0610541f1ef215a22ffa66ff6'] = 'Lunes:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_5792315f09a5d54fb7e3d066672b507f'] = 'Martes:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_796c163589f295373e171842f37265d5'] = 'Miercoles:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_78ae6f0cd191d25147e252dc54768238'] = 'Jueves:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_c33b138a163847cdb6caeeb7c9a126b4'] = 'Viernes:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_8b7051187b9191cdcdae6ed5a10e5adc'] = 'Sabado:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_9d1a0949c39e66a0cd65240bc0ac9177'] = 'Domingo:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_2653c23b8c0daac59571e4be5e8fa7d0'] = 'El servicio web de Mondial Relay no esta disponible';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_14288d48d107056c1acf8aaae1bf282b'] = 'Cancelar';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_dc41aac14af17f1d19fca5e3b9439e74'] = 'La clave';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_306b346c19017609403424203ea3d720'] = 'está vacío y debe ser llenado';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_e6940b76f045c8bc0aaaa5b2476cdaf7'] = 'Parece que la petición no es válida';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_c9b4de92f371ae545ad6f051c07d58ca'] = 'Hay un número de error:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_ea5f761be4e4888eabf4e1501d7817d1'] = 'Detalles';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_6f8522e0610541f1ef215a22ffa66ff6'] = 'Lunes';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_5792315f09a5d54fb7e3d066672b507f'] = 'Martes';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_796c163589f295373e171842f37265d5'] = 'Miércoles';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_78ae6f0cd191d25147e252dc54768238'] = 'Jueves';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_c33b138a163847cdb6caeeb7c9a126b4'] = 'Viernes';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_8b7051187b9191cdcdae6ed5a10e5adc'] = 'Sábado';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_9d1a0949c39e66a0cd65240bc0ac9177'] = 'Domingo';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_2653c23b8c0daac59571e4be5e8fa7d0'] = 'El servicio web Mondial Relay no es seguro actualmente ';
|
||||
$_MODULE['<{mondialrelay}prestashop>checkout_process_836f6c949a2f2d61489bf410def82111'] = 'Mondial Relay no puede buscar cualquier punto de repetición debido a un error prestashop';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_0f27e5e9020f28e3f31b78376e11d4c7'] = 'Mondial Relay Configuración';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_8bc212f48680748479bbd322d4d73d3f'] = 'detalles de la cuenta';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_ea9cf7e47ff33b2be14e6dd07cbcefc6'] = 'Envío';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_fe4c6a5e7bd6793b37370e4e46daf998'] = 'Ajustes avanzados';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_326e057f57e830834c20d668e44627ef'] = 'Info';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_29141d2b5a484e8032ef64339733f0dc'] = 'Por favor, ajuste la configuración de la cuenta Mondial Relay ';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_5a2355a42ba3ab265701183c914467f2'] = 'Trata de desactivar la caché y forzar compilación para';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_3de769f9a81eed916583d5b35c58dbdd'] = 'si usted tiene algún problema con el módulo después de una actualización';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_8f8b21bd013b38d1e3059557c22a57e7'] = '¡Echa un vistazo a la siguiente HOW-TO para ayudarle a configurar el módulo deMondial Relay';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_d21a9f93917604d5490ad529a7cf1ff9'] = 'Para crear una compañía Mondial Relay';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_c6a2e6af5fff47adb3afd780b97d9b4b'] = 'Entra y guarde los ajustes de la cuenta Mondial Relay';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_b29c4694f835ad29b9893cd3fed36fbc'] = 'Crear un transportista con el botón de envío';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_b962d8fb95f5a439f50502152f3bad71'] = 'Definir un precio para su compañía en el';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_faf1247ae6846a9955a466d4f301bbe4'] = 'La página del transportista';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_10d78806b84b97ebc774e9f6277af6ac'] = 'Para generar las etiquetas, debe tener una dirección válida y registrada de su tiendaen su';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_af5efea250326c1c34d69aa9364b482c'] = 'la página de contacto';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_1ba3935c9858ffb8e19a35ca640b8505'] = 'Configuración de la cuenta Mondial Relay';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_a125105400f6e4ee4574da3793af5ef2'] = 'Estos parámetros son proporcionados por Mondial Relay, una vez se ha suscrito a su servicio';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_12a3fbd35c1cab4b1101b91d708efd15'] = 'Webservice Enseigne:';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_6f0434b67007b555dfd1201f4e0d5254'] = 'Código de marca:';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_08f785193c96b2a78dec8d76a46648d6'] = 'Webservice clave:';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_0dae2d7c71f2daaedb00191af25dc28d'] = 'Idioma:';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_a26329cba9723551cb8654deba32872b'] = 'Coeficiente de peso:';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_99244b234ec089eca40ff9e8ec343e87'] = 'gramos = 1';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_61cbc2d26b4157292673c772ddd6c0f7'] = 'Actualizar ajustes';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_70397c4b252a5168c5ec003931cea215'] = 'Campos obligatorios';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_9ffc3ccc968a96d902af963c6d7b4e97'] = 'Configuración avanzada';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_fcf5b2122da1d5a5f5c7253b96a3f9d9'] = 'URL de tarea programada';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_66661dacf33146201b60dc16520ddd68'] = 'Añadir un Método de envío';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_531e144cc23ef08408b81cb4d9c641dc'] = 'Nombre del transportista';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_8f497c1a3d15af9e0c215019f26b887d'] = 'Retraso';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_201bdb87f8e278b943d07ae924d5de6e'] = 'Modo de entrega';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_142ef02888af88b8b772335277d1c0c8'] = 'Entrega a un punto de relevo';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_eeab8b7cf3c7a558a0e8a4050fa994ca'] = 'Envio Colis Drive';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_8f7794b107749728c3333ef38d2687e8'] = 'Inicio de entrega RDC (1 persona)';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_e451efc8ce05b96b214b4c2935f2c657'] = 'La entrega a domicilio Especial (2 personas)';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_eaff1bdf24fcffe0e14e29a1bff51a12'] = 'de seguros';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_96ba408f20bc3e065f400c650d32fd1a'] = 'No tiene seguro';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_e5a8fafb1dfb538c172e1e014e86b871'] = 'Seguro Complementario Lv1';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_b02f8d6d4b6217cca317161c87f64065'] = 'Seguro Complementario Lv2';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_90b95ae88150c6a34c4129dc4f1ebbd5'] = 'Seguro Complementario Lv3';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_c15b40b8c535191f6f0b6f9beaced3cf'] = 'Seguro Complementario Lv4';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_b67a442fff3ca0a03ea253b0668f946d'] = 'Seguro Complementario Lv5';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_33cbd0d8b6476501f55a8320481ec0f1'] = 'Países de envío:';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_aef71ba4fd060dea2e2c76d1b5076caf'] = 'Usted puede elegir varios países presionando Ctrl mientras selecciona los países';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_0309a6c666a7a803fdb9db95de71cf01'] = 'Francia';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_6c1674d14bf5f95742f572cddb0641a7'] = 'Bélgica';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_06630c890abadde9228ea818ce52b621'] = 'Luxemburgo';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_907eba32d950bfab68227fd7ea22999b'] = 'España';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_0c24ec05a02c710cedd400e3680d8b81'] = 'Lista de método de envío \\\\\\\\ \'s';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_14039af96b01e718a9c9d9c1259b6472'] = 'No hay métodos de envío creados';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_daf999e234b6f358dda641bf381b685a'] = 'Envío de configuración';
|
||||
$_MODULE['<{mondialrelay}prestashop>header_e0626222614bdee31951d84c64e5e9ff'] = 'Seleccionar';
|
||||
$_MODULE['<{mondialrelay}prestashop>header_91b442d385b54e1418d81adc34871053'] = 'seleccionado';
|
||||
$_MODULE['<{mondialrelay}prestashop>header_ef2a1f426c2c289ed5986c7636a5d696'] = 'Por favor, elija un punto de relevo';
|
||||
$_MODULE['<{mondialrelay}prestashop>header_80a0c205cd57b22fca7f174253870300'] = 'Horario de apertura';
|
||||
$_MODULE['<{mondialrelay}prestashop>header_2b56b60f878922093facd42284848a0c'] = 'Más detalles';
|
||||
$_MODULE['<{mondialrelay}prestashop>order_detail_81b7b4587a2a3ea7a0d6bb1df3fbba54'] = 'Enviado a';
|
||||
$_MODULE['<{mondialrelay}prestashop>order_detail_c2d05abc7f5ebdc72b6656df35038b43'] = 'Siga mi paquete en la página web Mondial Relay';
|
||||
$_MODULE['<{mondialrelay}prestashop>post_action_466ec9f29b485204ef53818459da48af'] = 'error(es)';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_8d63728960e021f7632a11922685705e'] = 'Gracias a la amabilidad de corregir los errores siguientes en';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_264f456c4202f0aba86e481a246a3ef1'] = 'la página de contacto:';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_de21dc13e1ea638777fbfad49f88b332'] = 'Todos los pedidos que tienen el estado';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_378116486b5a90bb50fd4f1557698d96'] = 'estará disponible para la creación de adhesivo';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_5dadbd0ec9f0b182be4ead8dad39da79'] = 'Lista de pedidos';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_d79cf3f429596f77db95c65074663a54'] = 'ID pedido';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_ce26601dac0dea138b7295f02b7620a7'] = 'cliente';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_0eede552438475bdfe820c13f24c9399'] = 'Precio total';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_c28e0582276cb6747e37d948e1727929'] = 'Total gastos de envío:';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_44749712dbec183e983dcd78a7736c41'] = 'Fecha';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_52150799c57e873360cca13c080a91b4'] = 'Ponga un peso (en gramos)';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_6ccc0fdff9995e1a0fce00c99e5b6085'] = 'Número de MR';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_f9c50cba4de9032d7a6797a2458f8ed9'] = 'País MR';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_428c091372d840900cf8536519fa0056'] = 'Exp. Número';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_a254c25adc7d10d7e9c4889484f875a5'] = 'Detalle';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_4351cfebe4b61d8aa5efa1d020710005'] = 'Vista';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_2e01172e31495f41fcebcf3f831cc82c'] = 'Operación exitosa';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_37c85a61df6352af7285c307022c4413'] = 'No hay pedidos con este estado.';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_32b919d18cfaca89383f6000dcc9c031'] = '¡Generar!';
|
||||
$_MODULE['<{mondialrelay}prestashop>history_4f1a377c20ace646ddd303ad1e1d243d'] = 'Historial de creación de etiquetas';
|
||||
$_MODULE['<{mondialrelay}prestashop>history_d79cf3f429596f77db95c65074663a54'] = 'ID pedido';
|
||||
$_MODULE['<{mondialrelay}prestashop>history_e1a98101d56e29eeea312a0eb2748a92'] = 'Exp. número';
|
||||
$_MODULE['<{mondialrelay}prestashop>history_aab39f783ba2e72eaad1770f4d9ad0c4'] = 'Imprimir etiqueta A4';
|
||||
$_MODULE['<{mondialrelay}prestashop>history_3eb2bc1ee46258d2a166e89398756b3e'] = 'Imprimir etiqueta A5';
|
||||
$_MODULE['<{mondialrelay}prestashop>history_9e50665937cbb2f3c833d3626a9f9abb'] = 'No hay historias disponibles';
|
||||
$_MODULE['<{mondialrelay}prestashop>history_fa98e6528c9df7f26978c2beb7de3d99'] = 'Eliminar el historial de seleccionados';
|
||||
$_MODULE['<{mondialrelay}prestashop>settings_0a4ee7474864081af12dba847fafdaa6'] = 'Configuraciones de admin Tab';
|
||||
$_MODULE['<{mondialrelay}prestashop>settings_d02bbc3cb147c272b0445ac5ca7d1a36'] = 'Estado de los pedidos';
|
||||
$_MODULE['<{mondialrelay}prestashop>settings_ca57625685f058f54d82c6e05876a131'] = 'Elige el estado para que las etiquetas.';
|
||||
$_MODULE['<{mondialrelay}prestashop>settings_c9cc8cce247e49bae79f15173ce97354'] = 'Guardar ';
|
||||
$_MODULE['<{mondialrelay}prestashop>settings_f4f70727dc34561dfde1a3c529b6205c'] = 'Ajustes';
|
||||
|
@ -2,157 +2,79 @@
|
||||
|
||||
global $_MODULE;
|
||||
$_MODULE = array();
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_d1908b9b04e81c4b6112e38b608c49af'] = 'Merci de bien vouloir corriger les erreurs suivantes dans';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_ccce63109db30895153094de05c60fa5'] = 'la page de contact';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_7c5fd3d93bd19d81953db3b374997961'] = 'Merci de jeter un oeil à la mise en garde suivante, peut-être que l\'étiquette ne sera pas générée';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_de21dc13e1ea638777fbfad49f88b332'] = 'Toutes les commandes qui auront un statut';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_a0bf3c9ac2d785f053d883b8746e91ba'] = 'seront disponibles pour la création d\'ètiquette';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_2345e28c9b93f368968be4781ed70f5c'] = 'Changer la configuration';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_37c85a61df6352af7285c307022c4413'] = 'Aucune commande n\'existe avec ce statut';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_d79cf3f429596f77db95c65074663a54'] = 'Identifiant de la commande';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_ce26601dac0dea138b7295f02b7620a7'] = 'Client';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_0eede552438475bdfe820c13f24c9399'] = 'Prix total';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_f4e8b53a114e5a17d051ab84d326cae5'] = 'Total frais d\'expédition';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_44749712dbec183e983dcd78a7736c41'] = 'Date';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_3715c824cbc0f966c61a72254f248a2e'] = 'Mettez un poids (grammes)';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_6ccc0fdff9995e1a0fce00c99e5b6085'] = 'Numéro MR';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_f9c50cba4de9032d7a6797a2458f8ed9'] = 'Pays MR';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_428c091372d840900cf8536519fa0056'] = 'Numéro d\'expedition';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_a254c25adc7d10d7e9c4889484f875a5'] = 'Détail';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_4351cfebe4b61d8aa5efa1d020710005'] = 'Voir';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_2e01172e31495f41fcebcf3f831cc82c'] = 'Opération réussie';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_32b919d18cfaca89383f6000dcc9c031'] = 'Générer';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_4f1a377c20ace646ddd303ad1e1d243d'] = 'Historique de la création d\'étiquettes';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_e1a98101d56e29eeea312a0eb2748a92'] = 'Exp num';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_aab39f783ba2e72eaad1770f4d9ad0c4'] = 'Imprimer l\'étiquette format A4';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_3eb2bc1ee46258d2a166e89398756b3e'] = 'Imprimer l\'étiquette format A5';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_fa98e6528c9df7f26978c2beb7de3d99'] = 'Supprimer les historiques sélectionnés';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_e82faee1422140edd04b2f94c5051500'] = 'Action terminée avec succès!';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_3b2d373418745276ae6e207421245cdc'] = 'Le statut de la commande a été mis à jour';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_b4ac3d3f15bc0984d0906aff1202e701'] = 'Impossible de mettre à jour le compte';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_44585fcd617dce6416d8283b026714c1'] = 'Mondial Relay';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_ed4a3b96dc1f38c160775cac1f7bcd6d'] = 'Livrez vos colis en point relais';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_70d70ce314f545b7c500a086f147f64b'] = 'Enseigne invalide';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_ed4a3b96dc1f38c160775cac1f7bcd6d'] = 'Livrez vos colis en Point Relais®';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_ec0cc3039fa07db6a4e83582d2796883'] = 'Mondial Relay nécessite les librairies SOAP et CURL pour pouvoir fonctionner.';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_4c9120f1a5947445c0e9620254ceb30b'] = 'Confirmation de Mondial Relay';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_d2286c9c8c8f92cb0e805b17834591b0'] = 'Enseigne invalide';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_709b076565df5fa98cdb2528d897633d'] = 'Code Marque invalide';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_c86508f5bc6b4456e7003d6a1868689d'] = 'Clé Webservice invalide';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_ea9261a3dad976b40ff2088a19fda2c3'] = 'Langage invalide';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_4eb287cc225ba0e1bcfe9cc1b8315def'] = 'Coefficient de poids invalide';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_f82576de014726e9ef9b4ed2a9eb947b'] = 'Configurez d\'abord vos paramètres de compte Mondial Relay avant de créer un transporteur';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_70ff82d47f295f730c6accf07a2948e8'] = 'Nom de transporteur invalide';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_e1f1787db2fee596f4c3bfaf1d098f8d'] = 'Col Mode invalide';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_9414b7de379a09941e894d28f19949ae'] = 'Mode de livraison invalide';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_5eeb9ca7eee4be7192dd10d917f79a12'] = 'Assurance invalide';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_8b446ac2013dc7085802de71cc342ead'] = 'Vous devez choisir au moins un pays de livraison';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_b9a85d87ae6dd77f2107734a4cd0bb15'] = 'Clé google invalide';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_979c6094728c14aac1b66d544dc5cebd'] = 'Etat de commande invalide';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_808fb4e3a637a759565de1d314ea526f'] = 'L\'adresse principale envoyée ne n\'a pas un bon format';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_c888438d14855d7d96a2724ee9c306bd'] = 'Paramètres mis à jour avec succès';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_07213a0161f52846ab198be103b5ab43'] = 'erreurs';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_cb5e100e5a9a3e7f6d1fd97512215282'] = 'erreur';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_350c1cc4343826a89f08a33bb49c6d98'] = 'Configuration du Module Mondial Relay';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_5a2355a42ba3ab265701183c914467f2'] = 'Essayez de désactiver le cache et de forcer la compilation smarty';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_3de769f9a81eed916583d5b35c58dbdd'] = 'si vous rencontrez le moindre problème après une mise à jour du module';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_8f8b21bd013b38d1e3059557c22a57e7'] = 'Consulter le manuel pour vous guider dans la configuration de Mondial Relay';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_d21a9f93917604d5490ad529a7cf1ff9'] = 'Pour créer un transporteur Mondial Relay';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_c6a2e6af5fff47adb3afd780b97d9b4b'] = 'Remplissez et sauvegarder vos paramètres Mondial Relay';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_94fbe32464fcfa902feed9f256439833'] = 'Créez un transporteur via le formulaire ‘’ajouter un transporteur’’ ci-dessous';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_b962d8fb95f5a439f50502152f3bad71'] = 'Definissez un prix pour votre transporteur sur';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_faf1247ae6846a9955a466d4f301bbe4'] = 'La page Transporteurs';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_10d78806b84b97ebc774e9f6277af6ac'] = 'Pour générer vos étiquettes, vous devez avoir enregistré une adresse valide de votre boutique sur votre';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_af5efea250326c1c34d69aa9364b482c'] = 'page contact';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_362dff77f7403550e886db901404856c'] = 'Suppression effectuée';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_66661dacf33146201b60dc16520ddd68'] = 'Ajouter un transporteur';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_b651efdb98a5d6bd2b3935d0c3f4a5e2'] = 'Champ obligatoire';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_531e144cc23ef08408b81cb4d9c641dc'] = 'Nom du transporteur';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_c9b415ea1576b19d10d42b332798cd16'] = 'Mode de collecte';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_d24262afca47ba80b691c878243441e8'] = 'Collecte à l\'enseigne';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_201bdb87f8e278b943d07ae924d5de6e'] = 'Mode de livraison';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_142ef02888af88b8b772335277d1c0c8'] = 'Livraison dans un point relais';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_eeab8b7cf3c7a558a0e8a4050fa994ca'] = 'Livraison Colis Drive';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_8f7794b107749728c3333ef38d2687e8'] = 'Livraison à domicile RDC (1 personne)';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_e451efc8ce05b96b214b4c2935f2c657'] = 'Livraison à domicile spécialisée (2 personnes)';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_eaff1bdf24fcffe0e14e29a1bff51a12'] = 'Assurance';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_96ba408f20bc3e065f400c650d32fd1a'] = 'Défaut, pas d\'assurance complémentaire';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_e5a8fafb1dfb538c172e1e014e86b871'] = 'Assurance complémentaire N1';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_b02f8d6d4b6217cca317161c87f64065'] = 'Assurance complémentaire N2';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_90b95ae88150c6a34c4129dc4f1ebbd5'] = 'Assurance complémentaire N3';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_c15b40b8c535191f6f0b6f9beaced3cf'] = 'Assurance complémentaire N4';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_b67a442fff3ca0a03ea253b0668f946d'] = 'Assurance complémentaire N5';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_33cbd0d8b6476501f55a8320481ec0f1'] = 'Pays de livraison :';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_aef71ba4fd060dea2e2c76d1b5076caf'] = 'Vous pouvez choisir plusieurs pays en appuyant sur Ctrl tout en sélectionnant les pays';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_0309a6c666a7a803fdb9db95de71cf01'] = 'France';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_6c1674d14bf5f95742f572cddb0641a7'] = 'Belgique';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_06630c890abadde9228ea818ce52b621'] = 'Luxembourg';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_907eba32d950bfab68227fd7ea22999b'] = 'Espagne';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_0c24ec05a02c710cedd400e3680d8b81'] = 'Liste des transporteurs';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_14039af96b01e718a9c9d9c1259b6472'] = 'Aucun transporteur créé';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_8596361cec00f8d2438d264827eee737'] = 'Modifier les paramètres de ce transporteur';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_9ffc3ccc968a96d902af963c6d7b4e97'] = 'Paramètres avancés';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_1d1d57f5840e1da871622295ba206b30'] = 'Cliquez pour afficher / cacher les options';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_fcf5b2122da1d5a5f5c7253b96a3f9d9'] = 'URL de la tache CRON à lancer pour la mise à jour des statuts de commandes';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_759e1f68a70bbe8c48eb30fa4b512de8'] = 'Il semblerait que vous venez de mettre à jour Mondial Relay sans avoir réinitialisé le module : il est requis de configurer les champs ci-dessous afin de pouvoir générer les étiquettes';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_bbd9bc77f1f5b6a9edce6db062b607c9'] = 'Cette partie permet de réécrire les données envoyées à Mondial Relay lorsque vous lancez le processus de génération de tickets. Certains champs sont assez restrictifs en terme de longueur ou de caractères utilisés.';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_9127fe218b2cac7f0c8aecd7016a891d'] = 'Nom de la boutique';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_7e9bbecd32836500b557db33c3b3e93b'] = 'La clé utilisée par Mondialrelay est';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_32963eea43914b6a418fb2fd9850beb9'] = 'et elle contient comme valeur par défaut';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_c9cc8cce247e49bae79f15173ce97354'] = 'Enregistrer';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_f4f70727dc34561dfde1a3c529b6205c'] = 'Paramètres';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_d02bbc3cb147c272b0445ac5ca7d1a36'] = 'Etat des commandes';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_818f954f4838ecad839c5dcbd287d291'] = 'Choississez le statut pour la génération d\'étiquette. Vous pouvez administrer vos étiquettes sur';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_5117e194c641ad4fc55417b554aead3c'] = 'la page d\'administration de Mondial Relay';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_1ba3935c9858ffb8e19a35ca640b8505'] = 'Paramètres du compte Mondial Relay';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_a125105400f6e4ee4574da3793af5ef2'] = 'Ces paramẻtres sont fournis par Mondial Relay lors de la souscription à leur service';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_12a3fbd35c1cab4b1101b91d708efd15'] = 'Enseigne Webservice:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_6f0434b67007b555dfd1201f4e0d5254'] = 'Code marque:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_08f785193c96b2a78dec8d76a46648d6'] = 'Clé Webservice:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_0dae2d7c71f2daaedb00191af25dc28d'] = 'Langage:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_a26329cba9723551cb8654deba32872b'] = 'Coefficient de Poids:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_99244b234ec089eca40ff9e8ec343e87'] = 'grammes = 1';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_61cbc2d26b4157292673c772ddd6c0f7'] = 'Enregistrer les modifications';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_2673bca5ba0a7871770e69c962e6ce38'] = 'Nombre d\'expéditions';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_0dbe844fb964d5eca2f51be724e43294'] = 'URL des étiquettes';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_c6aefd5e2191e1210a2f50416812b517'] = 'URL du suivi';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_61e70b58e38fd01daa254f44c4fa264b'] = 'Nombre de Points Relais';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_e82faee1422140edd04b2f94c5051500'] = 'Action réussie';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_672facd73d4aee44c116cfd95298db87'] = 'Les informations du compte viennent d\'être mises à jour';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_b4ac3d3f15bc0984d0906aff1202e701'] = 'Impossibilité de mettre à jour les infos du compte pour cette boutique';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_ea50be3d60be594e10e9e3560cb9159f'] = 'Nouvelle méthode de transport ajoutée';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_d0cfdfcfb71029b561f5ebdc176d87ca'] = 'Le statu de la commande à été mise à jour';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_7534411af2e35bed1f79df5938f077f9'] = 'Le transporteur a été supprimé (désactivé dans la base de données de PrestaShop)';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_2673bca5ba0a7871770e69c962e6ce38'] = 'Numéro d\'expédition';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_0dbe844fb964d5eca2f51be724e43294'] = 'URL de l\'étiquette';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_c6aefd5e2191e1210a2f50416812b517'] = 'URL de suivi';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_61e70b58e38fd01daa254f44c4fa264b'] = 'Numéro du Point Relais® :';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_aa625fced6f01ae595b6a9ac499c2ecf'] = 'La tranche de poids ne peut être ajouté';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_63d15383121b5bb5c53323f3f96bd1f2'] = 'La tranche de prix ne peux être ajouté';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_d4d197dd028e28ae56208971b564921a'] = 'La zone par défaut ne peut être ajouté';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_760ac6deb1c5b84321f65ba0c7f319f5'] = 'La zone du transporteur ou les données de livraison ne peuvent être ajouté';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_8bf569ff65b32464e623ca9e9a10688d'] = 'Le transporteur ne peut être créé';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_6ed26bdf3f9141ddca4ede91f943e567'] = 'Le mode de transporteur ne peut être ajouté pour le module';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_af135815ccf731bcbffb522004762b57'] = 'Le transporteur ne peut être supprimé';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_bba366864d25056c941b72f18ef79e7c'] = 'Cette erreur n\'est pas mentionnée:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_e0626222614bdee31951d84c64e5e9ff'] = 'Choisir';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_91b442d385b54e1418d81adc34871053'] = 'Sélectionné';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_ef2a1f426c2c289ed5986c7636a5d696'] = 'Merci de choisir un point relay';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_80a0c205cd57b22fca7f174253870300'] = 'Heures d\'ouvertures';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_2b56b60f878922093facd42284848a0c'] = 'Plus de détails';
|
||||
$_MODULE['<{mondialrelay}prestashop>orderdetail_81b7b4587a2a3ea7a0d6bb1df3fbba54'] = 'Livraison à';
|
||||
$_MODULE['<{mondialrelay}prestashop>orderdetail_c2d05abc7f5ebdc72b6656df35038b43'] = 'Suivre mon colis sur le site de Mondial Relay';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_a1c3470a944b9625cfb924fd15c8bdbf'] = 'Veuillez choisir au moins une commande';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_dc41aac14af17f1d19fca5e3b9439e74'] = 'Cette clé';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_306b346c19017609403424203ea3d720'] = 'est vide et doit être renseignée';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_e6940b76f045c8bc0aaaa5b2476cdaf7'] = 'Il semble que la requête ne soit pas valide';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_c9b4de92f371ae545ad6f051c07d58ca'] = 'Erreur numéro :';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_ea5f761be4e4888eabf4e1501d7817d1'] = 'Détails :';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_eabb11bf9623f08409a0a4c9d035a336'] = 'Numéro d\'expédition :';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_b92c3d3319314513c547675924ceecd1'] = 'URL du Ticket :';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_66b793b6b4125e300717e8cf7449f533'] = 'Url de Tracking :';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_2653c23b8c0daac59571e4be5e8fa7d0'] = 'Le webservice Mondial Relay est actuellement innaccessible.';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_952a812236cabbd70b949ecb43f89c82'] = 'Le webservice Mondial Relay semble être déconnecté';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_26b6b6eaec970108c5e84286159fbf48'] = 'Merci de vérifier la configuration de votre langue';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_557595c2e17c9948a9448eb763ac1a88'] = 'Merci de vérifier la configuration de votre nom de boutique';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_017ca6b770ad53669a4eec82894dfcd3'] = 'Merci de vérifier la configuration de votre adresse 1';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_3f79e1fc66b4f9cca7bd68cab176020d'] = 'Merci de vérifier la configuration de votre ville';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_404665d9b65239985d59b30b3dcb26b5'] = 'Merci de vérifier la configuration de votre code postal';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_74cb73eddbe6eaf556023f943fc7e1fd'] = 'Il semble que le format du code postal ne soit pas configuré ou que vous n\'avez pas défini de code postal valide';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_0b8a30478b9572b86718989d483fd88d'] = 'Merci de vérifier la configuration de votre pays';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_7ddf2d94bf037b7d1088c0600ea589c3'] = 'Merci de vérifier la configuration de votre téléphone';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_9c7ce7be9a2c593b24d448edb4f804e0'] = 'Merci de vérifier la configuration de votre email';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_85e6a18230d49abf8cfe912809185258'] = 'La validation du code postal ne peux être effectué sur une version de PrestaShop inférieur à la 1.4';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrdownloadpdf_dc41aac14af17f1d19fca5e3b9439e74'] = 'Cette clé';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrdownloadpdf_135a7b9a62531e066a95093d8951b344'] = 'n\'est pas dans un format valide';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrdownloadpdf_c9b4de92f371ae545ad6f051c07d58ca'] = 'Erreur numéro : ';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrdownloadpdf_ea5f761be4e4888eabf4e1501d7817d1'] = 'Détails : ';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrdownloadpdf_2653c23b8c0daac59571e4be5e8fa7d0'] = 'Le service Mondial Relay est actuellement indisponible';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_14288d48d107056c1acf8aaae1bf282b'] = 'L\'adresse du client ne peut etre trouvé';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_dc41aac14af17f1d19fca5e3b9439e74'] = 'Cette clé';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_135a7b9a62531e066a95093d8951b344'] = 'n\'a pas un format valide';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_e6940b76f045c8bc0aaaa5b2476cdaf7'] = 'Il semblerai que la requete n\'est pas valide';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_c9b4de92f371ae545ad6f051c07d58ca'] = 'Il y a une erreur numéro';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_ea5f761be4e4888eabf4e1501d7817d1'] = 'Détail :';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_4e274658c9e97c2a336dde79dd0a7772'] = 'MondialRelay ne peux trouver aucun point relais proche de votre adresse. Peut etre que votre adresse n\'est pas correctement rempli ?';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_4e274658c9e97c2a336dde79dd0a7772'] = 'MondialRelay ne peux trouver aucun Point Relais® proche de votre adresse. Peut etre que votre adresse n\'est pas correctement rempli ?';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_2653c23b8c0daac59571e4be5e8fa7d0'] = 'Le webservice MondialRelay n\'est pas joignable';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgettickets_dc41aac14af17f1d19fca5e3b9439e74'] = 'Cette clé';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgettickets_135a7b9a62531e066a95093d8951b344'] = 'n\'a pas un format valide';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgettickets_e6940b76f045c8bc0aaaa5b2476cdaf7'] = 'Il semble que la requête soit invalide :';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgettickets_c9b4de92f371ae545ad6f051c07d58ca'] = 'Erreur numéro :';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgettickets_ea5f761be4e4888eabf4e1501d7817d1'] = 'Détails :';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgettickets_2653c23b8c0daac59571e4be5e8fa7d0'] = 'Le webservice Mondial Relay est actuellement innaccessible.';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrmanagement_38b4abe2f5860f034e315f2da648a3d6'] = 'Désintaller MondialRelay';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrmanagement_77bad09c976ec16f38381dc220139367'] = 'Vous allez désintaller le module : voulez vous aussi effacer les paramètres relatifs à Mondial Relay?';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrmanagement_a4691c957e81a6f0b6f0ed44f8f2dfe8'] = 'Vous allez désintaller le module : voulez vous aussi effacer les paramètres relatifs à Mondial Relay?';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrmanagement_09c081633d484a62a2f6940c12a0de36'] = 'Garder et désintaller';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrmanagement_0b7f47fce1d82d53244771c64b1535c0'] = 'Supprimer et désinstaller';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrmanagement_ea4788705e6873b424c65e91c2846b19'] = 'Annuler';
|
||||
@ -161,7 +83,6 @@ $_MODULE['<{mondialrelay}prestashop>mrmanagement_11744bfebb33e52be37a66a530b7045
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_14288d48d107056c1acf8aaae1bf282b'] = 'L\'adresse du client ne peut être trouvé';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_dc41aac14af17f1d19fca5e3b9439e74'] = 'Cette clé';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_306b346c19017609403424203ea3d720'] = 'est vide et doit être renseignée';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_e6940b76f045c8bc0aaaa5b2476cdaf7'] = 'Il semble que la requête ne soit pas valide';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_c9b4de92f371ae545ad6f051c07d58ca'] = 'Erreur numéro :';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_ea5f761be4e4888eabf4e1501d7817d1'] = 'Détails :';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_6f8522e0610541f1ef215a22ffa66ff6'] = 'Lundi';
|
||||
@ -172,3 +93,142 @@ $_MODULE['<{mondialrelay}prestashop>mrrelaydetail_c33b138a163847cdb6caeeb7c9a126
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_8b7051187b9191cdcdae6ed5a10e5adc'] = 'Samedi';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_9d1a0949c39e66a0cd65240bc0ac9177'] = 'Dimanche';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_2653c23b8c0daac59571e4be5e8fa7d0'] = 'Le webservice Mondial Relay est actuellement innaccessible.';
|
||||
$_MODULE['<{mondialrelay}prestashop>install-1.8.0_315a8895cf7c458597be5cf3c5b18d0b'] = 'Impossibilité de créer la table \'method shop\'';
|
||||
$_MODULE['<{mondialrelay}prestashop>install-1.8.0_e364c3962f360330a5d8084c3ef5cacf'] = 'Imossibilité de changer le nom de la table \'method\'';
|
||||
$_MODULE['<{mondialrelay}prestashop>install-1.8.0_6384826d8bae08ec0ca4d1cd386a32c8'] = 'Impossibilité de renommer la table d\'historique';
|
||||
$_MODULE['<{mondialrelay}prestashop>install-1.8.0_4c74bd0afa2a8ecb894674c9cd942da5'] = 'Impossibilité de mettre à jour la table \'method shop\'';
|
||||
$_MODULE['<{mondialrelay}prestashop>install-1.8.3_665cc27f3a529d80315dd49378a6c2bf'] = 'Impossibilité de créer de nouveaux champs dans la table \'method\'';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_0f27e5e9020f28e3f31b78376e11d4c7'] = 'Configuration de Mondial Relay';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_8bc212f48680748479bbd322d4d73d3f'] = 'Détails du compte';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_ea9cf7e47ff33b2be14e6dd07cbcefc6'] = 'Transporteur';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_fe4c6a5e7bd6793b37370e4e46daf998'] = 'Paramètres avancés';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_326e057f57e830834c20d668e44627ef'] = 'Infos';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_02d4482d332e1aef3437cd61c9bcc624'] = 'Contactez nous';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_29141d2b5a484e8032ef64339733f0dc'] = 'Merci de configurer le détail votre compte';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_ed4dac9dada37651967d305576326e07'] = 'Le service clientèle de Mondial Relay est disponible pour vous aider et répondre à vos questions. Contactez-nous par : ';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_2f8531293ddfd4f30bb978e93d49f650'] = 'Mail : ';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_d0398e90769ea6ed2823a3857bcc19ea'] = 'Téléphone : ';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_c276d381dccea7ac2d2e5060d52356c5'] = '09.69.322.332 (appel non surtaxé)';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_5b303c899b89c35d9d3e3d7f6ff4e8ed'] = 'Pour plus d\'information, veuillez vous rendre sur notre site à la section FAQ :';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_5a2355a42ba3ab265701183c914467f2'] = 'Essayez de désactiver le cache et de forcer la compilation smarty';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_3de769f9a81eed916583d5b35c58dbdd'] = 'si vous rencontrez le moindre problème après une mise à jour du module';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_8f8b21bd013b38d1e3059557c22a57e7'] = 'Consulter le manuel pour vous guider dans la configuration de Mondial Relay';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_d21a9f93917604d5490ad529a7cf1ff9'] = 'Pour créer un transporteur Mondial Relay';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_c6a2e6af5fff47adb3afd780b97d9b4b'] = 'Remplissez et sauvegardez vos paramètres Mondial Relay';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_4695eb112007792d94d42c8a3755169f'] = 'Ajoutez une méthode de transport depuis l’icône ';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_0dbbe632f1eaf7b912714a1aab4578c9'] = 'Transporteur';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_b962d8fb95f5a439f50502152f3bad71'] = 'Définissez un prix pour votre transporteur sur';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_faf1247ae6846a9955a466d4f301bbe4'] = 'La page Transporteurs';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_10d78806b84b97ebc774e9f6277af6ac'] = 'Pour générer vos étiquettes, vous devez avoir enregistré une adresse valide de votre boutique sur votre';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_af5efea250326c1c34d69aa9364b482c'] = 'page contact';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_1ba3935c9858ffb8e19a35ca640b8505'] = 'Détails du compte Mondial Relay';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_a125105400f6e4ee4574da3793af5ef2'] = 'Ces paramètres vous sont donnés par Mondial Relay une fois inscrit à leurs services';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_12a3fbd35c1cab4b1101b91d708efd15'] = 'Enseigne Webservice :';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_6f0434b67007b555dfd1201f4e0d5254'] = 'Code Marque :';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_08f785193c96b2a78dec8d76a46648d6'] = 'Clé Webservice :';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_0dae2d7c71f2daaedb00191af25dc28d'] = 'Langue des étiquettes';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_a26329cba9723551cb8654deba32872b'] = 'Coefficient de Poids :';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_99244b234ec089eca40ff9e8ec343e87'] = 'grammes = 1kg';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_61cbc2d26b4157292673c772ddd6c0f7'] = 'Mettre à jour le compte';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_c7ad75acafd2cdc04bc168e30e9314fd'] = 'Vérifier la connexion';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_70397c4b252a5168c5ec003931cea215'] = 'Champs requis';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_9ffc3ccc968a96d902af963c6d7b4e97'] = 'Paramètres avancés';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_1ee1c44c2dc81681f961235604247b81'] = 'Mode :';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_6ed562a0d4381eef12d92c87520f3208'] = 'Widget';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_960b44c579bc2f6818d2daaf9e4c16f0'] = 'Normal';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_fcf5b2122da1d5a5f5c7253b96a3f9d9'] = 'URL de la tache CRON';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_6f9c467e60d98ac0bfa290ab83566ec0'] = 'Mise à jour de la configuration avancée';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_66661dacf33146201b60dc16520ddd68'] = 'Ajouter une méthode de transport';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_531e144cc23ef08408b81cb4d9c641dc'] = 'Nom du transporteur';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_8f497c1a3d15af9e0c215019f26b887d'] = 'Délais ';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_201bdb87f8e278b943d07ae924d5de6e'] = 'Mode de livraison';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_142ef02888af88b8b772335277d1c0c8'] = 'Livraison dans un Point Relais®';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_eeab8b7cf3c7a558a0e8a4050fa994ca'] = 'Livraison Colis Drive';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_8f7794b107749728c3333ef38d2687e8'] = 'Livraison à domicile RDC (1 personne)';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_e451efc8ce05b96b214b4c2935f2c657'] = 'Livraison à domicile spécialisée (2 personnes)';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_09a00f755c3b3d63bf62e14172c1e9a1'] = 'Livraison à domicile spécialisée';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_eaff1bdf24fcffe0e14e29a1bff51a12'] = 'Assurance';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_96ba408f20bc3e065f400c650d32fd1a'] = 'Sans assurance';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_e5a8fafb1dfb538c172e1e014e86b871'] = 'Assurance complémentaire N1';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_b02f8d6d4b6217cca317161c87f64065'] = 'Assurance complémentaire N2';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_90b95ae88150c6a34c4129dc4f1ebbd5'] = 'Assurance complémentaire N3';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_c15b40b8c535191f6f0b6f9beaced3cf'] = 'Assurance complémentaire N4';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_b67a442fff3ca0a03ea253b0668f946d'] = 'Assurance complémentaire N5';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_33cbd0d8b6476501f55a8320481ec0f1'] = 'Pays de livraison :';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_aef71ba4fd060dea2e2c76d1b5076caf'] = 'Vous pouvez choisir plusieurs pays en appuyant sur Ctrl tout en sélectionnant les pays';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_0309a6c666a7a803fdb9db95de71cf01'] = 'France';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_6c1674d14bf5f95742f572cddb0641a7'] = 'Belgique';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_06630c890abadde9228ea818ce52b621'] = 'Luxembourg';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_907eba32d950bfab68227fd7ea22999b'] = 'Espagne';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_d8b00929dec65d422303256336ada04f'] = 'Allemagne';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_9891739094756d2605946c867b32ad28'] = 'Autriche';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_89f9c9f489be2a83cf57e53b9197d288'] = 'Angleterre';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_1007e1b7f894dfbf72a0eaa80f3bc57e'] = 'Italie';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_ea71b362e3ea9969db085abfccdeb10d'] = 'Portugal';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_0c24ec05a02c710cedd400e3680d8b81'] = 'Liste des transporteurs';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_14039af96b01e718a9c9d9c1259b6472'] = 'Aucun transporteur créé';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_59f7eec7440c6687288e747d4a7f40a0'] = 'ID_MR';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_9cd59510f1c2c821657486bc4c0f7584'] = 'ID transporteur';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_914419aa32f04011357d3b604a86d7eb'] = 'Transporteur';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_aa9cd1f8c658c08a9ff87208e3b7ba17'] = 'Pays de livraisons';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_f2a6c498fb90ee345d997f888fce3b18'] = 'Supprimer';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_7dce122004969d56ae2e0245cb754d35'] = 'Modifier';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_8d63728960e021f7632a11922685705e'] = 'Merci de bien vouloir corriger les erreurs suivantes dans';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_264f456c4202f0aba86e481a246a3ef1'] = 'la page de contact';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_7c5fd3d93bd19d81953db3b374997961'] = 'Merci de prendre connaissance des différentes erreurs, il se peut que le ticket n\'ait pas été généré.';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_de21dc13e1ea638777fbfad49f88b332'] = 'Toutes les commandes qui auront un statut';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_378116486b5a90bb50fd4f1557698d96'] = 'seront disponibles pour la création d\'étiquette';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_5dadbd0ec9f0b182be4ead8dad39da79'] = 'Liste des commandes';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_d79cf3f429596f77db95c65074663a54'] = 'Numéro de commande';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_ce26601dac0dea138b7295f02b7620a7'] = 'Client';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_0eede552438475bdfe820c13f24c9399'] = 'Prix total';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_c28e0582276cb6747e37d948e1727929'] = 'Total frais d\'expédition';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_44749712dbec183e983dcd78a7736c41'] = 'Date';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_52150799c57e873360cca13c080a91b4'] = 'Mettez un poids (grammes)';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_353a5729c99abab9b3c8289317b7a0a4'] = 'Choisissez votre assurance';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_6ccc0fdff9995e1a0fce00c99e5b6085'] = 'Numéro MR';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_f9c50cba4de9032d7a6797a2458f8ed9'] = 'Pays MR';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_428c091372d840900cf8536519fa0056'] = 'Numéro d\'expédition';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_a254c25adc7d10d7e9c4889484f875a5'] = 'Détail';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_6d64e1c3efd87dde257ae83da23d7c05'] = 'Sans assurance';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_23d246d67562088260e5629a39826a86'] = 'Assurance complémentaire N1';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_ba98b5ad1ec30ae524c6332dcea740ee'] = 'Assurance complémentaire N2';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_8b461a1d49779e5bb291b08b0bc7e21f'] = 'Assurance complémentaire N3';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_31f29c5d469d45702b0559098359d27f'] = 'Assurance complémentaire N4';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_5c509536a49ceed46f86b9efabde83ae'] = 'Assurance complémentaire N5';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_4351cfebe4b61d8aa5efa1d020710005'] = 'Voir';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_2e01172e31495f41fcebcf3f831cc82c'] = 'Opération réussie';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_37c85a61df6352af7285c307022c4413'] = 'Aucune commande disponible avec ce statut';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_32b919d18cfaca89383f6000dcc9c031'] = 'Générer';
|
||||
$_MODULE['<{mondialrelay}prestashop>history_4f1a377c20ace646ddd303ad1e1d243d'] = 'Historique de la création d\'étiquettes';
|
||||
$_MODULE['<{mondialrelay}prestashop>history_d79cf3f429596f77db95c65074663a54'] = 'Numéro de commande';
|
||||
$_MODULE['<{mondialrelay}prestashop>history_e1a98101d56e29eeea312a0eb2748a92'] = 'Numéro d\'expédition';
|
||||
$_MODULE['<{mondialrelay}prestashop>history_aab39f783ba2e72eaad1770f4d9ad0c4'] = 'Imprimer l\'étiquette au format A4';
|
||||
$_MODULE['<{mondialrelay}prestashop>history_3eb2bc1ee46258d2a166e89398756b3e'] = 'Imprimer l\'étiquette au format A5';
|
||||
$_MODULE['<{mondialrelay}prestashop>history_beb01a974a6a87ef6eeaed92c4970405'] = 'Imprimer l\'étiquette au format 10x15';
|
||||
$_MODULE['<{mondialrelay}prestashop>history_9e50665937cbb2f3c833d3626a9f9abb'] = 'Aucun historique disponible';
|
||||
$_MODULE['<{mondialrelay}prestashop>history_39a8c1a6d32fd2364eb3567967e4bd96'] = 'Imprimer l\'étiquette sélectionnée au format A4';
|
||||
$_MODULE['<{mondialrelay}prestashop>history_3d96962756b2dce870961e4658f8e8b5'] = 'Imprimer l\'étiquette sélectionnée au format A5';
|
||||
$_MODULE['<{mondialrelay}prestashop>history_e3743db648a23e969b0be5ef75639834'] = 'Imprimer l\'étiquette sélectionnée au format 10x15';
|
||||
$_MODULE['<{mondialrelay}prestashop>history_fa98e6528c9df7f26978c2beb7de3d99'] = 'Supprimer les historiques sélectionnés';
|
||||
$_MODULE['<{mondialrelay}prestashop>post_action_466ec9f29b485204ef53818459da48af'] = 'erreur(s)';
|
||||
$_MODULE['<{mondialrelay}prestashop>settings_0a4ee7474864081af12dba847fafdaa6'] = 'Configuration du panneau d\'administration';
|
||||
$_MODULE['<{mondialrelay}prestashop>settings_d02bbc3cb147c272b0445ac5ca7d1a36'] = 'Etat des commandes';
|
||||
$_MODULE['<{mondialrelay}prestashop>settings_ca57625685f058f54d82c6e05876a131'] = 'Choississez le statut pour la génération d\'étiquette.';
|
||||
$_MODULE['<{mondialrelay}prestashop>settings_c9cc8cce247e49bae79f15173ce97354'] = 'Sauvegarder';
|
||||
$_MODULE['<{mondialrelay}prestashop>settings_f4f70727dc34561dfde1a3c529b6205c'] = 'Paramètres';
|
||||
$_MODULE['<{mondialrelay}prestashop>checkout_process_836f6c949a2f2d61489bf410def82111'] = 'Mondialrelay ne peut récupérer les points relais du à une erreur de Prestashop';
|
||||
$_MODULE['<{mondialrelay}prestashop>checkout_process_widget_ad3d06d03d94223fa652babc913de686'] = 'Valider votre Point Relais®';
|
||||
$_MODULE['<{mondialrelay}prestashop>checkout_process_widget_b5cdf9b63fda35c33bb5e35cc3716b95'] = 'Point Relais® sélectionné :';
|
||||
$_MODULE['<{mondialrelay}prestashop>header_e0626222614bdee31951d84c64e5e9ff'] = 'Choisir';
|
||||
$_MODULE['<{mondialrelay}prestashop>header_91b442d385b54e1418d81adc34871053'] = 'Sélectionné';
|
||||
$_MODULE['<{mondialrelay}prestashop>header_ef2a1f426c2c289ed5986c7636a5d696'] = 'Merci de choisir un Point Relais®';
|
||||
$_MODULE['<{mondialrelay}prestashop>header_80a0c205cd57b22fca7f174253870300'] = 'Heure d\'ouvertude';
|
||||
$_MODULE['<{mondialrelay}prestashop>header_2b56b60f878922093facd42284848a0c'] = 'Plus de détails';
|
||||
$_MODULE['<{mondialrelay}prestashop>header_widget_e0626222614bdee31951d84c64e5e9ff'] = 'Choisir';
|
||||
$_MODULE['<{mondialrelay}prestashop>header_widget_91b442d385b54e1418d81adc34871053'] = 'Sélectionné';
|
||||
$_MODULE['<{mondialrelay}prestashop>header_widget_ef2a1f426c2c289ed5986c7636a5d696'] = 'Merci de choisir un Point Relais®';
|
||||
$_MODULE['<{mondialrelay}prestashop>header_widget_80a0c205cd57b22fca7f174253870300'] = 'Heure d\'ouvertude';
|
||||
$_MODULE['<{mondialrelay}prestashop>header_widget_2b56b60f878922093facd42284848a0c'] = 'Plus de détails';
|
||||
$_MODULE['<{mondialrelay}prestashop>order_detail_a68825a6533d5eceea97b4426c7ceede'] = 'Votre Point Relais®';
|
||||
$_MODULE['<{mondialrelay}prestashop>order_detail_c2d05abc7f5ebdc72b6656df35038b43'] = 'Suivre mon colis sur le site de Mondial Relay';
|
||||
|
Before Width: | Height: | Size: 800 B After Width: | Height: | Size: 800 B |
BIN
modules/mondialrelay/img/details.gif
Executable file
After Width: | Height: | Size: 954 B |
BIN
modules/mondialrelay/img/error2.png
Executable file
After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
BIN
modules/mondialrelay/img/icones/account_detail.png
Executable file
After Width: | Height: | Size: 6.6 KiB |
BIN
modules/mondialrelay/img/icones/help.png
Executable file
After Width: | Height: | Size: 3.9 KiB |
36
modules/mondialrelay/img/icones/index.php
Executable file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2015 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-2015 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;
|
BIN
modules/mondialrelay/img/icones/info.png
Executable file
After Width: | Height: | Size: 6.5 KiB |
BIN
modules/mondialrelay/img/icones/settings.png
Executable file
After Width: | Height: | Size: 7.2 KiB |
BIN
modules/mondialrelay/img/icones/supplier.png
Executable file
After Width: | Height: | Size: 6.1 KiB |
36
modules/mondialrelay/img/index.php
Executable file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2015 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-2015 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;
|
Before Width: | Height: | Size: 847 B After Width: | Height: | Size: 847 B |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 9.5 KiB After Width: | Height: | Size: 9.5 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
@ -1,13 +1,13 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
/**
|
||||
* 2007-2015 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 3.0)
|
||||
* 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/osl-3.0.php
|
||||
* 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.
|
||||
@ -18,13 +18,13 @@
|
||||
* 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-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 7233 $
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2015 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");
|
||||
|
||||
|
@ -2219,4 +2219,4 @@
|
||||
return this;
|
||||
}
|
||||
|
||||
}(jQuery));
|
||||
})(jQuery);
|
||||
|
36
modules/mondialrelay/js/index.php
Executable file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2015 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-2015 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;
|
4
modules/mondialrelay/js/jquery-1.6.4.min.js
vendored
546
modules/mondialrelay/js/jquery.plugin.mondialrelay.parcelshoppicker.2.0.0.js
Executable file
@ -0,0 +1,546 @@
|
||||
/**
|
||||
* 2007-2014 Mondial relay
|
||||
*
|
||||
* 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 Mondial relay so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade Mondial relay to newer
|
||||
* versions in the future. If you wish to customize Mondial relay for your
|
||||
* needs please refer to Mondial relay for more information.
|
||||
*
|
||||
* @author Mondial relay
|
||||
* @copyright 2007-2014 Mondial relay
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of Mondial relay
|
||||
*/
|
||||
var Widgets = Widgets || function () {
|
||||
|
||||
var private = {
|
||||
ashx: 'service.ashx',
|
||||
svc: 'services/parcelshop-picker.v2.0.0.svc',
|
||||
w_name: 'parcelshop-picker/v2.0.0',
|
||||
sw_url: '',
|
||||
img_url: 'www.mondialrelay.fr',
|
||||
bounds: null,
|
||||
map: null,
|
||||
overlays: [],
|
||||
infowindows: [],
|
||||
InfoWindow: null,
|
||||
container: null,
|
||||
callback: null,
|
||||
mapLoaded: false,
|
||||
containerId: null,
|
||||
params: null,
|
||||
protocol: '',
|
||||
|
||||
jsonpcall: function (fn, paramArray, callbackFn) {
|
||||
// Create list of parameters in the form (http get format):
|
||||
// paramName1 = paramValue1 & paramName2 = paramValue2 &
|
||||
var paramList = '';
|
||||
if (paramArray.length > 0) {
|
||||
for (var i = 0; i < paramArray.length; i += 2) {
|
||||
paramList += paramArray[i] + '=' + paramArray[i + 1] + '&';
|
||||
}
|
||||
}
|
||||
|
||||
// =======================================
|
||||
// CORRECTION PROFILEO
|
||||
// =======================================
|
||||
$.getJSON(private.protocol + private.sw_url + '/' + fn + '?' + paramList + 'method=?', callbackFn);
|
||||
},
|
||||
|
||||
loadhtml: function (container, urlraw, callback) {
|
||||
var urlselector = (urlraw).split(" ", 1);
|
||||
var url = urlselector[0];
|
||||
var selector = urlraw.substring(urlraw.indexOf(' ') + 1, urlraw.length);
|
||||
private.container = container;
|
||||
private.callback = callback;
|
||||
private.jsonpcall(private.ashx, ['downloadurl', escape(url)],
|
||||
function (msg) {
|
||||
// gets the contents of the Html in the 'msg'
|
||||
// todo: apply selector
|
||||
private.container.html(msg);
|
||||
if ($.isFunction(private.callback)) {
|
||||
private.callback();
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
Manage_Response: function (result, container, Target, TargetDisplay, TargetDisplayInfoPR) {
|
||||
if (result.Error == null) {
|
||||
container.find(".MRW-Results").slideDown('slow');
|
||||
container.find(".MRW-RList").html(result.Value).show();
|
||||
if (private.params.ShowResultsOnMap) {
|
||||
// Ajout des points sur la google map
|
||||
//if (!private.mapLoaded) {
|
||||
private.MR_LoadMap(private.params);
|
||||
private.mapLoaded = true;
|
||||
//}
|
||||
|
||||
// Supprime le contenu de la carte
|
||||
private.MR_clearOverlays();
|
||||
|
||||
// Boucle sur les Points Relais
|
||||
for (var i = 0; i < result.PRList.length; i++) {
|
||||
// Ajout d'un marker pour chaque Point Relais
|
||||
|
||||
private.MR_AddGmapMarker(
|
||||
private.map,
|
||||
new google.maps.LatLng(result.PRList[i].Lat.replace(',', '.'), result.PRList[i].Long.replace(',', '.')),
|
||||
result.PRList[i],
|
||||
i,
|
||||
private.sw_url,
|
||||
Target,
|
||||
TargetDisplay,
|
||||
TargetDisplayInfoPR
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
// Redimentionne la carte
|
||||
private.map.fitBounds(private.bounds);
|
||||
|
||||
// AutoSelect
|
||||
if (private.params.AutoSelect) {
|
||||
private.MR_FocusOnMaker(private.params.AutoSelect);
|
||||
}
|
||||
} else {
|
||||
$('#MRW-Map', private.container).html("");
|
||||
for (var i = 0; i < result.PRList.length; i++) {
|
||||
$('#MRW-Map', private.container).append(private.MR_BuildparcelShopDetails(result.PRList[i]))
|
||||
|
||||
$.data($('#MRW-Map > div:last-child')[0], "ParcelShop", result.PRList[i])
|
||||
|
||||
|
||||
$('#MRW-Map > div:last-child').bind("select", function () {
|
||||
|
||||
private.MR_SelectparcelShop($.data($(this)[0], "ParcelShop"));
|
||||
});
|
||||
|
||||
|
||||
$('#MRW-Map > div', private.container).hide()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
} else {
|
||||
container.find(".MRW-Results").hide();
|
||||
container.find(".MRW-Errors").html(result.Error).slideDown("slow");
|
||||
}
|
||||
|
||||
container.find('.progressBar').hide();
|
||||
|
||||
// Gestion du hover sur les items
|
||||
container.find('.PR-List-Item').mouseover(function () {
|
||||
$(this).addClass("PR-hover");
|
||||
});
|
||||
container.find('.PR-List-Item').mouseout(function () {
|
||||
$(this).removeClass("PR-hover");
|
||||
});
|
||||
|
||||
},
|
||||
MR_Widget_Call: function (container, Target, TargetDisplay, TargetDisplayInfoPR) {
|
||||
container.find(".MRW-Errors").hide();
|
||||
container.find('.progressBar').show();
|
||||
container.find(".MRW-Errors").html("");
|
||||
|
||||
var a0 = container.find('input.Arg0')[0].value;
|
||||
var a1 = container.find('input.Arg1')[0].value;
|
||||
var a2 = container.find('input.Arg2')[0].value;
|
||||
var a3 = container.find('input.Arg3')[0].value;
|
||||
var a4 = container.find('input.Arg4')[0].value;
|
||||
var a5 = container.find('input.Arg5')[0].value;
|
||||
var a6 = container.find('input.Arg6')[0].value;
|
||||
var a7 = container.find('input.Arg7')[0].value;
|
||||
var a8 = private.params.VacationBefore || '';
|
||||
var a9 = private.params.VacationAfter || '';
|
||||
|
||||
private.jsonpcall(private.w_name + "/" + private.svc + "/SearchPR",
|
||||
["Brand", a0, "Country", a1, "PostCode", a2, "ColLivMod", a3, "Weight", a4, "NbResults", a5, "SearchDelay", a6, "SearchFar", a7, "ClientContainerId", private.containerId, "VacationBefore", a8, "VacationAfter", a9],
|
||||
function (result) {
|
||||
private.Manage_Response(result, container, Target, TargetDisplay, TargetDisplayInfoPR);
|
||||
});
|
||||
},
|
||||
MR_LoadMap: function (prms) {
|
||||
var myOptions = {
|
||||
zoom: 5,
|
||||
center: new google.maps.LatLng(46.80000, 1.69000),
|
||||
mapTypeId: google.maps.MapTypeId.ROADMAP,
|
||||
panControl: false, // Flèches de direction
|
||||
rotateControl: true,
|
||||
scaleControl: true, // Mesure de distance
|
||||
scrollwheel: prms.MapScrollWheel ? prms.MapScrollWheel : false, // Zoom avec la molette de la souris
|
||||
streetViewControl: prms.MapStreetView ? prms.MapStreetView : false, // Autorisation de StreetView
|
||||
zoomControl: true // Zoom
|
||||
};
|
||||
private.map = new google.maps.Map(document.getElementById('MRW-Map'), myOptions);
|
||||
private.bounds = new google.maps.LatLngBounds();
|
||||
private.overlays = [];
|
||||
private.infowindows = [];
|
||||
},
|
||||
MR_clearOverlays: function () {
|
||||
for (var n = 0, overlay; overlay = private.overlays[n]; n++) {
|
||||
overlay.setMap(null);
|
||||
}
|
||||
// Clear overlays from collection
|
||||
private.overlays = [];
|
||||
private.infowindows = [];
|
||||
private.bounds = new google.maps.LatLngBounds();
|
||||
},
|
||||
MR_FocusOnMaker: function (id) {
|
||||
// Boucle sur les Markers
|
||||
for (var i = 0; i < private.overlays.length; i++) {
|
||||
// Test de validité
|
||||
if (id == private.overlays[i].get("id")) {
|
||||
private.MR_FocusOnMap(i);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
MR_AddGmapMarker: function (map, latLng, PRI, Id, sw_url, Target, TargetDisplay, TargetDisplayInfoPR) {
|
||||
// Get the letter for the marker
|
||||
var letter = String.fromCharCode("A".charCodeAt(0) + (private.overlays.length));
|
||||
|
||||
// Create the marker
|
||||
var marker = new google.maps.Marker({
|
||||
position: latLng,
|
||||
map: map,
|
||||
icon: new google.maps.MarkerImage(private.protocol + private.sw_url + "/" + private.w_name + "/css/imgs/gmaps_pr02" + letter + ".png")
|
||||
});
|
||||
|
||||
// Add clickListener
|
||||
google.maps.event.addListener(marker, 'click', function () {
|
||||
// Fermeture de la fenêtre précédente
|
||||
for(i in private.infowindows)
|
||||
if(private.infowindows[i] != null)
|
||||
private.infowindows[i].close();
|
||||
|
||||
private.InfoWindow = new google.maps.InfoWindow({
|
||||
content: private.MR_BuildparcelShopDetails(PRI)
|
||||
});
|
||||
|
||||
private.InfoWindow.open(private.map, marker);
|
||||
|
||||
private.infowindows.push(private.InfoWindow);
|
||||
|
||||
private.map.setCenter(marker.getPosition());
|
||||
});
|
||||
|
||||
// Add clickListener
|
||||
google.maps.event.addListener(marker, 'click', function () {
|
||||
private.MR_SelectparcelShop(PRI);
|
||||
});
|
||||
|
||||
// Add Marker to Overlays collection
|
||||
private.overlays.push(marker);
|
||||
|
||||
// Redimentionne la carte
|
||||
private.bounds.extend(latLng);
|
||||
//map.fitBounds(bounds);
|
||||
|
||||
return marker;
|
||||
},
|
||||
MR_SelectparcelShop: function (PRI) {
|
||||
$(private.params.Target).val(PRI.Pays + '-' + PRI.ID).trigger('change');
|
||||
$(private.params.TargetDisplay).html(PRI.Pays + '-' + PRI.ID);
|
||||
if (private.params.TargetDisplayInfoPR) {
|
||||
$(private.params.TargetDisplayInfoPR).html(PRI.Nom + '<br/>' + PRI.Adresse1 + '<br/>' + PRI.Adresse2 + '<br/>' + PRI.Pays + '-' + PRI.CP + ' ' + PRI.Ville + ' ');
|
||||
}
|
||||
|
||||
$(".PR-Selected").removeClass("PR-Selected");
|
||||
$('.PR-Id[Value="' + PRI.Pays + '-' + PRI.ID + '"]').parent().addClass("PR-Selected");
|
||||
|
||||
if (private.params.OnParcelShopSelected) {
|
||||
private.params.OnParcelShopSelected(PRI)
|
||||
}
|
||||
},
|
||||
|
||||
MR_BuildparcelShopDetails: function (PRI) {
|
||||
var content = '<div class="InfoWindow">'
|
||||
+ '<div class="PR-Name">' + PRI.Nom + '</div>'
|
||||
+ '<div class="Tabs-Btns">'
|
||||
+ '<span class="Tabs-Btn Tabs-Btn-Selected" id="btn_01" onclick="$(\'#' + private.containerId + '\').trigger(\'TabSelect\',\'01\');">Info</span>'
|
||||
+ '<span class="Tabs-Btn" id="btn_02" onclick="$(\'#' + private.containerId + '\').trigger(\'TabSelect\',\'02\');">Photo</span>'
|
||||
+ '</div>'
|
||||
+ '<div class="Tabs-Tabs">'
|
||||
+ '<div class="Tabs-Tab Tabs-Tab-Selected" id="tab_01">' + PRI.HoursHtmlTable + '</div>'
|
||||
+ '<div class="Tabs-Tab" id="tab_02">'
|
||||
+ '<img src="' + private.protocol + private.img_url + '/img/dynamique/pr.aspx?id=' + PRI.Pays + private.MR_pad_left(PRI.ID, '0', 6) + '" width="182" height="112"/>'
|
||||
+ '</div>'
|
||||
+ '</div>'
|
||||
+ '</div>'
|
||||
return content;
|
||||
},
|
||||
MR_loadjscssfile: function (filename, filetype) {
|
||||
var fileref;
|
||||
if (filetype == "js") {
|
||||
fileref = document.createElement('script');
|
||||
fileref.setAttribute("type", "text/javascript");
|
||||
fileref.setAttribute("src", filename);
|
||||
}
|
||||
else if (filetype == "css") {
|
||||
fileref = document.createElement("link");
|
||||
fileref.setAttribute("rel", "stylesheet");
|
||||
fileref.setAttribute("type", "text/css");
|
||||
fileref.setAttribute("href", filename);
|
||||
}
|
||||
if (typeof fileref != "undefined") { document.getElementsByTagName("head")[0].appendChild(fileref); }
|
||||
},
|
||||
|
||||
MR_pad_left: function (s, c, n) {
|
||||
if (!s || !c || s.length >= n) {
|
||||
return s;
|
||||
}
|
||||
|
||||
var max = (n - s.length) / c.length;
|
||||
for (var i = 0; i < max; i++) {
|
||||
s = c + s;
|
||||
}
|
||||
|
||||
return s;
|
||||
},
|
||||
|
||||
|
||||
// Initialisation du Widget après chargement du contrôle
|
||||
MR_Widget_Init: function (container, prms) {
|
||||
private.params = prms;
|
||||
// Autocomplete sur le nom de ville
|
||||
var t = container.find('input.iArg0');
|
||||
var autoCpl = $("<div>");
|
||||
autoCpl.addClass("PR-AutoCplCity");
|
||||
autoCpl.css("width", t.width());
|
||||
|
||||
container.find('.MRW-Search').append(autoCpl);
|
||||
|
||||
container.find('input.Arg2').live('keydown', function (e) {
|
||||
container.find('.PR-AutoCplCity').html("").slideUp("fast");
|
||||
});
|
||||
|
||||
container.find('input.iArg0').live('keydown', function (e) {
|
||||
var keyCode = e.keyCode || e.which;
|
||||
|
||||
var ia0 = container.find('input.iArg0')[0].value;
|
||||
var a2 = ""; //container.find('input.Arg2')[0].value;
|
||||
var a1 = container.find('input.Arg1')[0].value;
|
||||
|
||||
var inp = String.fromCharCode(keyCode);
|
||||
//déplacement par les touches
|
||||
//en cas de touche fleche vers le bas
|
||||
if (keyCode == 40) {
|
||||
if (container.find('.PR-AutoCplCity .AutoCpl-Hover').length === 0) {
|
||||
container.find('.PR-AutoCplCity div:first-child').addClass("AutoCpl-Hover");
|
||||
} else if (container.find('.AutoCpl-Hover').next().length > 0) {
|
||||
container.find('.AutoCpl-Hover').removeClass("AutoCpl-Hover").next().addClass("AutoCpl-Hover");
|
||||
}
|
||||
}
|
||||
//en cas de touche fleche vers le haut
|
||||
else if (keyCode == 38) {
|
||||
if (container.find('.PR-AutoCplCity .AutoCpl-Hover').length === 0) {
|
||||
container.find('.PR-AutoCplCity div:last-child').addClass("AutoCpl-Hover");
|
||||
} else if (container.find('.AutoCpl-Hover').prev().length > 0) {
|
||||
container.find('.AutoCpl-Hover').removeClass("AutoCpl-Hover").prev().addClass("AutoCpl-Hover");
|
||||
}
|
||||
}
|
||||
//en cas de touche entrée
|
||||
else if ((keyCode == 13 || keyCode == 9) && container.find('.AutoCpl-Hover').length > 0) {
|
||||
e.preventDefault();
|
||||
container.find('input.Arg2')[0].value = container.find('.AutoCpl-Hover').attr("title");
|
||||
container.find('input.iArg0')[0].value = container.find('.AutoCpl-Hover').attr("name");
|
||||
container.find('.PR-AutoCplCity').html("").slideUp("fast");
|
||||
return;
|
||||
}
|
||||
//pour toute autre touche de type caractère
|
||||
else if (/[a-zA-Z0-9\-_ ]/.test(inp)) {
|
||||
ia0 = ia0 + inp;
|
||||
if (ia0.length > 3) {
|
||||
container.find('.PR-AutoCplCity').css("top", (this.offsetTop + 20) + "px");
|
||||
container.find('.PR-AutoCplCity').css("left", (this.offsetLeft) + "px");
|
||||
|
||||
private.jsonpcall(private.w_name + "/" + private.svc + "/AutoCPLCity",
|
||||
["PostCode", a2, "Country", a1, "City", ia0],
|
||||
function (result) {
|
||||
container.find('.PR-AutoCplCity').html("");
|
||||
|
||||
for (var i = 0; i < result.Value.length; i++) {
|
||||
var elm = $("<div>");
|
||||
elm.attr("title", result.Value[i].PostCode);
|
||||
elm.attr("name", result.Value[i].Name);
|
||||
elm.addClass("PR-City");
|
||||
|
||||
elm.html(result.Value[i].Name + " (" + result.Value[i].PostCode + ")");
|
||||
container.find('.PR-AutoCplCity').append(elm);
|
||||
elm.click(function () {
|
||||
container.find('input.Arg2')[0].value = $(this).attr("title");
|
||||
container.find('input.iArg0')[0].value = $(this).attr("name");
|
||||
container.find('.PR-AutoCplCity').html("").slideUp("fast");
|
||||
});
|
||||
}
|
||||
container.find('.PR-AutoCplCity').slideDown("fast");
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
else {
|
||||
container.find('.PR-AutoCplCity').html("").slideUp("fast");
|
||||
}
|
||||
});
|
||||
|
||||
container.find('input.iArg0').blur(function (event) {
|
||||
if (container.find('.AutoCpl-Hover').length) {
|
||||
container.find('input.Arg2')[0].value = container.find('.AutoCpl-Hover').attr("title");
|
||||
container.find('input.iArg0')[0].value = container.find('.AutoCpl-Hover').attr("name");
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
// Fonction au click sur le bouton rechercher
|
||||
container.find('.MRW-BtGo').click(function () {
|
||||
var btn = $(this);
|
||||
private.MR_Widget_Call(container, prms.Target, prms.TargetDisplay, prms.TargetDisplayInfoPR);
|
||||
return false;
|
||||
});
|
||||
|
||||
// Fonction au click sur la selection des pays
|
||||
container.find('.MRW-flag').click(function () {
|
||||
var btn = $(this);
|
||||
container.find('.MRW-fl-Select').slideDown("fast").css("top", (this.offsetTop + this.height + 2) + "px").css("left", this.offsetLeft - 3 + "px");
|
||||
});
|
||||
|
||||
// Fonction au click sur la selection d'un pays
|
||||
container.find('.MRW-fl-Item').click(function () {
|
||||
var btn = $(this);
|
||||
container.find('.MRW-fl-Select').slideUp("fast");
|
||||
container.find('.MRW-flag').attr('src', btn.find('img').attr('src'));
|
||||
container.find('input.Arg1')[0].value = btn.find('img').attr('alt');
|
||||
});
|
||||
|
||||
container.find('input.Arg0')[0].value = prms.Brand;
|
||||
container.find('input.Arg1')[0].value = prms.Country;
|
||||
container.find('input.Arg2')[0].value = prms.PostCode;
|
||||
container.find('input.Arg3')[0].value = prms.ColLivMod;
|
||||
container.find('input.Arg4')[0].value = prms.Weight;
|
||||
container.find('input.Arg5')[0].value = prms.NbResults;
|
||||
container.find('input.Arg6')[0].value = prms.SearchDelay;
|
||||
container.find('input.Arg7')[0].value = prms.SearchFar;
|
||||
|
||||
if (prms.PostCode != "") { private.MR_Widget_Call(container, prms.Target, prms.TargetDisplay, prms.TargetDisplayInfoPR); }
|
||||
}
|
||||
};
|
||||
|
||||
var pub = {
|
||||
MR_WidgetJq: function (Div, prms) {
|
||||
var settings = $.extend({
|
||||
CSS: "1", // (Facultatif) Utilisation du CSS par défaut (1 = Oui)
|
||||
Target: "", // (Obligatoire) L'ID du Point Relais sera retourné dans l'élément d'ID INPUT "RetourWidget"
|
||||
TargetDisplay: "", // (Facultatif) L'ID du Point Relais sera retourné dans l'élément d'ID HTML "RetourDisplay"
|
||||
Country: "FR", // (Obligatoire) Pays préselectionné
|
||||
PostCode: "", // (Facultatif) Code Postal préselectionné
|
||||
ColLivMod: "24R", // (Facultatif) Mode de collecte ou de livraison prévu
|
||||
Weight: "", // (Facultatif) Poids du colis en Grammes
|
||||
NbResults: "10", // (Facultatif) Nombre de résultat maximum affichable
|
||||
SearchDelay: "", // (Facultatif) Délai prévu avant la remise du colis à Mondial Relay
|
||||
AllowedCountries: "", // (Facultatif) Distance de recherche maximum
|
||||
SearchFar: "", // (Facultatif) Distance de recherche maximum
|
||||
MapScrollWheel: false, // (Facultatif) Maps : Activation de la molette de la souris pour effectuer un Zoom
|
||||
MapStreetView: false,
|
||||
ShowResultsOnMap: true,
|
||||
UseSSL: ssl,
|
||||
ServiceUrl: 'widget.mondialrelay.com',
|
||||
OnParcelShopSelected: null
|
||||
}, prms);
|
||||
|
||||
if (settings.UseSSL) {
|
||||
private.protocol = 'https://';
|
||||
settings.ServiceUrl= 'www.mondialrelay.fr/widget/';
|
||||
} else {
|
||||
private.protocol = 'http://';
|
||||
}
|
||||
|
||||
private.sw_url = settings.ServiceUrl;
|
||||
|
||||
if (settings.AllowedCountries == "") {
|
||||
settings.AllowedCountries = settings.Country;
|
||||
}
|
||||
|
||||
if (!Div.attr("id")) { Div.attr("id", "MRParcelShopPicker_" + Math.floor((Math.random() * 10000000) + 1)) }
|
||||
|
||||
private.containerId = Div.attr("id")
|
||||
|
||||
if (settings.CSS != "0") {
|
||||
private.MR_loadjscssfile(private.protocol + private.sw_url + "/" + private.w_name + "/css/style.min.css", "css");
|
||||
}
|
||||
private.container = Div;
|
||||
private.loadhtml(private.container, private.protocol + private.sw_url + "/" + private.w_name + "/services/widget.v2.0.0.aspx?allowedCountries=" + settings.AllowedCountries + "&Country=" + settings.Country + "&UseSSL=" + settings.UseSSL,
|
||||
function () { private.MR_Widget_Init(private.container, settings); });
|
||||
|
||||
return this;
|
||||
},
|
||||
// load widget into 'container' from 'host'
|
||||
MR_Widget: function (Div, prms) {
|
||||
return pub.MR_WidgetJq($(Div), prms);
|
||||
},
|
||||
MR_Destroy: function (Div, prms) {
|
||||
private.container = $(Div);
|
||||
private.container.find('input.Arg2').unbind('keydown');
|
||||
private.container.find('input.iArg0').unbind('keydown');
|
||||
private.mapLoaded = false;
|
||||
},
|
||||
MR_FocusOnMap: function (i) {
|
||||
if (private.params.ShowResultsOnMap) {
|
||||
google.maps.event.trigger(private.overlays[i], "click");
|
||||
} else {
|
||||
$('#MRW-Map > div', private.container).hide();
|
||||
$('#MRW-Map > div:nth-child(' + (i + 1) + ')', private.container).show().trigger('select');
|
||||
}
|
||||
},
|
||||
MR_tabselect: function (tab) {
|
||||
$(".Tabs-Btn-Selected", private.container).removeClass("Tabs-Btn-Selected");
|
||||
$('#btn_' + tab, private.container).addClass("Tabs-Btn-Selected");
|
||||
$(".Tabs-Tab-Selected", private.container).removeClass("Tabs-Tab-Selected");
|
||||
$('#tab_' + tab, private.container).addClass("Tabs-Tab-Selected");
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
return pub;
|
||||
} ();
|
||||
|
||||
|
||||
; (function ($, doc, win) {
|
||||
"use strict";
|
||||
|
||||
var name = 'MondialRelay-ParcelShopPicker';
|
||||
|
||||
$.fn.MR_ParcelShopPicker = function (opts) {
|
||||
|
||||
return this.each(function (i, el) {
|
||||
var base = el;
|
||||
base.init = function () {
|
||||
base.MR = new Widgets.MR_Widget(el, opts);
|
||||
$("#" + base.id).bind("FocusOnMap", function (evt, id) {
|
||||
this.MR.MR_FocusOnMap(id)
|
||||
});
|
||||
$("#" + base.id).bind("TabSelect", function (evt, id) {
|
||||
this.MR.MR_tabselect(id)
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
base.init();
|
||||
|
||||
});
|
||||
};
|
||||
})(jQuery, document, window);
|
||||
|
1361
modules/mondialrelay/js/mondialrelay.js
Executable file
258
modules/mondialrelay/js/mondialrelay_widget.js
Executable file
@ -0,0 +1,258 @@
|
||||
/*
|
||||
* 2007-2015 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-2015 PrestaShop SA
|
||||
* @version Release: $Revision: 16986 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
function getNumeric(val) {
|
||||
var reg=new RegExp("[0-9]+","g");
|
||||
var res = reg.exec(val);
|
||||
if(isNaN(res))
|
||||
return 0;
|
||||
else
|
||||
return res;
|
||||
}
|
||||
|
||||
function checkToDisplayRelayList()
|
||||
{
|
||||
if (typeof PS_MRData != 'undefined')
|
||||
{
|
||||
//============================================================
|
||||
// auto display fancybox if radio already check
|
||||
//============================================================
|
||||
PS_MRSelectedRelayPoint['relayPointNum'] = PS_MRData.pre_selected_relay;
|
||||
// PS_VERSION < '1.5'
|
||||
if (PS_MRData.PS_VERSION < '1.5')
|
||||
{
|
||||
// Bind id_carrierX to an ajax call
|
||||
$.each(PS_MRData.carrier_list, function(i, carrier) {
|
||||
PS_MRCarrierMethodList[carrier.id_carrier] = carrier.id_mr_method;
|
||||
if ($('#id_carrier' + carrier.id_carrier).attr('checked')) {
|
||||
PS_MRSelectedRelayPoint['carrier_id'] = carrier.id_carrier;
|
||||
PS_MRDisplayWidget(carrier.id_carrier);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
else if (PS_MRData.PS_VERSION >= '1.5'
|
||||
&& typeof PS_MRData.carrier != 'undefined'
|
||||
)
|
||||
{ // 1.5 way
|
||||
var carrier_selected = $('input[class=delivery_option_radio]:checked').val();
|
||||
$.each(PS_MRData.carrier_list, function(i, carrier) {
|
||||
PS_MRCarrierMethodList[carrier.id_carrier] = carrier.id_mr_method;
|
||||
if (carrier.id_carrier+',' == carrier_selected || carrier.id_carrier == carrier_selected) {
|
||||
overrideUpdateExtraCarrier(carrier_selected, id_address);
|
||||
PS_MRSelectedRelayPoint['carrier_id'] = carrier.id_carrier;
|
||||
PS_MRDisplayWidget(carrier.id_carrier);
|
||||
}
|
||||
});
|
||||
}
|
||||
//============================================================
|
||||
// Handle input click of the other input to hide the previous relay point list displayed
|
||||
$('input[name=id_carrier], input.delivery_option_radio').click(function(e){
|
||||
displayPickupPlace(0);
|
||||
});
|
||||
}
|
||||
//return false;
|
||||
}
|
||||
|
||||
function isMRCarrier(id_carrier){
|
||||
var carrier_list = PS_MRData.carrier_list;
|
||||
for(i in carrier_list){
|
||||
var MR_carrier = carrier_list[i];
|
||||
if(MR_carrier.id_carrier == id_carrier) {
|
||||
return MR_carrier;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function hideRelaySelectedBox(_this){
|
||||
// Hide MR input if one of them is not selected
|
||||
if (PS_MRCarrierMethodList[_this.val()] == undefined){
|
||||
// 1.5 way
|
||||
var id = getNumeric(_this.val());
|
||||
if(PS_MRCarrierMethodList[id] == undefined) {
|
||||
displayPickupPlace(0);
|
||||
PS_MRSelectedRelayPoint['carrier_id'] = 0;
|
||||
PS_MRDisplayWidget(0);
|
||||
PS_MRSelectedRelayPoint['relayPointNum'] = 0;
|
||||
}
|
||||
else {
|
||||
PS_MRSelectedRelayPoint['carrier_id'] = id;
|
||||
PS_MRDisplayWidget(id);
|
||||
}
|
||||
}
|
||||
else {
|
||||
PS_MRSelectedRelayPoint['carrier_id'] = _this.val();
|
||||
PS_MRDisplayWidget(_this.val());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function PS_MRDisplayWidget(carrier_id) {
|
||||
var dlv_mode = '';
|
||||
$.each(PS_MRData.carrier_list, function(i, carrier) {
|
||||
if (carrier.id_carrier == carrier_id)
|
||||
dlv_mode = carrier.dlv_mode;
|
||||
PS_MRSelectedRelayPoint['relayPointNum'] = -1;
|
||||
PS_MRAddSelectedCarrierInDB(carrier_id);
|
||||
}
|
||||
);
|
||||
if(carrier_id) {
|
||||
if(dlv_mode!='LD1' && dlv_mode!='LDS' && dlv_mode!='HOM') {
|
||||
loadMR_Map("#Zone_Widget", dlv_mode);
|
||||
$("#link_zone_widget").click();
|
||||
if(PS_MRSelectedRelayPoint['relayPointNum'] == -1)
|
||||
PS_MRSelectedRelayPoint['relayPointNum'] = 0;
|
||||
}
|
||||
else
|
||||
displayPickupPlace(0);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
function overrideUpdateExtraCarrier(id_delivery_option, id_address)
|
||||
{
|
||||
if(PS_MRData.PS_VERSION < '1.5')
|
||||
return false;
|
||||
|
||||
var url = "";
|
||||
var method = 'updateExtraCarrier';
|
||||
var params = '';
|
||||
if(typeof(orderOpcUrl) !== 'undefined') {
|
||||
method = 'updateCarrierAndGetPayments';
|
||||
params += '&recyclable='+(($('#recyclable:checked').val() != undefined)? 1:0);
|
||||
params += '&gift='+(($('#gift:checked').val() != undefined)? 1:0);
|
||||
params += '&gift_message='+$('#gift_message').val();
|
||||
params += '&delivery_option['+id_address+']='+id_delivery_option;
|
||||
url = orderOpcUrl;
|
||||
}
|
||||
else
|
||||
url = orderUrl;
|
||||
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
headers: { "cache-control": "no-cache" },
|
||||
url: url + '?rand=' + new Date().getTime(),
|
||||
async: false,
|
||||
cache: false,
|
||||
dataType : "json",
|
||||
data: 'ajax=true'
|
||||
+'&method='+method
|
||||
+params
|
||||
+'&id_address='+id_address
|
||||
+'&id_delivery_option='+id_delivery_option
|
||||
+'&token='+static_token
|
||||
+'&allow_refresh=1',
|
||||
success: function(jsonData)
|
||||
{
|
||||
//$('#HOOK_EXTRACARRIER_'+id_address).html(jsonData['content']);
|
||||
return false;
|
||||
}
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
function displayPickupPlace(info) {
|
||||
var id = "relay_point_selected_box";
|
||||
|
||||
if(!info) {
|
||||
$('#'+id).hide();
|
||||
$('#'+id).remove();
|
||||
return false;
|
||||
}
|
||||
|
||||
if (PS_MRData.PS_VERSION < '1.5')
|
||||
{
|
||||
var block_carrier = $('#carrierTable');
|
||||
}
|
||||
else {
|
||||
var block_carrier = $('.delivery_options_address');
|
||||
}
|
||||
if($('#'+id).length !== 0) {
|
||||
$('#'+id).html('<h3>'+relay_point_selected_box_label+'</h3>'+info);
|
||||
$('#'+id).show();
|
||||
}
|
||||
else {
|
||||
$('<div id="'+id+'"><h3>'+relay_point_selected_box_label+'</h3>'+info+'</div>').insertAfter(block_carrier);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function PS_MRAddSelectedCarrierInDB(id_carrier)
|
||||
{
|
||||
// Make the request
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: _PS_MR_MODULE_DIR_ + 'ajax.php',
|
||||
data: {'method' : 'addSelectedCarrierToDB',
|
||||
'id_carrier' : id_carrier,
|
||||
'id_mr_method' : PS_MRCarrierMethodList[id_carrier],
|
||||
'mrtoken' : mrtoken},
|
||||
success: function(json)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
$(document).ready(function()
|
||||
{
|
||||
// 1.5 OPC Validation - Warn user to select a relay point
|
||||
$('.payment_module a').live('click', function() {
|
||||
if (typeof PS_MRData != 'undefined')
|
||||
{
|
||||
if (PS_MRData.PS_VERSION >= '1.5' && PS_MRData.carrier && PS_MRSelectedRelayPoint['carrier_id']!=0)
|
||||
{
|
||||
var _return = !(!PS_MRSelectedRelayPoint['carrier_id'] || !PS_MRSelectedRelayPoint['relayPointNum']);
|
||||
if (!_return)
|
||||
alert(PS_MRTranslationList['errorSelection']);
|
||||
return _return;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// If MR carrier selected, check MR relay point is selected too
|
||||
$('input[name=processCarrier], button[name=processCarrier]').click(function(){
|
||||
var carrier_selected = $('input[class=delivery_option_radio]:checked').val();
|
||||
if (PS_MRSelectedRelayPoint['carrier_id']+',' == carrier_selected || PS_MRSelectedRelayPoint['carrier_id'] == carrier_selected)
|
||||
{
|
||||
var _return = !(PS_MRSelectedRelayPoint['carrier_id'] && !PS_MRSelectedRelayPoint['relayPointNum']);
|
||||
if (!_return)
|
||||
alert(PS_MRTranslationList['errorSelection']);
|
||||
return _return;
|
||||
}
|
||||
});
|
||||
|
||||
if (typeof PS_MRData != 'undefined')
|
||||
{
|
||||
if (PS_MRData.PS_VERSION < '1.5') {
|
||||
$('input[name="id_carrier"]').click(function(){
|
||||
checkToDisplayRelayList();
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
BIN
modules/mondialrelay/logo.png
Executable file
After Width: | Height: | Size: 2.3 KiB |
36
modules/mondialrelay/mails/en/index.php
Executable file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2015 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-2015 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;
|
77
modules/mondialrelay/mails/en/mr_new_order.html
Executable file
@ -0,0 +1,77 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<title>[{shop_name}] New order</title>
|
||||
</head>
|
||||
<body>
|
||||
<table style="font-family:Verdana,sans-serif; font-size:11px; color:#374953; width: 550px;">
|
||||
<tr>
|
||||
<td align="left">
|
||||
<a href="{shop_url}" title="{shop_name}"><img alt="{shop_name}" src="{shop_logo}" style="border:none;" ></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td> </td></tr>
|
||||
<tr>
|
||||
<td align="left">Hello <strong style="color:#DB3484;">{firstname} {lastname}</strong>, thank you for shopping with <strong>{shop_name}</strong> and Mondial Relay.</td>
|
||||
</tr>
|
||||
<tr><td> </td></tr>
|
||||
<tr>
|
||||
<td align="left" style="background-color:#DB3484; color:#FFF; font-size: 12px; font-weight:bold; padding: 0.5em 1em;">Order details</td>
|
||||
</tr>
|
||||
<tr><td> </td></tr>
|
||||
<tr>
|
||||
<td align="left">
|
||||
Order: <strong><span style="color:#DB3484;">{order_name}</span> placed on {date}</strong>
|
||||
<br >Payment: <strong>{payment}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td> </td></tr>
|
||||
<tr>
|
||||
<td align="left">
|
||||
Carrier: <strong>{carrier}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td> </td></tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table style="width:100%; font-family:Verdana,sans-serif; font-size:11px; color:#374953;">
|
||||
<tr style="background-color:#B9BABE; text-transform:uppercase;">
|
||||
<th style="text-align:left; padding: 0.3em 1em;">Point Relais® Delivery address</th>
|
||||
<th style="text-align:left; padding: 0.3em 1em;">Billing address</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding:0.5em 0 0.5em 0.5em; background-color:#EBECEE;">
|
||||
<br><span style="color:#DB3484; font-weight:bold;">{delivery_company}</span>
|
||||
<br>{delivery_address1}
|
||||
<br>{delivery_city} {delivery_postal_code}
|
||||
<br>{delivery_country}
|
||||
</td>
|
||||
<td style="padding:0.5em 0 0.5em 0.5em; background-color:#EBECEE;">
|
||||
{invoice_company}
|
||||
<br><span style="color:#DB3484; font-weight:bold;">{invoice_firstname} {invoice_lastname}</span>
|
||||
<br>{invoice_address1}
|
||||
<br>{invoice_address2}
|
||||
<br>{invoice_city} {invoice_postal_code}
|
||||
<br>{invoice_country} {invoice_state}
|
||||
<br>{invoice_phone}
|
||||
<br>{invoice_other}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td> </td></tr>
|
||||
<tr>
|
||||
<td align="left">
|
||||
You can review this order and download your invoice from the <a href="{shop_url}history.php" style="color:#DB3484; font-weight:bold; text-decoration:none;">"Order history"</a> section of your account by clicking <a href="{shop_url}my-account.php" style="color:#DB3484; font-weight:bold; text-decoration:none;">"My account"</a> on our Website.
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td> </td></tr>
|
||||
<tr>
|
||||
<td align="center" style="font-size:10px; border-top: 1px solid #D9DADE;">
|
||||
<a href="{shop_url}" style="color:#DB3484; font-weight:bold; text-decoration:none;">{shop_name}</a> powered with <a href="http://www.prestashop.com/" style="text-decoration:none; color:#374953;">PrestaShop™</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
31
modules/mondialrelay/mails/en/mr_new_order.txt
Executable file
@ -0,0 +1,31 @@
|
||||
Hello {firstname} {lastname}, thank you for your order on {shop_name}!
|
||||
|
||||
Order details
|
||||
|
||||
Order: {order_name} placed on {date}
|
||||
Payment: {payment}
|
||||
|
||||
Shipping
|
||||
|
||||
Carrier: {carrier}
|
||||
|
||||
Delivery address:
|
||||
|
||||
{delivery_company}
|
||||
{delivery_address1}
|
||||
{delivery_postal_code} {delivery_city}
|
||||
{delivery_country}
|
||||
|
||||
Billing address:
|
||||
|
||||
{invoice_company}
|
||||
{invoice_firstname} {invoice_lastname}
|
||||
{invoice_address1}
|
||||
{invoice_address2}
|
||||
{invoice_postal_code} {invoice_city}
|
||||
{invoice_country} {invoice_state}
|
||||
{invoice_other}
|
||||
|
||||
You can review this order and download your invoice from the "Order history" section of your account by clicking "My account" on our Website.
|
||||
|
||||
{shop_url} powered by PrestaShop™
|
235
modules/mondialrelay/nl.php
Executable file
@ -0,0 +1,235 @@
|
||||
<?php
|
||||
|
||||
global $_MODULE;
|
||||
$_MODULE = array();
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_e82faee1422140edd04b2f94c5051500'] = 'Actie geslaagd';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_3b2d373418745276ae6e207421245cdc'] = 'Bestelstatus geüpdatet';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_b4ac3d3f15bc0984d0906aff1202e701'] = 'Kan de account-winkel niet updaten';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_44585fcd617dce6416d8283b026714c1'] = 'Mondial Relay';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_ed4a3b96dc1f38c160775cac1f7bcd6d'] = 'Leveren in een afhaalpunt';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_ec0cc3039fa07db6a4e83582d2796883'] = 'Mondial Relay vereist de installatie van SOAP & cURL op uw server.';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_4c9120f1a5947445c0e9620254ceb30b'] = 'Nieuwe bestelling';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_d2286c9c8c8f92cb0e805b17834591b0'] = 'Ongeldige handelsnaam';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_709b076565df5fa98cdb2528d897633d'] = 'Ongeldige merkcode';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_c86508f5bc6b4456e7003d6a1868689d'] = 'Ongeldige sleutel';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_ea9261a3dad976b40ff2088a19fda2c3'] = 'Ongeldige taal';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_4eb287cc225ba0e1bcfe9cc1b8315def'] = 'Ongeldige wegingscoëfficiënt';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_70ff82d47f295f730c6accf07a2948e8'] = 'Ongeldige vervoerdersnaam';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_e1f1787db2fee596f4c3bfaf1d098f8d'] = 'Ongeldige Col-modus';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_9414b7de379a09941e894d28f19949ae'] = 'Ongeldige Verzekeringsmodus';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_5eeb9ca7eee4be7192dd10d917f79a12'] = 'Ongeldige Verzekeringsmodus';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_8b446ac2013dc7085802de71cc342ead'] = 'U moet ten minste één land van levering kiezen.';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_979c6094728c14aac1b66d544dc5cebd'] = 'Ongeldige bestelstatus';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_e82faee1422140edd04b2f94c5051500'] = 'Actie geslaagd';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_672facd73d4aee44c116cfd95298db87'] = 'Accountgegevens geüpdatet';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_b4ac3d3f15bc0984d0906aff1202e701'] = 'Kan de account-winkel niet updaten';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_ea50be3d60be594e10e9e3560cb9159f'] = 'Verzendingsmethode toegevoegd';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_d0cfdfcfb71029b561f5ebdc176d87ca'] = 'Bestelstatus correct gewijzigd';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_7534411af2e35bed1f79df5938f077f9'] = 'Label URL';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_2673bca5ba0a7871770e69c962e6ce38'] = 'Nummer verzending:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_0dbe844fb964d5eca2f51be724e43294'] = 'URL de l\'étiquette';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_c6aefd5e2191e1210a2f50416812b517'] = 'Follow-up URL';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_61e70b58e38fd01daa254f44c4fa264b'] = 'Nummer Afhaalpunt:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_aa625fced6f01ae595b6a9ac499c2ecf'] = 'Gewichtspercentage kan niet worden toegevoegd';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_63d15383121b5bb5c53323f3f96bd1f2'] = 'Prijspercentage kan niet worden toegevoegd';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_d4d197dd028e28ae56208971b564921a'] = 'Standaardzone kan niet worden toegevoegd';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_760ac6deb1c5b84321f65ba0c7f319f5'] = 'Vervoerderszone of leveringsgegevens kunnen niet worden toegevoegd';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_8bf569ff65b32464e623ca9e9a10688d'] = 'Vervoerder kan niet worden aangemaakt in PrestaShop';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_6ed26bdf3f9141ddca4ede91f943e567'] = 'Vervoermethode kan niet worden toegevoegd voor de module';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_af135815ccf731bcbffb522004762b57'] = 'Vervoerder kan nog niet worden verwijderd';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_bba366864d25056c941b72f18ef79e7c'] = 'Deze foutmelding is niet vermeld:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_a1c3470a944b9625cfb924fd15c8bdbf'] = 'Kies ten minste één bestelling';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_dc41aac14af17f1d19fca5e3b9439e74'] = 'Deze sleutel';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_306b346c19017609403424203ea3d720'] = 'Is leeg en moet worden ingevoerd';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_c9b4de92f371ae545ad6f051c07d58ca'] = 'Er is een fout opgetreden:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_ea5f761be4e4888eabf4e1501d7817d1'] = 'Details:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_eabb11bf9623f08409a0a4c9d035a336'] = 'Verzendingsnummer:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_b92c3d3319314513c547675924ceecd1'] = 'Ticket-URL:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_66b793b6b4125e300717e8cf7449f533'] = 'Follop-up URL:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_952a812236cabbd70b949ecb43f89c82'] = 'De Mondial Relay webdienst is momenteel niet betrouwbaar';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_26b6b6eaec970108c5e84286159fbf48'] = 'Controleer uw taal-configuratie';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_557595c2e17c9948a9448eb763ac1a88'] = 'Controleer uw winkelnaam-configuratie';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_017ca6b770ad53669a4eec82894dfcd3'] = 'Controleer uw adres 1-configuratie';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_3f79e1fc66b4f9cca7bd68cab176020d'] = 'Controleer uw stad-configuratie';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_404665d9b65239985d59b30b3dcb26b5'] = 'Controleer uw postcode-configuratie';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_0b8a30478b9572b86718989d483fd88d'] = 'Controleer uw land-configuratie';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_7ddf2d94bf037b7d1088c0600ea589c3'] = 'Controleer uw telefoonnummer-configuratie';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_9c7ce7be9a2c593b24d448edb4f804e0'] = 'Controleer uw e-mail-configuratie';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_85e6a18230d49abf8cfe912809185258'] = 'De postcode kan niet worden bevestigd met PrestaShop versies ouder dan 1.4';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrdownloadpdf_dc41aac14af17f1d19fca5e3b9439e74'] = 'Deze sleutel';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrdownloadpdf_135a7b9a62531e066a95093d8951b344'] = 'heeft geen geldig formaat';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrdownloadpdf_c9b4de92f371ae545ad6f051c07d58ca'] = 'Er is een fout opgetreden:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrdownloadpdf_ea5f761be4e4888eabf4e1501d7817d1'] = 'Details:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrdownloadpdf_2653c23b8c0daac59571e4be5e8fa7d0'] = 'De Mondial Relay webdienst is momenteel niet betrouwbaar';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_14288d48d107056c1acf8aaae1bf282b'] = 'Het adres van de klant kan niet worden gevonden';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_dc41aac14af17f1d19fca5e3b9439e74'] = 'Deze sleutel';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_135a7b9a62531e066a95093d8951b344'] = 'heeft geen geldig formaat';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_c9b4de92f371ae545ad6f051c07d58ca'] = 'Er is een fout opgetreden:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_ea5f761be4e4888eabf4e1501d7817d1'] = 'Details:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_4e274658c9e97c2a336dde79dd0a7772'] = 'MondialRelay vindt geen enkel afhaalpunt in uw buurt. Misschien is uw adres niet correct ingevoerd?';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_2653c23b8c0daac59571e4be5e8fa7d0'] = 'De Mondial Relay webdienst is momenteel niet betrouwbaar';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgettickets_dc41aac14af17f1d19fca5e3b9439e74'] = 'Deze sleutel';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgettickets_135a7b9a62531e066a95093d8951b344'] = 'heeft geen geldig formaat';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgettickets_c9b4de92f371ae545ad6f051c07d58ca'] = 'Er is een fout opgetreden:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgettickets_ea5f761be4e4888eabf4e1501d7817d1'] = 'Details:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgettickets_2653c23b8c0daac59571e4be5e8fa7d0'] = 'De Mondial Relay webdienst is momenteel niet betrouwbaar';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrmanagement_38b4abe2f5860f034e315f2da648a3d6'] = 'Mondial Relay de-installeren';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrmanagement_a4691c957e81a6f0b6f0ed44f8f2dfe8'] = 'U staat op het punt de module te de-installeren, wilt u de database verwijderen';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrmanagement_09c081633d484a62a2f6940c12a0de36'] = 'Behouden en de-installeren';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrmanagement_0b7f47fce1d82d53244771c64b1535c0'] = 'Verwijderen en de-installeren';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrmanagement_ea4788705e6873b424c65e91c2846b19'] = 'Annuleren';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrmanagement_a42bb0eaa485682166770a54469385f6'] = 'Sommige items kunnen niet worden verwijderd, probeer het opnieuw';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrmanagement_11744bfebb33e52be37a66a530b7045d'] = 'Kies ten minste één element in de historiek';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_14288d48d107056c1acf8aaae1bf282b'] = 'Het adres van de klant kan niet worden gevonden';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_dc41aac14af17f1d19fca5e3b9439e74'] = 'Deze sleutel';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_306b346c19017609403424203ea3d720'] = 'Is leeg en moet worden ingevoerd';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_c9b4de92f371ae545ad6f051c07d58ca'] = 'Er is een fout opgetreden:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_ea5f761be4e4888eabf4e1501d7817d1'] = 'Details:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_6f8522e0610541f1ef215a22ffa66ff6'] = 'Maandag';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_5792315f09a5d54fb7e3d066672b507f'] = 'Dinsdag';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_796c163589f295373e171842f37265d5'] = 'Woensdag';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_78ae6f0cd191d25147e252dc54768238'] = 'Donderdag';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_c33b138a163847cdb6caeeb7c9a126b4'] = 'Vrijdag';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_8b7051187b9191cdcdae6ed5a10e5adc'] = 'Zaterdag';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_9d1a0949c39e66a0cd65240bc0ac9177'] = 'Zondag';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_2653c23b8c0daac59571e4be5e8fa7d0'] = 'De Mondial Relay webdienst is momenteel niet betrouwbaar';
|
||||
$_MODULE['<{mondialrelay}prestashop>install-1.8.0_315a8895cf7c458597be5cf3c5b18d0b'] = 'Kan geen methodetabel aanmaken';
|
||||
$_MODULE['<{mondialrelay}prestashop>install-1.8.0_e364c3962f360330a5d8084c3ef5cacf'] = 'Kan de naam van de methodetabel niet wijzigen';
|
||||
$_MODULE['<{mondialrelay}prestashop>install-1.8.0_6384826d8bae08ec0ca4d1cd386a32c8'] = 'Kan de historiektabel geen andere naam geven';
|
||||
$_MODULE['<{mondialrelay}prestashop>install-1.8.0_4c74bd0afa2a8ecb894674c9cd942da5'] = 'Kan de tabel mr_method_shop niet updaten';
|
||||
$_MODULE['<{mondialrelay}prestashop>install-1.8.3_665cc27f3a529d80315dd49378a6c2bf'] = 'Kan geen nieuw veld toevoegen in de methodetabel';
|
||||
$_MODULE['<{mondialrelay}prestashop>install-2.0.6_665cc27f3a529d80315dd49378a6c2bf'] = 'Kan geen nieuw veld toevoegen in de methodetabel';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_0f27e5e9020f28e3f31b78376e11d4c7'] = 'Mondial Relay configuratie';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_8bc212f48680748479bbd322d4d73d3f'] = 'Accountdetails';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_ea9cf7e47ff33b2be14e6dd07cbcefc6'] = 'Verzending';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_fe4c6a5e7bd6793b37370e4e46daf998'] = 'Geavanceerde instellingen';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_326e057f57e830834c20d668e44627ef'] = 'Informatie';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_02d4482d332e1aef3437cd61c9bcc624'] = 'Neem contact met ons op';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_29141d2b5a484e8032ef64339733f0dc'] = 'Stel uw Mondial Relay accountinstellingen in';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_ed4dac9dada37651967d305576326e07'] = 'De Mondial relay klantendienst helpt u met vragen betreffende vrachtvervoer. Voor algemene vragen of inschrijvingen, neem contact met ons op via:';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_2f8531293ddfd4f30bb978e93d49f650'] = 'E-mail:';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_d0398e90769ea6ed2823a3857bcc19ea'] = 'Telefoon:';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_c276d381dccea7ac2d2e5060d52356c5'] = '09.69.322.332 (oproep zonder toeslag)';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_5b303c899b89c35d9d3e3d7f6ff4e8ed'] = 'Voor bijkomende informatie, raadpleeg de FAQ van onze website:';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_5a2355a42ba3ab265701183c914467f2'] = 'Probeer het cache(geheugen) uit te schakelen en schakel de force compilation-modus in';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_3de769f9a81eed916583d5b35c58dbdd'] = 'Als u problemen hebt met de module na een update';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_8f8b21bd013b38d1e3059557c22a57e7'] = 'Raadpleeg onderstaande METHODE voor het configureren van de Mondial Relay-module';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_d21a9f93917604d5490ad529a7cf1ff9'] = 'Het aanmaken van een Mondial Relay vervoerder';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_c6a2e6af5fff47adb3afd780b97d9b4b'] = 'Voer uw Mondial Relay accountinstellingen in en bewaar ze';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_4695eb112007792d94d42c8a3755169f'] = 'Een vervoerder-gebruiksknop aanmaken ';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_0dbbe632f1eaf7b912714a1aab4578c9'] = 'Een verzendingsmethode toevoegen aan de vervoerdersknop';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_b962d8fb95f5a439f50502152f3bad71'] = 'Bepaal een prijs voor uw vervoerder op';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_faf1247ae6846a9955a466d4f301bbe4'] = 'De vervoerderspagina';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_10d78806b84b97ebc774e9f6277af6ac'] = 'Om labels aan te maken, moet u beschikken over een geldig en geregistreerd adres voor uw winkel op uw';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_af5efea250326c1c34d69aa9364b482c'] = 'contactpagina';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_1ba3935c9858ffb8e19a35ca640b8505'] = 'Mondial Relay accountinstellingen';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_a125105400f6e4ee4574da3793af5ef2'] = 'Deze parameters worden verstrekt door Mondial Relay zodra u bent geabonneerd op hun dienst';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_12a3fbd35c1cab4b1101b91d708efd15'] = 'Handelsnaam van de webdienst:';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_6f0434b67007b555dfd1201f4e0d5254'] = 'Merkcode:';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_08f785193c96b2a78dec8d76a46648d6'] = 'Webdienst sleutel:';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_0dae2d7c71f2daaedb00191af25dc28d'] = 'Etiquettetaal:';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_a26329cba9723551cb8654deba32872b'] = 'Wegingscoëfficiënt:';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_99244b234ec089eca40ff9e8ec343e87'] = 'Gram = 1';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_61cbc2d26b4157292673c772ddd6c0f7'] = 'Update instellingen';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_c7ad75acafd2cdc04bc168e30e9314fd'] = 'Controleer de verbinding';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_70397c4b252a5168c5ec003931cea215'] = 'Vereiste velden';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_9ffc3ccc968a96d902af963c6d7b4e97'] = 'Geavanceerde instellingen';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_1ee1c44c2dc81681f961235604247b81'] = 'Modus:';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_6ed562a0d4381eef12d92c87520f3208'] = 'Widget';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_960b44c579bc2f6818d2daaf9e4c16f0'] = 'Normal';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_fcf5b2122da1d5a5f5c7253b96a3f9d9'] = 'URL crontaak:';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_6f9c467e60d98ac0bfa290ab83566ec0'] = 'Geavanceerde instellingen updaten';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_66661dacf33146201b60dc16520ddd68'] = 'Een verzendingsmethode toevoegen';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_531e144cc23ef08408b81cb4d9c641dc'] = 'Naam vervoerder';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_8f497c1a3d15af9e0c215019f26b887d'] = 'Vertraging';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_201bdb87f8e278b943d07ae924d5de6e'] = 'Leveringsmodus';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_142ef02888af88b8b772335277d1c0c8'] = 'Levering in een afhaalpunt';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_eeab8b7cf3c7a558a0e8a4050fa994ca'] = 'Levering met Colis Drive';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_8f7794b107749728c3333ef38d2687e8'] = 'Levering aan huis op benedenverdieping (1 persoon)';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_e451efc8ce05b96b214b4c2935f2c657'] = 'Speciale levering aan huis (2 personen)';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_09a00f755c3b3d63bf62e14172c1e9a1'] = 'Speciale levering aan huis';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_eaff1bdf24fcffe0e14e29a1bff51a12'] = 'Verzekering';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_96ba408f20bc3e065f400c650d32fd1a'] = 'Geen verzekering';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_e5a8fafb1dfb538c172e1e014e86b871'] = 'Aanvullende verzekering Lv1';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_b02f8d6d4b6217cca317161c87f64065'] = 'Aanvullende verzekering Lv2';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_90b95ae88150c6a34c4129dc4f1ebbd5'] = 'Aanvullende verzekering Lv3';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_c15b40b8c535191f6f0b6f9beaced3cf'] = 'Aanvullende verzekering Lv4';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_b67a442fff3ca0a03ea253b0668f946d'] = 'Aanvullende verzekering Lv5';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_33cbd0d8b6476501f55a8320481ec0f1'] = 'Leveringslanden:';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_aef71ba4fd060dea2e2c76d1b5076caf'] = 'U kunt meerdere landen selecteren door de Ctrl-toets in te drukken tijdens de selectie';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_0309a6c666a7a803fdb9db95de71cf01'] = 'Frankrijk';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_6c1674d14bf5f95742f572cddb0641a7'] = 'België';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_06630c890abadde9228ea818ce52b621'] = 'Luxemburg';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_907eba32d950bfab68227fd7ea22999b'] = 'Spanje';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_d8b00929dec65d422303256336ada04f'] = 'Duitsland';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_9891739094756d2605946c867b32ad28'] = 'Autriche';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_89f9c9f489be2a83cf57e53b9197d288'] = 'Oostenrijk';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_1007e1b7f894dfbf72a0eaa80f3bc57e'] = 'Verenigd Koninkrijk';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_ea71b362e3ea9969db085abfccdeb10d'] = 'Portugal';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_0c24ec05a02c710cedd400e3680d8b81'] = 'Lijst met verzendingsmethodes';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_14039af96b01e718a9c9d9c1259b6472'] = 'Geen verzendingsmethodes aangemaakt';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_59f7eec7440c6687288e747d4a7f40a0'] = 'ID_MR';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_9cd59510f1c2c821657486bc4c0f7584'] = 'Vervoerder-ID';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_914419aa32f04011357d3b604a86d7eb'] = 'Vervoerder';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_aa9cd1f8c658c08a9ff87208e3b7ba17'] = 'Leveringslanden';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_f2a6c498fb90ee345d997f888fce3b18'] = 'Verwijderen';
|
||||
$_MODULE['<{mondialrelay}prestashop>configuration_7dce122004969d56ae2e0245cb754d35'] = 'Bewerken';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_8d63728960e021f7632a11922685705e'] = 'Gelieve onderstaande fouten te corrigeren op';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_264f456c4202f0aba86e481a246a3ef1'] = 'de contactpagina:';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_7c5fd3d93bd19d81953db3b374997961'] = 'Kijk naar deze waarschuwing, misschien kan de bon niet worden aangemaakt';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_de21dc13e1ea638777fbfad49f88b332'] = 'Alle bestellingen met status';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_378116486b5a90bb50fd4f1557698d96'] = 'zijn beschikbaar voor het aanmaken van labels';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_5dadbd0ec9f0b182be4ead8dad39da79'] = 'Lijst met bestellingen';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_d79cf3f429596f77db95c65074663a54'] = 'Bestelling-ID';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_ce26601dac0dea138b7295f02b7620a7'] = 'Klant';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_0eede552438475bdfe820c13f24c9399'] = 'Totale prijs';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_c28e0582276cb6747e37d948e1727929'] = 'Totale verzendingskosten';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_44749712dbec183e983dcd78a7736c41'] = 'Datum';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_52150799c57e873360cca13c080a91b4'] = 'Voer gewicht (gram) in';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_353a5729c99abab9b3c8289317b7a0a4'] = 'Kies een verzekering';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_6ccc0fdff9995e1a0fce00c99e5b6085'] = 'MR-nummer';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_f9c50cba4de9032d7a6797a2458f8ed9'] = 'MR-land';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_428c091372d840900cf8536519fa0056'] = 'Expeditienummer';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_a254c25adc7d10d7e9c4889484f875a5'] = 'Detail';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_6d64e1c3efd87dde257ae83da23d7c05'] = 'Geen verzekering N0';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_23d246d67562088260e5629a39826a86'] = 'Aanvullende verzekering N1';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_ba98b5ad1ec30ae524c6332dcea740ee'] = 'Aanvullende verzekering N2';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_8b461a1d49779e5bb291b08b0bc7e21f'] = 'Aanvullende verzekering N3';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_31f29c5d469d45702b0559098359d27f'] = 'Aanvullende verzekering N4';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_5c509536a49ceed46f86b9efabde83ae'] = 'Aanvullende verzekering N5';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_4351cfebe4b61d8aa5efa1d020710005'] = 'Bekijken';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_2e01172e31495f41fcebcf3f831cc82c'] = 'Bewerking met succes uitgevoerd';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_37c85a61df6352af7285c307022c4413'] = 'Geen bestellingen met deze status.';
|
||||
$_MODULE['<{mondialrelay}prestashop>generate_tickets_32b919d18cfaca89383f6000dcc9c031'] = 'Aanmaken';
|
||||
$_MODULE['<{mondialrelay}prestashop>history_4f1a377c20ace646ddd303ad1e1d243d'] = 'Overzicht van label-aanmaak';
|
||||
$_MODULE['<{mondialrelay}prestashop>history_d79cf3f429596f77db95c65074663a54'] = 'Bestelling-ID';
|
||||
$_MODULE['<{mondialrelay}prestashop>history_e1a98101d56e29eeea312a0eb2748a92'] = 'Exp.num.';
|
||||
$_MODULE['<{mondialrelay}prestashop>history_aab39f783ba2e72eaad1770f4d9ad0c4'] = 'A4-label afdrukken';
|
||||
$_MODULE['<{mondialrelay}prestashop>history_3eb2bc1ee46258d2a166e89398756b3e'] = 'A5-label afdrukken';
|
||||
$_MODULE['<{mondialrelay}prestashop>history_beb01a974a6a87ef6eeaed92c4970405'] = '10x15-label afdrukken';
|
||||
$_MODULE['<{mondialrelay}prestashop>history_9e50665937cbb2f3c833d3626a9f9abb'] = 'Geen voormalige gegevens beschikbaar';
|
||||
$_MODULE['<{mondialrelay}prestashop>history_39a8c1a6d32fd2364eb3567967e4bd96'] = 'Geselecteerde A4-label afdrukken';
|
||||
$_MODULE['<{mondialrelay}prestashop>history_3d96962756b2dce870961e4658f8e8b5'] = 'Geselecteerde A5-label afdrukken';
|
||||
$_MODULE['<{mondialrelay}prestashop>history_e3743db648a23e969b0be5ef75639834'] = 'Geselecteerde 10x15-label afdrukken';
|
||||
$_MODULE['<{mondialrelay}prestashop>history_fa98e6528c9df7f26978c2beb7de3d99'] = 'De geselecteerde voormalige gegevens verwijderen';
|
||||
$_MODULE['<{mondialrelay}prestashop>post_action_466ec9f29b485204ef53818459da48af'] = 'Foutmelding(en)';
|
||||
$_MODULE['<{mondialrelay}prestashop>settings_0a4ee7474864081af12dba847fafdaa6'] = 'Instellingen tabblad Admin';
|
||||
$_MODULE['<{mondialrelay}prestashop>settings_d02bbc3cb147c272b0445ac5ca7d1a36'] = 'Bestelstatus';
|
||||
$_MODULE['<{mondialrelay}prestashop>settings_ca57625685f058f54d82c6e05876a131'] = 'Kies de bestelstatus voor labels.';
|
||||
$_MODULE['<{mondialrelay}prestashop>settings_c9cc8cce247e49bae79f15173ce97354'] = 'Opslaan';
|
||||
$_MODULE['<{mondialrelay}prestashop>settings_f4f70727dc34561dfde1a3c529b6205c'] = 'Instellingen';
|
||||
$_MODULE['<{mondialrelay}prestashop>checkout_process_836f6c949a2f2d61489bf410def82111'] = 'Mondia relay kan geen enkel afhaalpunt weergeven omwille van een fout in prestashop';
|
||||
$_MODULE['<{mondialrelay}prestashop>checkout_process_widget_ad3d06d03d94223fa652babc913de686'] = 'Bevestigen';
|
||||
$_MODULE['<{mondialrelay}prestashop>checkout_process_widget_b5cdf9b63fda35c33bb5e35cc3716b95'] = 'Geselecteerde afhaalpunt:';
|
||||
$_MODULE['<{mondialrelay}prestashop>header_e0626222614bdee31951d84c64e5e9ff'] = 'Selecteren';
|
||||
$_MODULE['<{mondialrelay}prestashop>header_91b442d385b54e1418d81adc34871053'] = 'Geselecteerd';
|
||||
$_MODULE['<{mondialrelay}prestashop>header_ef2a1f426c2c289ed5986c7636a5d696'] = 'Kies een afhaalpunt';
|
||||
$_MODULE['<{mondialrelay}prestashop>header_80a0c205cd57b22fca7f174253870300'] = 'Openingsuren';
|
||||
$_MODULE['<{mondialrelay}prestashop>header_2b56b60f878922093facd42284848a0c'] = 'Meer details';
|
||||
$_MODULE['<{mondialrelay}prestashop>header_widget_e0626222614bdee31951d84c64e5e9ff'] = 'Selecteren';
|
||||
$_MODULE['<{mondialrelay}prestashop>header_widget_91b442d385b54e1418d81adc34871053'] = 'Geselecteerd';
|
||||
$_MODULE['<{mondialrelay}prestashop>header_widget_ef2a1f426c2c289ed5986c7636a5d696'] = 'Kies een afhaalpunt';
|
||||
$_MODULE['<{mondialrelay}prestashop>header_widget_80a0c205cd57b22fca7f174253870300'] = 'Openingsuren';
|
||||
$_MODULE['<{mondialrelay}prestashop>header_widget_2b56b60f878922093facd42284848a0c'] = 'Meer details';
|
||||
$_MODULE['<{mondialrelay}prestashop>order_detail_a68825a6533d5eceea97b4426c7ceede'] = 'Levering in uw Point Relais®';
|
||||
$_MODULE['<{mondialrelay}prestashop>order_detail_c2d05abc7f5ebdc72b6656df35038b43'] = 'Mijn pakket volgen op de website van Mondial Relay';
|
346
modules/mondialrelay/selection.php
Executable file
@ -0,0 +1,346 @@
|
||||
<?php
|
||||
|
||||
require_once(dirname(__FILE__).'/../../config/config.inc.php');
|
||||
require_once(dirname(__FILE__).'/../../init.php');
|
||||
include_once(dirname(__FILE__).'/mondialrelay.php');
|
||||
|
||||
$controller->preProcess();
|
||||
$useSSL = TRUE;
|
||||
|
||||
$mrSelection = new MrSelection();
|
||||
$mrSelection->run();
|
||||
|
||||
class MrSelection {
|
||||
|
||||
private $mr_module = false;
|
||||
private $id_lang = 2;
|
||||
|
||||
public function run(){
|
||||
global $smarty;
|
||||
|
||||
$this->displayHeader();
|
||||
$this->process();
|
||||
$this->displayFooter();
|
||||
}
|
||||
|
||||
public function displayHeader(){
|
||||
Tools::addCSS(_THEME_CSS_DIR_.'addresses.css');
|
||||
Tools::addCSS(_PS_CSS_DIR_.'jquery.fancybox-1.3.4.css', 'screen');
|
||||
|
||||
// Adding JS files
|
||||
Tools::addJS(_THEME_JS_DIR_.'tools.js');
|
||||
Tools::addJS(_PS_JS_DIR_.'jquery/jquery.fancybox-1.3.4.js');
|
||||
if ((int)(Configuration::get('PS_BLOCK_CART_AJAX')) OR Configuration::get('PS_ORDER_PROCESS_TYPE') == 1)
|
||||
{
|
||||
Tools::addJS(_THEME_JS_DIR_.'cart-summary.js');
|
||||
Tools::addJS(_PS_JS_DIR_.'jquery/jquery-typewatch.pack.js');
|
||||
}
|
||||
|
||||
$_POST['controller'] = 'order';
|
||||
$_POST['step'] = 2;
|
||||
|
||||
include(dirname(__FILE__).'/../../header.php');
|
||||
}
|
||||
|
||||
public function displayHeaderMobile(){
|
||||
}
|
||||
|
||||
public function hookExtraCarrier($address, $cart){
|
||||
global $smarty;
|
||||
if (!MondialRelay::isAccountSet())
|
||||
return '';
|
||||
|
||||
$preSelectedRelay = $this->mr_module->getRelayPointSelected($cart->id);
|
||||
$account_shop = MondialRelay::getAccountDetail();
|
||||
$id_carrier = (int) $cart->id_carrier;
|
||||
$carriersList = $this->_getCarriers((int) $cart->id_carrier);
|
||||
$country = new Country($address->id_country);
|
||||
$id_zone = Address::getZoneById((int)($address->id));
|
||||
|
||||
/* Check if the defined carrier are ok */
|
||||
foreach ($carriersList as $k => $row)
|
||||
{
|
||||
/* For now works only with single shipping (>= 1.5 compatibility) */
|
||||
if (method_exists($cart, 'carrierIsSelected'))
|
||||
{
|
||||
if ($cart->carrierIsSelected($row['id_carrier'], $params['address']->id))
|
||||
$id_carrier = $row['id_carrier'];
|
||||
}
|
||||
|
||||
/* Temporary carrier for some test */
|
||||
$carrier = new Carrier((int)($row['id_carrier']));
|
||||
if ((($carrier->getShippingMethod() == Carrier::SHIPPING_METHOD_WEIGHT) && $carrier->getMaxDeliveryPriceByWeight($id_zone) === false) || (($carrier->getShippingMethod() == Carrier::SHIPPING_METHOD_PRICE) && $carrier->getMaxDeliveryPriceByPrice($id_zone) === false))
|
||||
unset($carriersList[$k]);
|
||||
else if ($row['range_behavior'])
|
||||
{
|
||||
/* Get id zone */
|
||||
$id_zone = Address::getZoneById((int) $address->id);
|
||||
|
||||
if (($carrier->getShippingMethod() == Carrier::SHIPPING_METHOD_WEIGHT && (!Carrier::checkDeliveryPriceByWeight($row['id_carrier'], $cart->getTotalWeight(), $id_zone))) ||
|
||||
($carrier->getShippingMethod() == Carrier::SHIPPING_METHOD_PRICE &&
|
||||
(!Carrier::checkDeliveryPriceByPrice($row['id_carrier'], $cart->getOrderTotal(true, MondialRelay::BOTH_WITHOUT_SHIPPING), $id_zone, $cart->id_currency) ||
|
||||
!Carrier::checkDeliveryPriceByPrice($row['id_carrier'], $cart->getOrderTotal(true, MondialRelay::BOTH_WITHOUT_SHIPPING), $id_zone, $cart->id_currency))))
|
||||
unset($carriersList[$k]);
|
||||
}
|
||||
}
|
||||
|
||||
$carrier = null;
|
||||
if ($id_carrier && ($method = MondialRelay::getMethodByIdCarrier($id_carrier)))
|
||||
{
|
||||
$carrier = new Carrier((int)$id_carrier);
|
||||
/* Add dynamically a new field */
|
||||
$carrier->id_mr_method = $method['id_mr_method'];
|
||||
$carrier->mr_dlv_mode = $method['dlv_mode'];
|
||||
}
|
||||
|
||||
if (Configuration::get('PS_SSL_ENABLED') || (!empty($_SERVER['HTTPS']) && Tools::strtolower($_SERVER['HTTPS']) != 'off'))
|
||||
$ssl = 'true';
|
||||
else $ssl = 'false';
|
||||
|
||||
$smarty->assign(array(
|
||||
'id_cart' => (int) $cart->id,
|
||||
'address' => $address,
|
||||
'weight' => (float) $cart->getTotalWeight(),
|
||||
'id_address_delivery' => (int) $address->id,
|
||||
'account_shop' => $account_shop,
|
||||
'country' => $country,
|
||||
'ssl' => $ssl,
|
||||
'MR_Data'=> MRTools::jsonEncode(array(
|
||||
'carrier_list' => $carriersList,
|
||||
'carrier' => $carrier,
|
||||
'PS_VERSION' => _PS_VERSION_,
|
||||
'pre_selected_relay' => isset($preSelectedRelay['MR_selected_num']) ? $preSelectedRelay['MR_selected_num'] : -1,
|
||||
))
|
||||
));
|
||||
|
||||
if (Configuration::get('MONDIAL_RELAY_MODE') == 'widget' && !_PS_MOBILE_)
|
||||
return $this->mr_module->fetchTemplate('/views/templates/front/', 'selection_process_widget');
|
||||
else
|
||||
return $this->mr_module->fetchTemplate('/views/templates/front/', 'selection_process');
|
||||
}
|
||||
|
||||
|
||||
public function process(){
|
||||
global $cookie, $smarty;
|
||||
$errors = array();
|
||||
|
||||
if (!$cookie->isLogged())
|
||||
Tools::redirect('authentication.php?back=/modules/mondialrelay/selection.php?id_order=' . Tools::getValue('id_order') . '&key=' . Tools::getValue('key'));
|
||||
if (!Tools::getValue('id_order') || !Tools::getValue('key')){
|
||||
$smarty->assign(array('error' => 'Paramètres invalides.'));
|
||||
return $this->display();
|
||||
}
|
||||
|
||||
$order = new Order((int) Tools::getValue('id_order'));
|
||||
if (!Validate::isLoadedObject($order) || $order->secure_key != Tools::getValue('key')){
|
||||
$smarty->assign(array('error' => 'Paramètres invalides.'));
|
||||
return $this->display();
|
||||
}
|
||||
|
||||
$mr_carriers = array();
|
||||
foreach (Db::getInstance()->executeS('
|
||||
SELECT c.id_carrier
|
||||
FROM `'._DB_PREFIX_.'mr_method` m
|
||||
LEFT JOIN `'._DB_PREFIX_.'carrier` c
|
||||
ON c.`id_carrier` = m.`id_carrier`
|
||||
') as $row) {
|
||||
$mr_carriers[] = (int) $row['id_carrier'];
|
||||
}
|
||||
|
||||
if (!in_array($order->id_carrier, $mr_carriers)){
|
||||
return $this->displayError('Un mode de livraison autre que Mondial Relay a été choisi pour cette commande.');
|
||||
}
|
||||
|
||||
$this->id_lang = (int) $order->id_lang;
|
||||
|
||||
$customer = new Customer((int) $order->id_customer);
|
||||
if ((int) $customer->id != (int) $cookie->id_customer){
|
||||
$smarty->assign(array('error' => 'Merci de vous connecter avec le compte ayant passé cette commande afin de choisir votre point relais.'));
|
||||
return $this->display();
|
||||
}
|
||||
|
||||
$cart = new Cart((int) $order->id_cart);
|
||||
|
||||
$this->mr_module = new MondialRelay();
|
||||
$address = new Address((int) $order->id_address_delivery);
|
||||
$extraCarrier = $this->hookExtraCarrier($address, $cart);
|
||||
|
||||
$groups = $customer->getGroups();
|
||||
$id_zone = Address::getZoneById((int)($address->id));
|
||||
|
||||
$carriers = array();
|
||||
$_carriers = $this->getCarriersForOrder($order->id_carrier, $cart);
|
||||
foreach ($_carriers as $carrier) {
|
||||
if(stristr($carrier['name'], 'Mondial Relay') !== FALSE){
|
||||
$carriers[] = $carrier;
|
||||
}
|
||||
}
|
||||
|
||||
if (Tools::isSubmit('submit_mr_selection')){
|
||||
// update mr_selected
|
||||
// $this->addMrSelected();
|
||||
if (!Db::getInstance()->getValue('SELECT `MR_Selected_Num` FROM `' . _DB_PREFIX_ . 'mr_selected` WHERE `id_cart` = ' . (int) $cart->id)){
|
||||
$smarty->assign(array(
|
||||
'error' => 'Vous devez sélectionner un point relais dans la liste.',
|
||||
'display_conf' => false,
|
||||
));
|
||||
}
|
||||
else{
|
||||
$smarty->assign(array(
|
||||
'display_conf' => true,
|
||||
));
|
||||
return $this->display();
|
||||
}
|
||||
}
|
||||
|
||||
$smarty->assign(array(
|
||||
'mobile' => _PS_MOBILE_,
|
||||
'display_form' => true,
|
||||
'carriers' => $carriers,
|
||||
'id_order' => (int) Tools::getValue('id_order'),
|
||||
'key' => Tools::getValue('key'),
|
||||
'weight' => (float) $cart->getTotalWeight(),
|
||||
'id_address_delivery' => (int) $address->id,
|
||||
'id_cart' => (int) $order->id_cart,
|
||||
'extraCarrier' => $extraCarrier
|
||||
));
|
||||
return $this->display();
|
||||
}
|
||||
|
||||
public function displayError($error){
|
||||
global $smarty;
|
||||
$smarty->assign(array('error' => $error));
|
||||
return $this->display();
|
||||
}
|
||||
|
||||
public function display(){
|
||||
echo Module::display(dirname(__FILE__).'/mondialrelay.php', 'selection.tpl');
|
||||
}
|
||||
|
||||
public function displayFooter(){
|
||||
include(dirname(__FILE__).'/../../footer.php');
|
||||
}
|
||||
|
||||
public function addMrSelected(){
|
||||
return true;
|
||||
$db = Db::getInstance();
|
||||
// insutance
|
||||
$sql = 'SELECT insurance FROM '._DB_PREFIX_.'mr_method WHERE id_mr_method = '.(int)$this->_params['id_mr_method'];
|
||||
$insurance = $db->getValue($sql);
|
||||
|
||||
$query = 'SELECT `id_mr_selected` FROM `'._DB_PREFIX_.'mr_selected` WHERE `id_cart` = '.(int)$this->_params['id_cart'].' ';
|
||||
|
||||
// Not exist and needed for database
|
||||
unset($this->_params['relayPointInfo']['permaLinkDetail']);
|
||||
|
||||
// Update if Exist else add a new entry
|
||||
if ($db->getRow($query))
|
||||
{
|
||||
$query = 'UPDATE `'._DB_PREFIX_.'mr_selected`
|
||||
SET `id_method` = '.(int)$this->_params['id_mr_method'].',
|
||||
`MR_insurance` = '.(int)$insurance.',';
|
||||
if (is_array($this->_params['relayPointInfo']))
|
||||
foreach ($this->_params['relayPointInfo'] as $nameKey => $value)
|
||||
$query .= '`MR_Selected_'.MRTools::bqSQL($nameKey).'` = "'.pSQL($value).'", ';
|
||||
else // Clean the existing relay point data
|
||||
$query .= '
|
||||
MR_Selected_Num = NULL,
|
||||
MR_Selected_LgAdr1 = NULL,
|
||||
MR_Selected_LgAdr2 = NULL,
|
||||
MR_Selected_LgAdr3 = NULL,
|
||||
MR_Selected_LgAdr4 = NULL,
|
||||
MR_Selected_CP = NULL,
|
||||
MR_Selected_Pays = NULL,
|
||||
MR_Selected_Ville = NULL, ';
|
||||
$query = rtrim($query, ', ').' WHERE `id_cart` = '.(int)$this->_params['id_cart'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$query = 'INSERT INTO `'._DB_PREFIX_.'mr_selected`
|
||||
(`id_customer`, `id_method`, `id_cart`, MR_insurance, ';
|
||||
if (is_array($this->_params['relayPointInfo']))
|
||||
foreach ($this->_params['relayPointInfo'] as $nameKey => $value)
|
||||
$query .= '`MR_Selected_'.MRTools::bqSQL($nameKey).'`, ';
|
||||
$query = rtrim($query, ', ').') VALUES (
|
||||
'.(int)$this->_params['id_customer'].',
|
||||
'.(int)$this->_params['id_mr_method'].',
|
||||
'.(int)$this->_params['id_cart'].',
|
||||
'.(int)$insurance.', ';
|
||||
|
||||
if (is_array($this->_params['relayPointInfo']))
|
||||
foreach ($this->_params['relayPointInfo'] as $nameKey => $value)
|
||||
$query .= '"'.pSQL($value).'", ';
|
||||
$query = rtrim($query, ', ').')';
|
||||
}
|
||||
$db->execute($query);
|
||||
}
|
||||
|
||||
public function _getCarriers($id_carrier){
|
||||
/* Query don't use the external_module_name to keep the */
|
||||
/* 1.3 compatibility */
|
||||
$query = '
|
||||
SELECT c.id_carrier, c.range_behavior, m.id_mr_method,
|
||||
m.dlv_mode, cl.delay
|
||||
FROM `'._DB_PREFIX_.'mr_method` m
|
||||
LEFT JOIN `'._DB_PREFIX_.'carrier` c
|
||||
ON c.`id_carrier` = m.`id_carrier`
|
||||
LEFT JOIN `'._DB_PREFIX_.'carrier_lang` cl
|
||||
ON c.`id_carrier` = cl.`id_carrier`
|
||||
LEFT JOIN `'._DB_PREFIX_.'mr_method_shop` ms
|
||||
ON m.`id_mr_method` = ms.`id_mr_method`
|
||||
WHERE c.`id_carrier` = ' . (int) $id_carrier . '
|
||||
AND ms.`id_shop` = 1
|
||||
AND cl.id_lang = '.$this->id_lang.'
|
||||
-- AND c.`active` = 1
|
||||
-- AND m.`is_deleted` = 0';
|
||||
|
||||
$carriers = Db::getInstance()->executeS($query);
|
||||
|
||||
if (!is_array($carriers))
|
||||
$carriers = array();
|
||||
return $carriers;
|
||||
}
|
||||
|
||||
public function getCarriersForOrder($id_carrier, $cart)
|
||||
{
|
||||
$sql = '
|
||||
SELECT c.*, cl.delay
|
||||
FROM `'._DB_PREFIX_.'carrier` c
|
||||
LEFT JOIN `'._DB_PREFIX_.'carrier_lang` cl ON (c.`id_carrier` = cl.`id_carrier` AND cl.`id_lang` = '.(int)($id_lang).')
|
||||
WHERE c.`id_carrier` = ' . $id_carrier;
|
||||
|
||||
$result = Db::getInstance()->ExecuteS($sql);
|
||||
|
||||
if (is_array($result) AND count($result))
|
||||
{
|
||||
foreach ($result as $key => $carrier)
|
||||
if ($carrier['name'] == '0')
|
||||
$result[$key]['name'] = Configuration::get('PS_SHOP_NAME');
|
||||
}
|
||||
else
|
||||
$result = array();
|
||||
|
||||
$resultsArray = array();
|
||||
|
||||
foreach ($result AS $k => $row)
|
||||
{
|
||||
$carrier = new Carrier((int)$row['id_carrier']);
|
||||
$shippingMethod = $carrier->getShippingMethod();
|
||||
|
||||
$row['name'] = (strval($row['name']) != '0' ? $row['name'] : Configuration::get('PS_SHOP_NAME'));
|
||||
$row['price'] = ($shippingMethod == Carrier::SHIPPING_METHOD_FREE ? 0 : $cart->getOrderShippingCost((int)$row['id_carrier']));
|
||||
$row['price_tax_exc'] = ($shippingMethod == Carrier::SHIPPING_METHOD_FREE ? 0 : $cart->getOrderShippingCost((int)$row['id_carrier'], false));
|
||||
$row['img'] = file_exists(_PS_SHIP_IMG_DIR_.(int)($row['id_carrier']).'.jpg') ? _THEME_SHIP_DIR_.(int)($row['id_carrier']).'.jpg' : '';
|
||||
|
||||
// If price is false, then the carrier is unavailable (carrier module)
|
||||
if ($row['price'] === false)
|
||||
{
|
||||
unset($result[$k]);
|
||||
continue;
|
||||
}
|
||||
|
||||
$resultsArray[] = $row;
|
||||
}
|
||||
return $resultsArray;
|
||||
}
|
||||
}
|
175
modules/mondialrelay/selection.tpl
Executable file
@ -0,0 +1,175 @@
|
||||
{capture name=path}{l s='Sélection de votre point retrait' mod='mondialrelay'}{/capture}
|
||||
{include file="$tpl_dir./breadcrumb.tpl"}
|
||||
|
||||
<style>
|
||||
.title_block{
|
||||
background: url('../../themes/site/img/gradient.png') repeat-x bottom left;
|
||||
margin-top: 22px; }
|
||||
.title_block h1{
|
||||
margin: 0px;
|
||||
font-family: Georgia, Times, "Times New Roman", serif;
|
||||
font-style: italic;
|
||||
font-size: 22px;
|
||||
color: #000;
|
||||
font-weight: normal;
|
||||
padding: 20px;
|
||||
text-shadow: 2px 2px 0px #ffffff; }
|
||||
.mr_selection_content{
|
||||
padding: 20px; }
|
||||
.submit_button{
|
||||
margin-top: 20px;
|
||||
cursor: pointer;
|
||||
padding: 0;
|
||||
background: #f96608;
|
||||
background: -moz-linear-gradient( top, #FF7900 0%, #F5580F 100% );
|
||||
background: -webkit-gradient( linear, top left, bottom left, color-stop(0, #ff7900), color-stop(1, #f5580f) );
|
||||
background: -webkit-linear-gradient( top, #ff7900 0%, #f5580f 100% );
|
||||
background: -o-linear-gradient( top, #ff7900 0%, #f5580f 100% );
|
||||
background: -ms-linear-gradient( top, #ff7900 0%, #f5580f 100% );
|
||||
background: linear-gradient( top, #ff7900 0%, #f5580f 100% );
|
||||
filter: progid:DXImageTransform.Microsoft.Gradient( StartColorStr='#ff7900', EndColorStr='#f5580f', GradientType=0 );
|
||||
display: inline-block;
|
||||
width: auto;
|
||||
float: right; }
|
||||
input.exclusive{
|
||||
background: url('../../themes/site/img/arrow-submit.png') no-repeat left 50%;
|
||||
width: 100%;
|
||||
height: 42px;
|
||||
text-shadow: 0px -1px 0px #6E6E6E;
|
||||
padding: 8px 15px 8px 55px;
|
||||
text-decoration: none;
|
||||
color: #ffffff !important;
|
||||
font-size: 12px;
|
||||
border: none;
|
||||
/* border: 1px solid #FE6601; */
|
||||
}
|
||||
</style>
|
||||
<div class="title_block">
|
||||
<h1>{l s='Sélection de votre point retrait' mod='mondialrelay'}</h1>
|
||||
</div>
|
||||
<div class="mr_selection_content">
|
||||
{if isset($error) && $error}
|
||||
<div class="error">
|
||||
<p>{l s='Il y a une erreur :' mod='mondialrelay'}</p>
|
||||
<ul class="error warning">
|
||||
<li>{$error}</li>
|
||||
</ul>
|
||||
</p>
|
||||
{/if}
|
||||
|
||||
{if isset($display_conf) && $display_conf}
|
||||
<p>{l s='Votre point relais a bien été enregistré.' mod='mondialrelay'}</p>
|
||||
{/if}
|
||||
|
||||
{if isset($display_form) && $display_form}
|
||||
<form action="{$base_dir}modules/mondialrelay/selection.php" method="POST">
|
||||
<input type="hidden" name="id_order" value="{$id_order}" />
|
||||
<input type="hidden" name="key" value="{$key}" />
|
||||
|
||||
|
||||
{if isset($mobile) && $mobile}
|
||||
|
||||
|
||||
<table id="carrierTable" class="std" {if !isset($carriers) || !$carriers || !count($carriers)}style="display:none;"{/if}>
|
||||
<tbody>
|
||||
{if isset($carriers)}
|
||||
{foreach from=$carriers item=carrier name=myLoop}
|
||||
<tr class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{/if} {if $smarty.foreach.myLoop.index % 2}alternate_item{else}item{/if}">
|
||||
<td class="carrier_action radio">
|
||||
<input type="radio" name="id_carrier" value="{$carrier.id_carrier|intval}" id="id_carrier{$carrier.id_carrier|intval}" {if $opc}onclick="updateCarrierSelectionAndGift();"{/if} {if !($carrier.is_module AND $opc AND !$isLogged)}{if $carrier.id_carrier == $checked}checked="checked"{/if}{else}disabled="disabled"{/if} />
|
||||
</td>
|
||||
<td class="carrier_name">
|
||||
<label for="id_carrier{$carrier.id_carrier|intval}">
|
||||
{if $carrier.img}<img src="{$carrier.img|escape:'htmlall':'UTF-8'}" alt="{$carrier.name|escape:'htmlall':'UTF-8'}" />{else}{$carrier.name|escape:'htmlall':'UTF-8'}{/if}
|
||||
</label>
|
||||
</td>
|
||||
<td class="carrier_infos">
|
||||
{$carrier.delay|escape:'htmlall':'UTF-8'}
|
||||
<span class="price">
|
||||
{if $carrier.price}
|
||||
{if $priceDisplay == 1}
|
||||
{convertPrice price=$carrier.price_tax_exc}
|
||||
{else}
|
||||
{convertPrice price=$carrier.price}
|
||||
{/if}
|
||||
{if $use_taxes}
|
||||
<span class="taxes">
|
||||
{if $priceDisplay == 1}
|
||||
{l s='HT'}
|
||||
{else}
|
||||
{l s='TTC'}
|
||||
{/if}
|
||||
</span>
|
||||
{/if}
|
||||
{else}
|
||||
{l s='Gratuit !'}
|
||||
{/if}
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
<tr id="HOOK_EXTRACARRIER">{$extraCarrier}</tr>
|
||||
{/if}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
|
||||
{else}
|
||||
|
||||
|
||||
|
||||
<table id="carrierTable" class="std" {if !isset($carriers) || !$carriers || !count($carriers)}style="display:none;"{/if}>
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="carrier_action first_item"></th>
|
||||
<th class="carrier_name item">{l s='Transporteur'}</th>
|
||||
<th class="carrier_infos item">{l s='Information'}</th>
|
||||
<th class="carrier_price last_item">{l s='Prix'}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{if isset($carriers)}
|
||||
{foreach from=$carriers item=carrier name=myLoop}
|
||||
<tr class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{/if} {if $smarty.foreach.myLoop.index % 2}alternate_item{else}item{/if}">
|
||||
<td class="carrier_action radio">
|
||||
<input type="radio" name="id_carrier" value="{$carrier.id_carrier|intval}" id="id_carrier{$carrier.id_carrier|intval}" {if $opc}onclick="updateCarrierSelectionAndGift();"{/if} {if !($carrier.is_module AND $opc AND !$isLogged)}{if $carrier.id_carrier == $checked}checked="checked"{/if}{else}disabled="disabled"{/if} />
|
||||
</td>
|
||||
<td class="carrier_name">
|
||||
<label for="id_carrier{$carrier.id_carrier|intval}">
|
||||
{if $carrier.img}<img src="{$carrier.img|escape:'htmlall':'UTF-8'}" alt="{$carrier.name|escape:'htmlall':'UTF-8'}" />{else}{$carrier.name|escape:'htmlall':'UTF-8'}{/if}
|
||||
</label>
|
||||
</td>
|
||||
<td class="carrier_infos">{$carrier.delay|escape:'htmlall':'UTF-8'}</td>
|
||||
<td class="carrier_price">
|
||||
{if $carrier.price}
|
||||
<span class="price">
|
||||
{if $priceDisplay == 1}{convertPrice price=$carrier.price_tax_exc}{else}{convertPrice price=$carrier.price}{/if}
|
||||
</span>
|
||||
{if $use_taxes}{if $priceDisplay == 1} {l s='HT'}{else} {l s='TTC'}{/if}{/if}
|
||||
{else}
|
||||
{l s='Gratuit!'}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
<tr id="HOOK_EXTRACARRIER">{$extraCarrier}</tr>
|
||||
{/if}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
{/if}
|
||||
|
||||
|
||||
|
||||
<p style="margin: 20px 0 10px;">{l s='Veuillez sélectionner votre transporteur puis sélectionner votre point retrait parmi la liste.'}</p>
|
||||
<p class="submit">
|
||||
<span class="submit_button">
|
||||
<input type="submit" class="exclusive" name="submit_mr_selection" value="{l s='Valider ma sélection'}"/>
|
||||
</span>
|
||||
</p>
|
||||
</form>
|
||||
{/if}
|
||||
</div>
|
36
modules/mondialrelay/sql/index.php
Executable file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2015 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-2015 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;
|
36
modules/mondialrelay/upgrade/index.php
Executable file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2015 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-2015 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;
|
130
modules/mondialrelay/upgrade/install-1.8.0.php
Executable file
@ -0,0 +1,130 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2015 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-2015 PrestaShop SA
|
||||
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
/* File Example for upgrade */
|
||||
|
||||
if (!defined('_PS_VERSION_'))
|
||||
exit;
|
||||
|
||||
/* object module ($this) available */
|
||||
function upgrade_module_1_8_0($object)
|
||||
{
|
||||
$upgrade_version = '1.8.0';
|
||||
|
||||
$object->upgrade_detail[$upgrade_version] = array();
|
||||
|
||||
/* Add new table to handle multi-shop for a carrier */
|
||||
$query = '
|
||||
CREATE TABLE IF NOT EXISTS `'._DB_PREFIX_.'mr_method_shop` (
|
||||
`id_mr_method_shop` int(10) unsigned NOT NULL auto_increment,
|
||||
`id_mr_method` int(10) unsigned NOT NULL,
|
||||
`id_shop` int(10) unsigned NOT NULL,
|
||||
PRIMARY KEY (`id_mr_method_shop`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;';
|
||||
|
||||
if (!Db::getInstance()->execute($query))
|
||||
$object->upgrade_detail[$upgrade_version][] = $object->l('Can\'t create method shop table');
|
||||
|
||||
/* Refacto name */
|
||||
$query = '
|
||||
ALTER TABLE `'._DB_PREFIX_.'mr_method` CHANGE `id_mr_method` `id_mr_method` INT( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT ,
|
||||
CHANGE `mr_Name` `name` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL ,
|
||||
CHANGE `mr_Pays_list` `country_list` VARCHAR( 1000 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL ,
|
||||
CHANGE `mr_ModeCol` `col_mode` VARCHAR( 3 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL ,
|
||||
CHANGE `mr_ModeLiv` `dlv_mode` VARCHAR( 3 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL ,
|
||||
CHANGE `mr_ModeAss` `insurance` VARCHAR( 3 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT \'0\',
|
||||
CHANGE `id_carrier` `id_carrier` INT( 10 ) NOT NULL';
|
||||
|
||||
if (!Db::getInstance()->execute($query))
|
||||
$object->upgrade_detail[$upgrade_version][] = $object->l('Can\'t change name of the method table');
|
||||
|
||||
$query = 'RENAME TABLE `'._DB_PREFIX_.'mr_historique` TO `'._DB_PREFIX_.'mr_history`';
|
||||
|
||||
if (!Db::getInstance()->execute($query))
|
||||
$object->upgrade_detail[$upgrade_version][] = $object->l('Can\'t rename the history table');
|
||||
|
||||
$object->account_shop['MR_ENSEIGNE_WEBSERVICE'] = Configuration::get('MR_ENSEIGNE_WEBSERVICE');
|
||||
$object->account_shop['MR_CODE_MARQUE'] = Configuration::get('MR_CODE_MARQUE');
|
||||
$object->account_shop['MR_KEY_WEBSERVICE'] = Configuration::get('MR_KEY_WEBSERVICE');
|
||||
$object->account_shop['MR_LANGUAGE'] = Configuration::get('MR_LANGUAGE');
|
||||
$object->account_shop['MR_WEIGHT_COEFFICIENT'] = Configuration::get('MR_WEIGHT_COEF');
|
||||
$object->account_shop['MR_ORDER_STATE'] = Configuration::get('MONDIAL_RELAY_ORDER_STATE');
|
||||
$object->updateAccountShop();
|
||||
|
||||
Configuration::deleteByName('MONDIAL_RELAY_INSTALL_UPDATE');
|
||||
Configuration::deleteByName('MONDIAL_RELAY_ORDER_STATE');
|
||||
Configuration::deleteByName('MR_ENSEIGNE_WEBSERVICE');
|
||||
Configuration::deleteByName('MR_CODE_MARQUE');
|
||||
Configuration::deleteByName('MR_KEY_WEBSERVICE');
|
||||
Configuration::deleteByName('MR_WEIGHT_COEF');
|
||||
Configuration::deleteByName('MR_LANGUAGE');
|
||||
Configuration::deleteByName('MONDIAL_RELAY_1_4');
|
||||
Configuration::deleteByName('MONDIAL_RELAY_INSTALL_UPDATE_1');
|
||||
|
||||
Configuration::updateValue('MONDIAL_RELAY', $upgrade_version);
|
||||
|
||||
$methods = Db::getInstance()->executeS('SELECT * FROM `'._DB_PREFIX_.'mr_method`');
|
||||
if (count($methods))
|
||||
{
|
||||
$query = '
|
||||
INSERT INTO `'._DB_PREFIX_.'mr_method_shop`
|
||||
(id_mr_method, id_shop) VALUES ';
|
||||
|
||||
foreach ($methods as $method)
|
||||
$query .= '('.(int)$method['id_mr_method'].', '.(int)$object->account_shop['id_shop'].'),';
|
||||
$query = trim($query, ',');
|
||||
if (!Db::getInstance()->execute($query))
|
||||
$object->upgrade_detail[$upgrade_version][] = $object->l('Can\'t update table mr_method_shop');
|
||||
|
||||
}
|
||||
|
||||
if (!empty($object->installed_version))
|
||||
{
|
||||
if ($object->installed_version < '1.4')
|
||||
Db::getInstance()->execute('
|
||||
UPDATE `'._DB_PREFIX_.'carrier`
|
||||
SET
|
||||
`shipping_external` = 0,
|
||||
`need_range` = 1,
|
||||
`external_module_name` = "mondialrelay",
|
||||
`shipping_method` = 1
|
||||
WHERE `id_carrier`
|
||||
IN (SELECT `id_carrier`
|
||||
FROM `'._DB_PREFIX_.'mr_method`)');
|
||||
}
|
||||
|
||||
/* Try to register the new hook since 1.7 */
|
||||
if (!$object->isRegisteredInHook('newOrder'))
|
||||
$object->registerHook('newOrder');
|
||||
if (!$object->isRegisteredInHook('BackOfficeHeader'))
|
||||
$object->registerHook('BackOfficeHeader');
|
||||
|
||||
if (!$object->isRegisteredInHook('header'))
|
||||
$object->registerHook('header');
|
||||
|
||||
return (bool)count($object->upgrade_detail[$upgrade_version]);
|
||||
}
|
45
modules/mondialrelay/upgrade/install-1.8.3.php
Executable file
@ -0,0 +1,45 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2015 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-2015 PrestaShop SA
|
||||
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
if (!defined('_PS_VERSION_'))
|
||||
exit;
|
||||
|
||||
/**
|
||||
* object module available
|
||||
*/
|
||||
function upgrade_module_1_8_3($object)
|
||||
{
|
||||
$upgrade_version = '1.8.3';
|
||||
|
||||
$object->upgrade_detail[$upgrade_version] = array();
|
||||
|
||||
if (!Db::getInstance()->execute('ALTER TABLE `'._DB_PREFIX_.'mr_method` ADD `is_deleted` INT NOT NULL'))
|
||||
$object->upgrade_detail[$upgrade_version][] = $object->l('Can\'t add new field in methodtable');
|
||||
|
||||
Configuration::updateValue('MONDIAL_RELAY', $upgrade_version);
|
||||
return (bool)count($object->upgrade_detail[$upgrade_version]);
|
||||
}
|
48
modules/mondialrelay/upgrade/install-2.0.6.php
Executable file
@ -0,0 +1,48 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2015 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-2015 PrestaShop SA
|
||||
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
if (!defined('_PS_VERSION_'))
|
||||
exit;
|
||||
|
||||
/**
|
||||
* object module available
|
||||
*/
|
||||
function upgrade_module_2_0_6($object)
|
||||
{
|
||||
$upgrade_version = '2.0.6';
|
||||
|
||||
$object->upgrade_detail[$upgrade_version] = array();
|
||||
|
||||
try {
|
||||
if (!Db::getInstance()->execute('ALTER TABLE `'._DB_PREFIX_.'mr_selected` ADD `MR_insurance` INT( 11 ) NOT NULL AFTER `MR_poids`'))
|
||||
$object->upgrade_detail[$upgrade_version][] = $object->l('Can\'t add new field in methodtable');
|
||||
}
|
||||
catch (Exception $e) { }
|
||||
|
||||
Configuration::updateValue('MONDIAL_RELAY', $upgrade_version);
|
||||
return (bool)count($object->upgrade_detail[$upgrade_version]);
|
||||
}
|
36
modules/mondialrelay/views/index.php
Executable file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2015 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-2015 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;
|
35
modules/mondialrelay/views/templates/admin/bo-header.tpl
Executable file
@ -0,0 +1,35 @@
|
||||
{*
|
||||
* 2007-2015 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-2015 PrestaShop SA
|
||||
* @version Release: $Revision: 10285 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
<link href="{$new_base_dir|escape:'htmlall':'UTF-8'}css/style.css" rel="stylesheet" type="text/css" media="all" />
|
||||
|
||||
<script type="text/javascript">
|
||||
var PS_MR_ACCOUNT_SET = {if $MR_account_set}true{else}false{/if};
|
||||
var _PS_MR_MODULE_DIR_ = "{$new_base_dir|escape:'htmlall':'UTF-8'}";
|
||||
var mrtoken = "{$MR_token|escape:'htmlall':'UTF-8'}";
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" src="{$new_base_dir|escape:'htmlall':'UTF-8'}js/mondialrelay.js"></script>
|
390
modules/mondialrelay/views/templates/admin/configuration.tpl
Executable file
@ -0,0 +1,390 @@
|
||||
{*
|
||||
* 2007-2015 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-2015 PrestaShop SA
|
||||
* @version Release: $Revision: 6844 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
<script type="text/javascript">
|
||||
var PS_MR_SELECTED_TAB = '{$MR_tab_selected|escape:'htmlall':'UTF-8'}';
|
||||
</script>
|
||||
<h2>{l s='Mondial Relay Configuration' mod='mondialrelay'}</h2>
|
||||
|
||||
{include file="$MR_local_path/views/templates/admin/post_action.tpl"}
|
||||
|
||||
{*
|
||||
** Menu bar
|
||||
*}
|
||||
<div id="MR_config_menu">
|
||||
<ul>
|
||||
<li {if $MR_tab_selected == 'account_form'} class="selected" {/if}>
|
||||
<a id="MR_account_form" href="javascript:void(0)">
|
||||
<img src="{$MR_base_dir|escape:'htmlall':'UTF-8'}img/icones/account_detail.png" />
|
||||
<p>{l s='Account details' mod='mondialrelay'}</p>
|
||||
</a>
|
||||
</li>
|
||||
<li {if $MR_tab_selected == 'supplier_form'} class="selected" {/if}>
|
||||
<a id="MR_supplier_form" href="javascript:void(0)">
|
||||
<img src="{$MR_base_dir|escape:'htmlall':'UTF-8'}img/icones/supplier.png" />
|
||||
<p>{l s='Shipping' mod='mondialrelay'}</p>
|
||||
</a>
|
||||
</li>
|
||||
<li {if $MR_tab_selected == 'settings_form'} class="selected" {/if}>
|
||||
<a id="MR_settings_form" href="javascript:void(0)">
|
||||
<img src="{$MR_base_dir|escape:'htmlall':'UTF-8'}img/icones/settings.png" />
|
||||
<p>{l s='Advanced settings' mod='mondialrelay'}</p>
|
||||
</a>
|
||||
</li>
|
||||
<li {if $MR_tab_selected == 'info_form'} class="selected" {/if}>
|
||||
<a id="MR_info_form" href="javascript:void(0)">
|
||||
<img src="{$MR_base_dir|escape:'htmlall':'UTF-8'}img/icones/info.png" />
|
||||
<p>{l s='Infos' mod='mondialrelay'}</p>
|
||||
</a>
|
||||
</li>
|
||||
<li {if $MR_tab_selected == 'contact_form'} class="selected" {/if}>
|
||||
<a id="MR_contact_form" href="javascript:void(0)">
|
||||
<img src="{$MR_base_dir|escape:'htmlall':'UTF-8'}img/icones/help.png" />
|
||||
<p>{l s='Contact us' mod='mondialrelay'}</p>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div id="MR_error_account" class="PS_MRFormType MR_error">
|
||||
{l s='Please set your Mondial Relay account settings' mod='mondialrelay'}
|
||||
</div>
|
||||
|
||||
{if $MR_upgrade_detail|count}
|
||||
<div class="PS_MRFormType MR_error">
|
||||
<ul>
|
||||
{foreach from=$MR_upgrade_detail item=message}
|
||||
<li>{$message|escape:'htmlall':'UTF-8'}</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{*
|
||||
** Contact
|
||||
*}
|
||||
<div id="MR_contact_form_block" class="PS_MRFormType">
|
||||
<fieldset>
|
||||
<legend>
|
||||
<img src="../modules/mondialrelay/img/logo.gif" />{l s='Contact us' mod='mondialrelay'}
|
||||
</legend>
|
||||
<ul>
|
||||
<li style="float:left; width:535px;">
|
||||
{l s='Mondial Relay Customer Service Team is available to assist you with freight enquiries. For general enquiries or to book please contact us by: ' mod='mondialrelay'}
|
||||
<br />
|
||||
<br />- {l s='Mail:' mod='mondialrelay'} <a href="mailto:servicecommercial@mondialrelay.com" style="color:#CA0046;">servicecommercial@mondialrelay.com</a>
|
||||
<br />- {l s='Tel:' mod='mondialrelay'} {l s='09.69.322.332 (appel non surtaxé)' mod='mondialrelay'}
|
||||
<br />
|
||||
<br />
|
||||
<br />
|
||||
<b>{l s='For further information please see the FAQ section of our website:' mod='mondialrelay'}</b>
|
||||
<br /><a href="http://www.mondialrelay.fr/public/mr_faq.aspx" target="_blank" style="color:#CA0046;">http://www.mondialrelay.fr</a>
|
||||
</li>
|
||||
<!--li style="float:left; width:320px;">
|
||||
<div style="text-align:center;">
|
||||
<img src="http://www.mondialrelay.fr/img/FR/BLOCCPourtoi_FR.gif"/>
|
||||
</div>
|
||||
</li//-->
|
||||
</ul>
|
||||
<br clear="all" />
|
||||
</fieldset>
|
||||
</div>
|
||||
{*
|
||||
** General information
|
||||
*}
|
||||
<div id="MR_info_form_block" class="PS_MRFormType">
|
||||
<div class="MR_warn">
|
||||
<a style="color:#383838;text-decoration:underline" href="index.php?tab=AdminPerformance&token={$MR_token_admin_performance|escape:'htmlall':'UTF-8'}">
|
||||
{l s='Try to turn off the cache and put the force compilation to on' mod='mondialrelay'}
|
||||
</a>
|
||||
{l s='if you have any problems with the module after an update' mod='mondialrelay'}
|
||||
</div>
|
||||
|
||||
<div class="MR_hint">
|
||||
{l s='Have a look to the following HOW-TO to help you to configure the Mondial Relay module' mod='mondialrelay'}
|
||||
<b>
|
||||
<a href="{$MR_base_dir|escape:'htmlall':'UTF-8'}/docs/install.pdf">
|
||||
<img width="20" src="{$MR_base_dir|escape:'htmlall':'UTF-8'}img/pdf_icon.jpg" />
|
||||
</a>
|
||||
</b>
|
||||
</div>
|
||||
|
||||
<br />
|
||||
|
||||
<fieldset>
|
||||
<legend>
|
||||
<img src="../modules/mondialrelay/img/logo.gif" />{l s='To create a Mondial Relay carrier' mod='mondialrelay'}
|
||||
</legend>
|
||||
- {l s='Enter and save your Mondial Relay account settings' mod='mondialrelay'} <br />
|
||||
- {l s='Create a Carrier using button' mod='mondialrelay'} <a href="javascript:$('#MR_supplier_form').click()" class="green">{l s='Add shipping method with carrier button' mod='mondialrelay'}</a><br />
|
||||
- {l s='Define a price for your carrier on' mod='mondialrelay'}
|
||||
<a href="index.php?tab=AdminCarriers&token={$MR_token_admin_carriers|escape:'htmlall':'UTF-8'}" class="green">{l s='The Carrier page' mod='mondialrelay'}</a> <br />
|
||||
- {l s='To generate labels, you must have a valid and registered address of your store on your' mod='mondialrelay'}
|
||||
<a href="index.php?tab={$MR_token_admin_contact.controller_name|escape:'htmlall':'UTF-8'}&token={$MR_token_admin_contact.token|escape:'htmlall':'UTF-8'}" class="green">{l s='contact page' mod='mondialrelay'}</a> <br />
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
{*
|
||||
** Account settings form
|
||||
*}
|
||||
<div id="MR_account_form_block" class="PS_MRFormType">
|
||||
<form action="{$smarty.server.REQUEST_URI|escape:'htmlall':'UTF-8'}" method="post" >
|
||||
<fieldset>
|
||||
<legend><img src="../modules/mondialrelay/img/logo.gif" />{l s='Mondial Relay Account Settings' mod='mondialrelay'}</legend>
|
||||
<div>
|
||||
{l s='These parameters are provided by Mondial Relay once you subscribed to their service' mod='mondialrelay'}
|
||||
</div>
|
||||
<ul>
|
||||
<li>
|
||||
<label for="MR_enseigne_webservice" class="mrLabel">{l s='Webservice Enseigne:' mod='mondialrelay'}</label>
|
||||
<input id="MR_enseigne_webservice" class="mrInput" type="text" name="MR_enseigne_webservice" value="{$MR_enseigne_webservice|escape:'htmlall':'UTF-8'}" />
|
||||
<sup>*</sup>
|
||||
</li>
|
||||
<li>
|
||||
<label for="MR_code_marque" class="mrLabel">
|
||||
{l s='Code marque:' mod='mondialrelay'}
|
||||
</label>
|
||||
<input id="MR_code_marque" class="mrInput" type="text" name="MR_code_marque" value="{$MR_code_marque|escape:'htmlall':'UTF-8'}" />
|
||||
<sup>*</sup>
|
||||
</li>
|
||||
<li>
|
||||
<label for="MR_webservice_key" class="mrLabel">{l s='Webservice Key:' mod='mondialrelay'}</label>
|
||||
<input id="MR_webservice_key" class="mrInput" type="text" name="MR_webservice_key" value="{$MR_webservice_key|escape:'htmlall':'UTF-8'}" />
|
||||
<sup>*</sup>
|
||||
</li>
|
||||
<li>
|
||||
<label for="MR_language" class="mrLabel">
|
||||
{l s='Etiquette\'s Language:' mod='mondialrelay'}
|
||||
</label>
|
||||
<select id="MR_language" name="MR_language">
|
||||
{foreach from=$MR_available_languages key=num_language item=language}
|
||||
{assign var='selected_option' value=''}
|
||||
{if $language.iso_code|upper == $MR_selected_language}
|
||||
{assign var='selected_option' value='selected="selected"'}
|
||||
{/if}
|
||||
<option value="{$language.iso_code|upper}" {$selected_option}>{$language.name|escape:'htmlall':'UTF-8'}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
<sup>*</sup>
|
||||
</li>
|
||||
<li>
|
||||
<label for="MR_weight_coefficient" class="mrLabel">{l s='Weight Coefficient:' mod='mondialrelay'}</label>
|
||||
<input class="mrInput" type="text" name="MR_weight_coefficient" id="MR_weight_coefficient" style="width:45px; " value="{$MR_weight_coefficient|escape:'htmlall':'UTF-8'}"/>
|
||||
<sup>*</sup>
|
||||
<span class="indication">{l s='grammes = 1 ' mod='mondialrelay'}</span>
|
||||
</li>
|
||||
<li class="PS_MRSubmit">
|
||||
<input type="submit" name="submit_account_detail" value="{l s='Update Settings' mod='mondialrelay'}" class="button" />
|
||||
{if $MR_webservice_key && $MR_code_marque && $MR_enseigne_webservice}
|
||||
<input type="button" name="check_connexion" value="{l s='Check connexion' mod='mondialrelay'}" class="button" style="margin:0 60px 0 0;" onclick="return mr_checkConnexion();"/>
|
||||
{/if}
|
||||
</li>
|
||||
</ul>
|
||||
<div class="small"><sup>*</sup>{l s='Required fields' mod='mondialrelay'}</div>
|
||||
</fieldset>
|
||||
<input type="hidden" name="MR_tab_name" value="account_form" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
{if $MR_account_set}
|
||||
|
||||
{*
|
||||
** Advanced settings
|
||||
*}
|
||||
<div id="MR_settings_form_block" class="PS_MRFormType">
|
||||
<form action="{$smarty.server.REQUEST_URI|escape:'htmlall':'UTF-8'}" method="post" >
|
||||
<fieldset class="PS_MRFormStyle">
|
||||
<legend>
|
||||
<img src="../modules/mondialrelay/img/logo.gif" />{l s='Advanced Settings' mod='mondialrelay'}
|
||||
</legend>
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
<label for="MR_name" class="shipLabel">{l s='Mode:' mod='mondialrelay'}</label>
|
||||
<input type="radio" name="mode" value="widget" {if $MR_MONDIAL_RELAY_MODE == 'widget'}checked="checked"{/if} /> {l s='Widget' mod='mondialrelay'}
|
||||
<input type="radio" name="mode" value="normal" {if $MR_MONDIAL_RELAY_MODE == 'normal'}checked="checked"{/if} /> {l s='Normal' mod='mondialrelay'}
|
||||
</li>
|
||||
|
||||
<li>
|
||||
{l s='URL Cron Task:' mod='mondialrelay'}
|
||||
<br/>
|
||||
{$MR_CRON_URL|escape:'htmlall':'UTF-8'}
|
||||
</li>
|
||||
|
||||
<li class="PS_MRSubmit">
|
||||
<input type="submit" name="submitAdvancedSettings" value="{l s='Update Advanced Settings' mod='mondialrelay'}" class="button" />
|
||||
</li>
|
||||
</ul>
|
||||
</fieldset>
|
||||
|
||||
<input type="hidden" name="MR_tab_name" value="settings_form" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
{*
|
||||
** Add new shipping form
|
||||
*}
|
||||
<div id="MR_supplier_form_block" class="PS_MRFormType">
|
||||
<form action="{$smarty.server.REQUEST_URI|escape:'htmlall':'UTF-8'}" method="post" >
|
||||
<fieldset>
|
||||
<legend><img src="../modules/mondialrelay/img/logo.gif" alt="" />{l s='Add a Shipping Method' mod='mondialrelay'}</legend>
|
||||
<ul>
|
||||
<li>
|
||||
<label for="MR_name" class="shipLabel">{l s='Carrier\'s name' mod='mondialrelay'}</label>
|
||||
<input type="text" id="MR_name" name="MR_name" value="{$MR_name|escape:'htmlall':'UTF-8'}" style="width:190px;" />
|
||||
<sup>*</sup>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<label for="MR_delay" class="shipLabel">{l s='Delay' mod='mondialrelay'}</label>
|
||||
<input type="text" id="MR_delay" name="MR_delay" value="{$MR_delay|escape:'htmlall':'UTF-8'}" style="width:190px;" />
|
||||
<sup>*</sup>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<label for="MR_dlv_mode" class="shipLabel">{l s='Delivery mode' mod='mondialrelay'}</label>
|
||||
<select name="MR_dlv_mode" id="MR_dlv_mode" style="width:200px">
|
||||
<option value="24R">24R : {l s='Delivery to a relay point' mod='mondialrelay'}</option>
|
||||
<option value="DRI">DRI : {l s='Colis Drive delivery' mod='mondialrelay'}</option>
|
||||
<option value="LD1">LD1 : {l s='Home delivery RDC (1 person)' mod='mondialrelay'}</option>
|
||||
<option value="LDS">LDS : {l s='Special Home delivery (2 persons)' mod='mondialrelay'}</option>
|
||||
<option value="HOM">HOM : {l s='Special Home delivery' mod='mondialrelay'}</option>
|
||||
</select>
|
||||
<sup>*</sup>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<label for="MR_insurance" class="shipLabel">{l s='Insurance' mod='mondialrelay'}</label>
|
||||
<select name="MR_insurance" id="MR_insurance" style="width:200px">
|
||||
<option value="0">0 : {l s='No insurance' mod='mondialrelay'}</option>
|
||||
<option value="1">1 : {l s='Complementary Insurance Lv1' mod='mondialrelay'}</option>
|
||||
<option value="2">2 : {l s='Complementary Insurance Lv2' mod='mondialrelay'}</option>
|
||||
<option value="3">3 : {l s='Complementary Insurance Lv3' mod='mondialrelay'}</option>
|
||||
<option value="4">4 : {l s='Complementary Insurance Lv4' mod='mondialrelay'}</option>
|
||||
<option value="5">5 : {l s='Complementary Insurance Lv5' mod='mondialrelay'}</option>
|
||||
</select>
|
||||
<sup>*</sup>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<label for="MR_country_list" class="shipLabel">{l s='Delivery countries:' mod='mondialrelay'}<br /><br />
|
||||
<span style="font-size:10px; width:200px;float:left; color:forestgreen">
|
||||
{l s='You can choose several countries by pressing Ctrl while selecting countries' mod='mondialrelay'}
|
||||
</span>
|
||||
</label>
|
||||
<select name="MR_country_list[]" id="MR_country_list" multiple size="9" style="width:200px;">
|
||||
<option value="FR">{l s='France' mod='mondialrelay'}</option>
|
||||
<option value="BE">{l s='Belgium' mod='mondialrelay'}</option>
|
||||
<option value="LU">{l s='Luxembourg' mod='mondialrelay'}</option>
|
||||
<option value="ES">{l s='Spain' mod='mondialrelay'}</option>
|
||||
<option value="DE">{l s='Germany' mod='mondialrelay'}</option>
|
||||
<option value="AT">{l s='Austria' mod='mondialrelay'}</option>
|
||||
<option value="UK">{l s='United Kingdom' mod='mondialrelay'}</option>
|
||||
<option value="UI">{l s='Italy' mod='mondialrelay'}</option>
|
||||
<option value="PT">{l s='Portugal' mod='mondialrelay'}</option>
|
||||
</select>
|
||||
<sup>*</sup>
|
||||
</li>
|
||||
|
||||
<li class="PS_MRSubmit">
|
||||
<input type="submit" name="submit_add_shipping" value="{l s='Add a Shipping Method' mod='mondialrelay'}" class="button" />
|
||||
</li>
|
||||
</ul>
|
||||
<div class="small"><sup>*</sup>{l s='Required fields' mod='mondialrelay'}</div>
|
||||
</fieldset>
|
||||
<input type="hidden" name="MR_tab_name" value="supplier_form" />
|
||||
</form>
|
||||
|
||||
<br />
|
||||
|
||||
{*
|
||||
** Shipping List
|
||||
*}
|
||||
<fieldset class="shippingList">
|
||||
<legend><img src="../modules/mondialrelay/img/logo.gif" />{l s='Shipping Method\'s list' mod='mondialrelay'}</legend>
|
||||
|
||||
{if $MR_carriers_list|count == 0}
|
||||
<ul><li>{l s='No shipping methods created' mod='mondialrelay'}</li></ul>
|
||||
{else}
|
||||
|
||||
<table class="table tableDnD carrier">
|
||||
<tr>
|
||||
<th style="text-align:center">{l s='ID_MR' mod='mondialrelay'}</th>
|
||||
<th style="text-align:center">{l s='ID carrier' mod='mondialrelay'}</th>
|
||||
<th>{l s='Carrier' mod='mondialrelay'}</th>
|
||||
<th style="text-align:center">{l s='Delivery mode' mod='mondialrelay'}</th>
|
||||
<th style="text-align:center">{l s='Insurance' mod='mondialrelay'}</th>
|
||||
<th >{l s='Delivery countries' mod='mondialrelay'}</th>
|
||||
<th style="text-align:center">{l s='Delete' mod='mondialrelay'}</th>
|
||||
<th style="text-align:center">{l s='Edit' mod='mondialrelay'}</th>
|
||||
</tr>
|
||||
|
||||
|
||||
{foreach from=$MR_carriers_list key=num_carrier item=carrier}
|
||||
<tr>
|
||||
<td width="5%" align="center">
|
||||
{$carrier.id_mr_method|intval}
|
||||
</td>
|
||||
<td width="7%" align="center">
|
||||
{$carrier.id_carrier|intval}
|
||||
</td>
|
||||
<td width="40%">
|
||||
{$carrier.name|escape:'htmlall':'UTF-8'} ({$carrier.col_mode|escape:'htmlall':'UTF-8'})
|
||||
</td>
|
||||
<td width="15%" align="center">
|
||||
{$carrier.dlv_mode|escape:'htmlall':'UTF-8'}
|
||||
</td>
|
||||
<td width="15%" align="center">
|
||||
{$carrier.insurance|escape:'htmlall':'UTF-8'}
|
||||
</td>
|
||||
<td width="15%">
|
||||
{$carrier.country_list|escape:'htmlall':'UTF-8'}
|
||||
</td>
|
||||
<td align="center">
|
||||
<form action="{$smarty.server.REQUEST_URI|escape:'htmlall':'UTF-8'}&MR_tab_name=supplier_form" method="post">
|
||||
<input type="hidden" name="delete_mr" value="{$carrier.id_mr_method|intval}" >
|
||||
<a class="send_disable_carrier_form" href="javascript:void(0)">
|
||||
<img src="../img/admin/disabled.gif" alt="{l s='Delete' mod='mondialrelay'}" title="{l s='Delete' mod='mondialrelay'}" />
|
||||
</a>
|
||||
</form>
|
||||
</td>
|
||||
<td align="center">
|
||||
{if version_compare($smarty.const._PS_VERSION_,'1.6','<')}
|
||||
<a href="index.php?tab=AdminCarriers&id_carrier={$carrier.id_carrier|intval}&updatecarrier&token={$MR_token_admin_carriers|escape:'htmlall':'UTF-8'}">
|
||||
<img src="../img/admin/edit.gif" alt="{l s='Edit' mod='mondialrelay'}" title="{l s='Edit' mod='mondialrelay'}" />
|
||||
</a>
|
||||
{else}
|
||||
<a href="index.php?tab=AdminCarrierWizard&id_carrier={$carrier.id_carrier|intval}&updatecarrier&token={$MR_token_admin_carriers|escape:'htmlall':'UTF-8'}">
|
||||
<img src="../img/admin/edit.gif" alt="{l s='Edit' mod='mondialrelay'}" title="{l s='Edit' mod='mondialrelay'}" />
|
||||
</a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>
|
||||
{/if}
|
136
modules/mondialrelay/views/templates/admin/generate_tickets.tpl
Executable file
@ -0,0 +1,136 @@
|
||||
{*
|
||||
* 2007-2015 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-2015 PrestaShop SA
|
||||
* @version Release: $Revision: 10285 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
{if $MR_errors_type.error|count}
|
||||
<div class="MR_error">
|
||||
{l s='Please kindly correct the following errors on' mod='mondialrelay'}
|
||||
<a href="index.php?tab={$MR_token_admin_contact.controller_name|escape:'htmlall':'UTF-8'}&token={$MR_token_admin_contact.token|escape:'htmlall':'UTF-8'}" style="color:#f00;">
|
||||
{l s='the contact page:' mod='mondialrelay'}
|
||||
</a>
|
||||
<ul>
|
||||
{foreach from=$MR_errors_type.error key=name item=message}
|
||||
<li>{$name|escape:'htmlall':'UTF-8'}: {$message|escape:'htmlall':'UTF-8'}</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
{/if}
|
||||
{if $MR_errors_type.warn|count}
|
||||
<div class="MR_warn">
|
||||
{l s='Please take a look to this following warning, maybe the ticket won\'t be generated' mod='mondialrelay'}
|
||||
<ul>
|
||||
{foreach from=$MR_errors_type.warn key=name item=message}
|
||||
<li>{$name|escape:'htmlall':'UTF-8'}: {$message|escape:'htmlall':'UTF-8'}</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<p>
|
||||
{l s='All orders which have the state' mod='mondialrelay'} "<b>{$MR_order_state.name|escape:'htmlall':'UTF-8'}</b>" {l s='will be available for creation of labels' mod='mondialrelay'}
|
||||
</p>
|
||||
<div class="bootstrap">
|
||||
<div class="PS_MRErrorList error alert alert-danger" id="otherErrors">
|
||||
<span></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<fieldset>
|
||||
<legend>{l s='Orders list' mod='mondialrelay'}</legend>
|
||||
<form method="post" action="{$smarty.server.REQUEST_URI|escape:'htmlall':'UTF-8'}" class="MR_form_admintab">
|
||||
<table class="table" id='orders'>
|
||||
<tr>
|
||||
<th><input type="checkbox" id="toggleStatusOrderList" /></th>
|
||||
<th>{l s='Order ID' mod='mondialrelay'}</th>
|
||||
<th>{l s='Customer' mod='mondialrelay'}</th>
|
||||
<th>{l s='Total price' mod='mondialrelay'}</th>
|
||||
<th>{l s='Total shipping costs' mod='mondialrelay'}</th>
|
||||
<th>{l s='Date' mod='mondialrelay'}</th>
|
||||
<th>{l s='Insert weight (grams)' mod='mondialrelay'}</th>
|
||||
<th>{l s='Choose an insurance' mod='mondialrelay'}</th>
|
||||
<th>{l s='MR Number' mod='mondialrelay'}</th>
|
||||
<th>{l s='MR Country' mod='mondialrelay'}</th>
|
||||
<th>{l s='Exp Number' mod='mondialrelay'}</th>
|
||||
<th>{l s='Detail' mod='mondialrelay'}</th>
|
||||
</tr>
|
||||
{foreach from=$MR_orders key=case_num item=order}
|
||||
<tr id="PS_MRLineOrderInformation-{$order.id_order|intval}">
|
||||
<td><input type="checkbox" class="order_id_list" name="order_id_list[]" id="order_id_list" value="{$order.id_order|intval}" /></td>
|
||||
<td>{$order.id_order|intval}</td>
|
||||
<td>{$order.customer|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$order.display_total_price|floatval}</td>
|
||||
<td>{$order.display_shipping_price|floatval}</td>
|
||||
<td>{$order.display_date|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>
|
||||
<input type="text" name="weight_{$order.id_order|intval}" id="weight_{$order.id_order|intval}" size="7" value="{$order.weight}" />
|
||||
</td>
|
||||
<td>
|
||||
<select name="MR_insurance_{$order.id_order|intval}" id="insurance_{$order.id_order|intval}" style="width:200px">
|
||||
<option value="0" {if $order.mr_insurance == 0}selected="selected"{/if}>0 : {l s='No insurance N0' mod='mondialrelay'}</option>
|
||||
<option value="1" {if $order.mr_insurance == 1}selected="selected"{/if}>1 : {l s='Complementary Insurance N1' mod='mondialrelay'}</option>
|
||||
<option value="2" {if $order.mr_insurance == 2}selected="selected"{/if}>2 : {l s='Complementary Insurance N2' mod='mondialrelay'}</option>
|
||||
<option value="3" {if $order.mr_insurance == 3}selected="selected"{/if}>3 : {l s='Complementary Insurance N3' mod='mondialrelay'}</option>
|
||||
<option value="4" {if $order.mr_insurance == 4}selected="selected"{/if}>4 : {l s='Complementary Insurance N4' mod='mondialrelay'}</option>
|
||||
<option value="5" {if $order.mr_insurance == 5}selected="selected"{/if}>5 : {l s='Complementary Insurance N5' mod='mondialrelay'}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td>{$order.MR_Selected_Num|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$order.MR_Selected_Pays|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$order.exp_number|escape:'htmlall':'UTF-8'}</td>
|
||||
|
||||
<td class="center">
|
||||
<a href="index.php?tab=AdminOrders&id_order={$order.id_order|intval}&vieworder&token={$MR_token_admin_orders}">
|
||||
<img border="0" title="{l s='View' mod='mondialrelay'}" alt="{l s='View' mod='mondialrelay'}" src="{$new_base_dir|escape:'htmlall':'UTF-8'}img/details.gif"/>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="PS_MRErrorList error" id="errorCreatingTicket_{$order.id_order|intval}" style="display:none;">
|
||||
<td colspan="12" style="background: #f2dede">
|
||||
<span></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="PS_MRSuccessList" id="successCreatingTicket_{$order.id_order|intval}" style="display:none;">
|
||||
<td>{$order.id_order|intval}</td>
|
||||
<td colspan="11" style="background: #DFFAD3;">
|
||||
{l s='Operation successful' mod='mondialrelay'}
|
||||
<span></span>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
{if !$MR_orders|count}
|
||||
<h3 style="color:red;">{l s='No orders with this state.' mod='mondialrelay'}</h3>
|
||||
{else}
|
||||
<div class="submit_button">
|
||||
<div class="PS_MRSubmitButton" id="PS_MRSubmitButtonGenerateTicket">
|
||||
<input type="button" name="generate" id="generate" value="{l s='Generate' mod='mondialrelay'}" class="button" />
|
||||
</div>
|
||||
<div class="PS_MRLoader" id="PS_MRSubmitGenerateLoader"><img src="{$new_base_dir|escape:'htmlall':'UTF-8'}img/getTickets.gif"</div>
|
||||
</div>
|
||||
{/if}
|
||||
</form>
|
||||
</fieldset>
|
||||
|
||||
<br />
|
81
modules/mondialrelay/views/templates/admin/history.tpl
Executable file
@ -0,0 +1,81 @@
|
||||
{*
|
||||
* 2007-2015 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-2015 PrestaShop SA
|
||||
* @version Release: $Revision: 10285 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
<fieldset>
|
||||
<legend>{l s='History of labels creation' mod='mondialrelay'}</legend>
|
||||
<div style="overflow-x: auto;overflow-y: scroller; padding-top: 0.6em;" >
|
||||
<form method="post" action="{$smarty.server.REQUEST_URI|escape:'htmlall':'UTF-8'}" class="MR_form_admintab">
|
||||
<table class="table" id="PS_MRHistoriqueTableList">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th><input type="checkbox" id="toggleStatusHistoryList" /></th>
|
||||
<th>{l s='Order ID' mod='mondialrelay'}</th>
|
||||
<th>{l s='Exp num' mod='mondialrelay'}</th>
|
||||
<th>{l s='Print stick A4' mod='mondialrelay'}</th>
|
||||
<th>{l s='Print stick A5' mod='mondialrelay'}</th>
|
||||
<th>{l s='Print stick 10x15' mod='mondialrelay'}</th>
|
||||
</tr>
|
||||
{foreach from=$MR_histories key=num_history item=history}
|
||||
<tr id="detailHistory_{$history.order|intval}">
|
||||
<td>
|
||||
<input type="checkbox" id="PS_MRHistoryId_{$history.id|intval}" class="history_id_list" name="history_id_list[]" value="{$history.id|intval}" />
|
||||
</td>
|
||||
<td>{$history.order|intval}</td>
|
||||
<td id="expeditionNumber_{$history.order|intval}">
|
||||
{$history.exp|escape:'htmlall':'UTF-8'}
|
||||
</td>
|
||||
<td id="URLA4_{$history.order|intval}">
|
||||
<a href="{$history.url_a4|escape:'htmlall':'UTF-8'}" target="a4"><img width="20" src="{$new_base_dir|escape:'htmlall':'UTF-8'}img/pdf_icon.jpg" /></a>
|
||||
</td>
|
||||
<td id="URLA5_{$history.order|intval}">
|
||||
<a href="{$history.url_a5|escape:'htmlall':'UTF-8'}" target="a5"><img width="20" src="{$new_base_dir|escape:'htmlall':'UTF-8'}img/pdf_icon.jpg" /></a>
|
||||
</td>
|
||||
<td id="URL10x15_{$history.order|intval}">
|
||||
<a href="{$history.url_10x15|escape:'htmlall':'UTF-8'}" target="10x15"><img width="20" src="{$new_base_dir|escape:'htmlall':'UTF-8'}img/pdf_icon.jpg" /></a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
{if !$MR_histories|count}
|
||||
<div id="MR_error_histories">
|
||||
<h3 style="color:red;">{l s='No histories available' mod='mondialrelay'}</h3>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="PS_MRSubmitButton" {if !$MR_histories|count}style="display:none;"{/if}>
|
||||
<input type="button" id="PS_MRSubmitButtonPrintSelectedA4" name="printSelectedA4" value="{l s='Print selected stick A4' mod='mondialrelay'}" class="button" />
|
||||
<input type="button" id="PS_MRSubmitButtonPrintSelectedA5" name="printSelectedA5" value="{l s='Print selected stick A5' mod='mondialrelay'}" class="button" />
|
||||
<input type="button" id="PS_MRSubmitButtonPrintSelected10x15" name="printSelected10x15" value="{l s='Print selected stick 10x15' mod='mondialrelay'}" class="button" />
|
||||
<input type="button" id="PS_MRSubmitButtonDeleteHistories" name="deleteSelectedHistories" value="{l s='Delete selected history' mod='mondialrelay'}" class="button" />
|
||||
<div class="PS_MRLoader" id="PS_MRSubmitDeleteHistoriesLoader">
|
||||
<img src="{$new_base_dir|escape:'htmlall':'UTF-8'}img/getTickets.gif"
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<br />
|
36
modules/mondialrelay/views/templates/admin/index.php
Executable file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2015 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-2015 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;
|
42
modules/mondialrelay/views/templates/admin/post_action.tpl
Executable file
@ -0,0 +1,42 @@
|
||||
{*
|
||||
* 2007-2015 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-2015 PrestaShop SA
|
||||
* @version Release: $Revision: 10285 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
<div class="bootstrap">
|
||||
{if $MR_error_list|count}
|
||||
<div class="alert error">
|
||||
{$MR_error_list|count} {l s='error(s)' mod='mondialrelay'}
|
||||
<ul>
|
||||
{foreach from=$MR_error_list key=error_num item=error_message}
|
||||
<li>{$error_message|escape:'htmlall':'UTF-8'}</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
{elseif $MR_form_action.type|strlen != 0}
|
||||
<div class="conf confirm alert alert-success">
|
||||
{$MR_form_action.message_success|escape:'htmlall':'UTF-8'}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
61
modules/mondialrelay/views/templates/admin/settings.tpl
Executable file
@ -0,0 +1,61 @@
|
||||
{*
|
||||
* 2007-2015 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-2015 PrestaShop SA
|
||||
* @version Release: $Revision: 10285 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
{include file="$MR_local_path/views/templates/admin/post_action.tpl"}
|
||||
|
||||
{*
|
||||
** Basic Settings
|
||||
*}
|
||||
<div>
|
||||
<form action="{$smarty.server.REQUEST_URI|escape:'htmlall':'UTF-8'}" method="post" class="form">
|
||||
<fieldset>
|
||||
<legend><img src="../modules/mondialrelay/img/logo.gif" />{l s='Admin Tab Settings' mod='mondialrelay'}</legend>
|
||||
<label for="id_order_state">{l s='Order state' mod='mondialrelay'}</label>
|
||||
<div class="margin-form">
|
||||
<select id="id_order_state" name="id_order_state" style="width:250px">
|
||||
{foreach from=$MR_orders_states_list key=num_state item=order_state}
|
||||
{assign var='selected_option' value=''}
|
||||
{if $order_state.id_order_state == $MR_order_state.id_order_state}
|
||||
{assign var='selected_option' value='selected="selected"'}
|
||||
{/if}
|
||||
<option value="{$order_state.id_order_state|intval}" style="background-color:{$order_state.color|escape:'htmlall':'UTF-8'};" {$selected_option}>{$order_state.name|escape:'htmlall':'UTF-8'}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
<p>
|
||||
{l s='Choose the order state for labels.' mod='mondialrelay'}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="clear"></div>
|
||||
<div class="margin-form">
|
||||
<input type="submit" name="submit_order_state" value="{l s='Save' mod='mondialrelay'}" class="button" />
|
||||
</div>
|
||||
</fieldset>
|
||||
<input type="hidden" name="MR_action_name" value="{l s='Settings' mod='mondialrelay'}" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<br />
|
38
modules/mondialrelay/views/templates/front/checkout_process.tpl
Executable file
@ -0,0 +1,38 @@
|
||||
{*
|
||||
* 2007-2015 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-2015 PrestaShop SA
|
||||
* @version Release: $Revision: 16067 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
<script type="text/javascript">
|
||||
// Global JS Value
|
||||
var PS_MRData = {$MR_Data};
|
||||
{assign var=MR_Data value=$MR_Data|json_decode:1}
|
||||
// literal for smarty v2 compatibility
|
||||
$(document).ready(function() {literal}{{/literal}
|
||||
PS_MRObject.initFront();
|
||||
{literal}}{/literal});
|
||||
</script>
|
||||
{*if $MR_Data.PS_VERSION >= '1.5' && !$MR_Data.carrier}
|
||||
{l s='Mondial relay can\'t fetch any replay point due to prestashop error' mod='mondialrelay'}
|
||||
{/if*}
|
192
modules/mondialrelay/views/templates/front/checkout_process_widget.tpl
Executable file
@ -0,0 +1,192 @@
|
||||
{*
|
||||
* 2007-2015 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-2015 PrestaShop SA
|
||||
* @version Release: $Revision: 16067 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
<script type="text/javascript">
|
||||
// Global JS Value
|
||||
var PS_MRData = {$MR_Data};
|
||||
var id_address = '{$address->id|intval}';
|
||||
var ssl = {$ssl};
|
||||
var weight = {$cart->getTotalWeight()|floatval} * 1000; // en Kg
|
||||
if( weight == 0 ) weight = 100;
|
||||
//var weight = 999999; // en Kg
|
||||
var iso_code = '{$country->iso_code|escape:'htmlall':'UTF-8'}';
|
||||
var enseigne = '{$account_shop.MR_ENSEIGNE_WEBSERVICE|escape:'htmlall':'UTF-8'}';
|
||||
var selected_point = false;
|
||||
var button = false;
|
||||
var button_validate = "{l s='Validate' mod='mondialrelay'}";
|
||||
var relay_point_selected_box_label = "{l s='Selected pickup location:' mod='mondialrelay'}";
|
||||
var button_change_relay = "{l s='Change selection' mod='mondialrelay'}";
|
||||
|
||||
function loadMR_Map(zone_widget, dlv_mode) {
|
||||
|
||||
$('#MRW-Map').html("");
|
||||
|
||||
// Charge le widget dans la DIV d'id "Zone_Widget" avec les paramètres de base
|
||||
// renverra la selection de l'utilisateur dans le champs d'ID "Retour_Widget"
|
||||
$(zone_widget).MR_ParcelShopPicker({
|
||||
Weight: weight,
|
||||
ColLivMod: dlv_mode,
|
||||
Target: "#Retour_Widget", // selecteur jquery ou renvoyer l'ID du relais selectionné
|
||||
Brand: enseigne, // votre code client
|
||||
PostCode: "{$address->postcode|escape:'htmlall':'UTF-8'}",
|
||||
Country: iso_code, /* pays*/
|
||||
UseSSL: ssl,
|
||||
OnParcelShopSelected: function PS_MRAddSelectedRelayPointInDB_Widget(data) {
|
||||
var str = '';
|
||||
str += data.Nom+"\n";
|
||||
if(data.Adresse1)
|
||||
str += data.Adresse1+"\n";
|
||||
if(data.Adresse2)
|
||||
str += data.Adresse2+"\n";
|
||||
str += data.CP+"\n";
|
||||
//str += data.ID+"\n";
|
||||
str += data.Ville+"\n";
|
||||
str += data.Pays+"\n";
|
||||
|
||||
str = str.split("\n").join("<br />");
|
||||
var display = '<div class="mr_relay_info">';
|
||||
display += '<span class="mr_field name">' + data.Nom + '</span>';
|
||||
if(data.Adresse1)
|
||||
display += '<span class="mr_field address address1">' + data.Adresse1 + '</span>';
|
||||
if(data.Adresse2)
|
||||
display += '<span class="mr_field address address2">' + data.Adresse2 + '</span>';
|
||||
display += '<span class="mr_field postcode">' + data.CP + '</span>';
|
||||
display += '<span class="mr_field city">' + data.Ville + '</span>';
|
||||
display += '<span class="mr_field country">' + data.Pays + '</span>';
|
||||
display += '</div>';
|
||||
display += '<div class="mr_relay_update_relay"><span class="gradient"><a onclick="checkToDisplayRelayList()" class="button btn exclusive">' + button_change_relay + '</a></div>';
|
||||
|
||||
var newdata = {};
|
||||
newdata.Num = data.ID;
|
||||
newdata.LgAdr1 = data.Nom;
|
||||
newdata.LgAdr2 = '';
|
||||
newdata.LgAdr3 = data.Adresse1;
|
||||
newdata.LgAdr4 = data.Adresse2;
|
||||
newdata.CP = data.CP;
|
||||
newdata.Ville = data.Ville;
|
||||
newdata.Pays = data.Pays;
|
||||
newdata.permaLinkDetail = '';
|
||||
|
||||
var id_carrier = (typeof(PS_MRSelectedRelayPoint['carrier_id']) != undefined) ? PS_MRSelectedRelayPoint['carrier_id'] : 4;
|
||||
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: _PS_MR_MODULE_DIR_ + 'ajax.php',
|
||||
data: {
|
||||
'method' : 'addSelectedCarrierToDB',
|
||||
'relayPointInfo' : newdata,
|
||||
'id_carrier' : id_carrier,
|
||||
'id_mr_method' : PS_MRCarrierMethodList[id_carrier],
|
||||
'mrtoken' : mrtoken
|
||||
},
|
||||
success: function(json)
|
||||
{
|
||||
/*
|
||||
if (PS_MROPC && PS_MRData.PS_VERSION < '1.5')
|
||||
updateCarrierSelectionAndGift();
|
||||
*/
|
||||
PS_MRSelectedRelayPoint['relayPointNum'] = data.ID;
|
||||
|
||||
|
||||
displayPickupPlace(display);
|
||||
},
|
||||
error: function(xhr, ajaxOptions, thrownError)
|
||||
{
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function updateBox() {
|
||||
button = $('<br clear="all"><center><span class="gradient mr_relay_validation"><a href="javascript:$.fancybox.close(); return false;" id="close_fancybox" class="button_large exclusive" onclick="$.fancybox.close(); return false;">'+button_validate+'</a></span></center>');
|
||||
button.appendTo($('#Zone_Widget').parent());
|
||||
|
||||
$("#fancybox-content #close_fancybox").click(
|
||||
function(){
|
||||
$.fancybox.close();
|
||||
}
|
||||
);
|
||||
// avoid gray area in google map
|
||||
try{
|
||||
google.maps.event.trigger(document.getElementById('MRW-Map'), 'resize');
|
||||
}
|
||||
catch(e) {
|
||||
;
|
||||
}
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
|
||||
//loadMR_Map("#Zone_Widget", "24R");
|
||||
|
||||
//setTimeout(function(){
|
||||
$("#link_zone_widget").fancybox(
|
||||
{
|
||||
width : 705,
|
||||
height : 620,
|
||||
autoSize : false,
|
||||
autoScale : false,
|
||||
autoDimensions : false,
|
||||
afterShow : function(){
|
||||
updateBox();
|
||||
},
|
||||
onComplete : function() {
|
||||
updateBox();
|
||||
},
|
||||
onUpdate : function() {
|
||||
$('.fancybox-wrap').css({
|
||||
top:'10%',
|
||||
bottom:'auto'
|
||||
})
|
||||
}
|
||||
});
|
||||
checkToDisplayRelayList();
|
||||
//},1500);
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
{if $smarty.get.no_mr_selected}
|
||||
<p class="mr_warning warning">
|
||||
{l s='You have to select a relay point to use this delivery method.' mod='mondialrelay'}
|
||||
</p>
|
||||
{/if}
|
||||
|
||||
<div class="widget_box" style="display:block;width:0px;height:1px;overflow:hidden;">
|
||||
<a id="link_zone_widget" href="#Zone_Widget"> </a>
|
||||
<div id="Zone_Widget"></div>
|
||||
<div id="selected_point_box">
|
||||
<div style="padding: 10px; overflow: auto">
|
||||
<div style="background: #edffb2; border: solid 1px #a5f913; padding: 5px;font-family:verdana;font-size:10px">
|
||||
{l s='Selected pickup location:' mod='mondialrelay'}
|
||||
<input type="text" id="Retour_Widget" /></br>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
55
modules/mondialrelay/views/templates/front/header.tpl
Executable file
@ -0,0 +1,55 @@
|
||||
{*
|
||||
* 2007-2015 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-2015 PrestaShop SA
|
||||
* @version Release: $Revision: 10285 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
<link href="{$new_base_dir|escape:'htmlall':'UTF-8'}css/style.css" rel="stylesheet" type="text/css" media="all" />
|
||||
<script type="text/javascript">
|
||||
// Global JS Value
|
||||
var _PS_MR_MODULE_DIR_ = "{$new_base_dir|escape:'htmlall':'UTF-8'}";
|
||||
var mrtoken = "{$MRToken|escape:'htmlall':'UTF-8'}";
|
||||
var PS_MRMODE = "{$MR_MONDIAL_RELAY_MODE|escape:'htmlall':'UTF-8'}";
|
||||
var PS_MROPC = {$one_page_checkout|escape:'htmlall':'UTF-8'};
|
||||
var PS_MRTranslationList = [];
|
||||
var PS_MRCarrierMethodList = [];
|
||||
var PS_MRSelectedRelayPoint = {literal}{{/literal}'carrier_id': 0, 'relayPointNum': 0{literal}}{/literal};
|
||||
|
||||
PS_MRTranslationList['Select'] = "{l s='Select' mod='mondialrelay'}";
|
||||
PS_MRTranslationList['Selected'] = "{l s='Selected' mod='mondialrelay'}";
|
||||
PS_MRTranslationList['errorSelection'] = "{l s='Please choose a relay point' mod='mondialrelay'}";
|
||||
PS_MRTranslationList['openingRelay'] = "{l s='Opening hours' mod='mondialrelay'}";
|
||||
PS_MRTranslationList['moreDetails'] = "{l s='More details' mod='mondialrelay'}";
|
||||
</script>
|
||||
|
||||
{if isset($addJsInTemplate)}
|
||||
<!--On charge Google Map API-->
|
||||
<script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=false"></script>
|
||||
{/if}
|
||||
|
||||
|
||||
<!--On charge le widget mondial relay depuis leurs serveurs-->
|
||||
{if isset($page_name) && $page_name != 'module-mondialrelay-selection'}
|
||||
<script type="text/javascript" src="{$new_base_dir|escape:'htmlall':'UTF-8'}js/mondialrelay.js"></script>
|
||||
{/if}
|
||||
<script type="text/javascript" src="{$new_base_dir|escape:'htmlall':'UTF-8'}js/gmap.js"></script>
|
51
modules/mondialrelay/views/templates/front/header_widget.tpl
Executable file
@ -0,0 +1,51 @@
|
||||
{*
|
||||
* 2007-2015 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-2015 PrestaShop SA
|
||||
* @version Release: $Revision: 16067 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
{if isset($addJsInTemplate)}
|
||||
<!--On charge Google Map API-->
|
||||
<script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=false"></script>
|
||||
{/if}
|
||||
|
||||
<!--On charge le widget mondial relay depuis leurs serveurs-->
|
||||
<script type="text/javascript" src="{$new_base_dir|escape:'htmlall':'UTF-8'}js/jquery.plugin.mondialrelay.parcelshoppicker.2.0.0.js"></script>
|
||||
<script type="text/javascript" src="{$new_base_dir|escape:'htmlall':'UTF-8'}js/mondialrelay_widget.js"></script>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
// Global JS Value
|
||||
var _PS_MR_MODULE_DIR_ = "{$new_base_dir|escape:'htmlall':'UTF-8'}";
|
||||
var mrtoken = "{$MRToken|escape:'htmlall':'UTF-8'}";
|
||||
var PS_MRMODE = "{$MR_MONDIAL_RELAY_MODE|escape:'htmlall':'UTF-8'}";
|
||||
var PS_MROPC = {$one_page_checkout|escape:'htmlall':'UTF-8'};
|
||||
var PS_MRTranslationList = [];
|
||||
var PS_MRCarrierMethodList = [];
|
||||
var PS_MRSelectedRelayPoint = {literal}{{/literal}'carrier_id': 0, 'relayPointNum': 0{literal}}{/literal};
|
||||
|
||||
PS_MRTranslationList['Select'] = "{l s='Select' mod='mondialrelay' js=1}";
|
||||
PS_MRTranslationList['Selected'] = "{l s='Selected' mod='mondialrelay' js=1}";
|
||||
PS_MRTranslationList['errorSelection'] = "{l s='Please choose a relay point' mod='mondialrelay' js=1}";
|
||||
PS_MRTranslationList['openingRelay'] = "{l s='Opening hours' mod='mondialrelay' js=1}";
|
||||
PS_MRTranslationList['moreDetails'] = "{l s='More details' mod='mondialrelay' js=1}";
|
||||
</script>
|
35
modules/mondialrelay/views/templates/front/index.php
Executable file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2015 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 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/osl-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-2015 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 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;
|
37
modules/mondialrelay/views/templates/front/jquery-overload.tpl
Executable file
@ -0,0 +1,37 @@
|
||||
{*
|
||||
* 2007-2015 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-2015 PrestaShop SA
|
||||
* @version Release: $Revision: 10285 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
{if $MR_overload_current_jquery}
|
||||
<script type="text/javascript">
|
||||
var currentJquery = jQuery.noConflict(true);
|
||||
</script>
|
||||
<script type="text/javascript" src="{$new_base_dir|escape:'htmlall':'UTF-8'}js/jquery-1.6.4.min.js"></script>
|
||||
{else}
|
||||
<script type="text/javascript" src="{$new_base_dir|escape:'htmlall':'UTF-8'}js/jquery-1.6.4.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var MRjQuery = jQuery.noConflict(true);
|
||||
</script>
|
||||
{/if}
|
38
modules/mondialrelay/views/templates/front/order_detail.tpl
Executable file
@ -0,0 +1,38 @@
|
||||
{*
|
||||
* 2007-2015 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-2015 PrestaShop SA
|
||||
* @version Release: $Revision: 14011 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
<ul class="address item">
|
||||
<li class="address_title">Mondial Relay</li>
|
||||
<li>
|
||||
{if isset($mr_addr) && $mr_addr}
|
||||
<p id="dateofdelivery"><b style="text-transform:none;">{l s='Delivery to your Point Relais®' mod='mondialrelay'}</b> <br />{$mr_addr|escape:'UTF-8'}</p>
|
||||
{/if}
|
||||
{if $mr_url}
|
||||
<a href="{$mr_url|escape:'htmlall':'UTF-8'}" target="_blank">{l s='Follow my package on Mondial Relay website' mod='mondialrelay'}.</a>
|
||||
{/if}
|
||||
</li>
|
||||
</ul>
|
||||
<br clear="all"/>
|
1368
modules/mondialrelay/views/templates/front/selection_process.tpl
Executable file
196
modules/mondialrelay/views/templates/front/selection_process_widget.tpl
Executable file
@ -0,0 +1,196 @@
|
||||
{*
|
||||
* 2007-2015 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-2015 PrestaShop SA
|
||||
* @version Release: $Revision: 16067 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
<script type="text/javascript">
|
||||
// Global JS Value
|
||||
var PS_MRData = {$MR_Data};
|
||||
var id_address = '{$address->id|intval}';
|
||||
var ssl = {$ssl};
|
||||
// var weight = {$cart->getTotalWeight()|floatval} * 1000; // en Kg
|
||||
var weight = {$weight|floatval} * 1000; // en Kg
|
||||
if( weight == 0 ) weight = 100;
|
||||
//var weight = 999999; // en Kg
|
||||
var iso_code = '{$country->iso_code|escape:'htmlall':'UTF-8'}';
|
||||
var enseigne = '{$account_shop.MR_ENSEIGNE_WEBSERVICE|escape:'htmlall':'UTF-8'}';
|
||||
var selected_point = false;
|
||||
var button = false;
|
||||
var button_validate = "{l s='Valider' mod='mondialrelay'}";
|
||||
var relay_point_selected_box_label = "{l s='Point relais sélectionné' mod='mondialrelay'}";
|
||||
var button_change_relay = "{l s='Modifier mon point relais' mod='mondialrelay'}";
|
||||
var id_cart = {$id_cart};
|
||||
|
||||
function loadMR_Map(zone_widget, dlv_mode) {
|
||||
|
||||
$('#MRW-Map').html("");
|
||||
|
||||
// Charge le widget dans la DIV d'id "Zone_Widget" avec les paramètres de base
|
||||
// renverra la selection de l'utilisateur dans le champs d'ID "Retour_Widget"
|
||||
$(zone_widget).MR_ParcelShopPicker({
|
||||
Weight: weight,
|
||||
ColLivMod: dlv_mode,
|
||||
Target: "#Retour_Widget", // selecteur jquery ou renvoyer l'ID du relais selectionné
|
||||
Brand: enseigne, // votre code client
|
||||
PostCode: "{$address->postcode|escape:'htmlall':'UTF-8'}",
|
||||
Country: iso_code, /* pays*/
|
||||
UseSSL: ssl,
|
||||
OnParcelShopSelected: function PS_MRAddSelectedRelayPointInDB_Widget(data) {
|
||||
var str = '';
|
||||
str += data.Nom+"\n";
|
||||
if(data.Adresse1)
|
||||
str += data.Adresse1+"\n";
|
||||
if(data.Adresse2)
|
||||
str += data.Adresse2+"\n";
|
||||
str += data.CP+"\n";
|
||||
//str += data.ID+"\n";
|
||||
str += data.Ville+"\n";
|
||||
str += data.Pays+"\n";
|
||||
|
||||
str = str.split("\n").join("<br />");
|
||||
var display = '<div class="mr_relay_info">';
|
||||
display += '<span class="mr_field name">' + data.Nom + '</span>';
|
||||
if(data.Adresse1)
|
||||
display += '<span class="mr_field address address1">' + data.Adresse1 + '</span>';
|
||||
if(data.Adresse2)
|
||||
display += '<span class="mr_field address address2">' + data.Adresse2 + '</span>';
|
||||
display += '<span class="mr_field postcode">' + data.CP + '</span>';
|
||||
display += '<span class="mr_field city">' + data.Ville + '</span>';
|
||||
display += '<span class="mr_field country">' + data.Pays + '</span>';
|
||||
display += '</div>';
|
||||
display += '<div class="mr_relay_update_relay"><span class="gradient"><a onclick="checkToDisplayRelayList()" class="button btn exclusive">' + button_change_relay + '</a></div>';
|
||||
|
||||
var newdata = {};
|
||||
newdata.Num = data.ID;
|
||||
newdata.LgAdr1 = data.Nom;
|
||||
newdata.LgAdr2 = '';
|
||||
newdata.LgAdr3 = data.Adresse1;
|
||||
newdata.LgAdr4 = data.Adresse2;
|
||||
newdata.CP = data.CP;
|
||||
newdata.Ville = data.Ville;
|
||||
newdata.Pays = data.Pays;
|
||||
newdata.permaLinkDetail = '';
|
||||
|
||||
var id_carrier = (typeof(PS_MRSelectedRelayPoint['carrier_id']) != undefined) ? PS_MRSelectedRelayPoint['carrier_id'] : 4;
|
||||
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: _PS_MR_MODULE_DIR_ + 'ajax.php',
|
||||
data: {
|
||||
'method' : 'addSelectedCarrierToDB',
|
||||
'relayPointInfo' : newdata,
|
||||
'id_cart' : id_cart,
|
||||
'process_selection' : true,
|
||||
'id_carrier' : id_carrier,
|
||||
'id_mr_method' : PS_MRCarrierMethodList[id_carrier],
|
||||
'mrtoken' : mrtoken
|
||||
},
|
||||
success: function(json)
|
||||
{
|
||||
/*
|
||||
if (PS_MROPC && PS_MRData.PS_VERSION < '1.5')
|
||||
updateCarrierSelectionAndGift();
|
||||
*/
|
||||
PS_MRSelectedRelayPoint['relayPointNum'] = data.ID;
|
||||
|
||||
|
||||
displayPickupPlace(display);
|
||||
},
|
||||
error: function(xhr, ajaxOptions, thrownError)
|
||||
{
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function updateBox() {
|
||||
button = $('<br clear="all"><center><span class="gradient mr_relay_validation"><a href="javascript:$.fancybox.close(); return false;" id="close_fancybox" class="button_large exclusive" onclick="$.fancybox.close(); return false;">'+button_validate+'</a></span></center>');
|
||||
button.appendTo($('#Zone_Widget').parent());
|
||||
|
||||
$("#fancybox-content #close_fancybox").click(
|
||||
function(){
|
||||
$.fancybox.close();
|
||||
}
|
||||
);
|
||||
// avoid gray area in google map
|
||||
try{
|
||||
google.maps.event.trigger(document.getElementById('MRW-Map'), 'resize');
|
||||
}
|
||||
catch(e) {
|
||||
;
|
||||
}
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
|
||||
//loadMR_Map("#Zone_Widget", "24R");
|
||||
|
||||
//setTimeout(function(){
|
||||
$("#link_zone_widget").fancybox(
|
||||
{
|
||||
width : 705,
|
||||
height : 620,
|
||||
autoSize : false,
|
||||
autoScale : false,
|
||||
autoDimensions : false,
|
||||
afterShow : function(){
|
||||
updateBox();
|
||||
},
|
||||
onComplete : function() {
|
||||
updateBox();
|
||||
},
|
||||
onUpdate : function() {
|
||||
$('.fancybox-wrap').css({
|
||||
top:'10%',
|
||||
bottom:'auto'
|
||||
})
|
||||
}
|
||||
});
|
||||
checkToDisplayRelayList();
|
||||
//},1500);
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
{if $smarty.get.no_mr_selected}
|
||||
<p class="mr_warning warning">
|
||||
{l s='You have to select a relay point to use this delivery method.' mod='mondialrelay'}
|
||||
</p>
|
||||
{/if}
|
||||
|
||||
<div class="widget_box" style="display:block;width:0px;height:1px;overflow:hidden;">
|
||||
<a id="link_zone_widget" href="#Zone_Widget"> </a>
|
||||
<div id="Zone_Widget"></div>
|
||||
<div id="selected_point_box">
|
||||
<div style="padding: 10px; overflow: auto">
|
||||
<div style="background: #edffb2; border: solid 1px #a5f913; padding: 5px;font-family:verdana;font-size:10px">
|
||||
{l s='Selected pickup location:' mod='mondialrelay'}
|
||||
<input type="text" id="Retour_Widget" /></br>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
36
modules/mondialrelay/views/templates/index.php
Executable file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2015 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-2015 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;
|
BIN
modules/mondialrelay_old/AdminMondialRelay.gif
Executable file
After Width: | Height: | Size: 800 B |
243
modules/mondialrelay_old/AdminMondialRelay.php
Executable file
@ -0,0 +1,243 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 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-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 9538 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
require_once(dirname(__FILE__).'/classes/MondialRelayClass.php');
|
||||
require_once(dirname(__FILE__).'/classes/MRCreateTickets.php');
|
||||
require_once(dirname(__FILE__).'/mondialrelay.php');
|
||||
|
||||
class AdminMondialRelay extends AdminTab
|
||||
{
|
||||
private $mondialrelay = NULL;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
MondialRelay::initModuleAccess();
|
||||
|
||||
$this->table = 'mr_selected';
|
||||
$this->className = 'MondialRelayClass';
|
||||
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
private function displayOrdersTable()
|
||||
{
|
||||
global $cookie;
|
||||
|
||||
$mondialrelay = new MondialRelay();
|
||||
$order_state = new OrderState((int)(Configuration::get('MONDIAL_RELAY_ORDER_STATE')), $cookie->id_lang);
|
||||
$mr_weight_coef = (int)(Configuration::get('MR_WEIGHT_COEF'));
|
||||
|
||||
$html = '';
|
||||
|
||||
// Simulate a ticket generation
|
||||
$MRCreateTicket = new MRCreateTickets(array(
|
||||
'orderIdList' => NULL,
|
||||
'totalOrder' => NULL,
|
||||
'weightList' => NULL));
|
||||
|
||||
$errorListTicket = $MRCreateTicket->checkPreValidation();
|
||||
|
||||
$titleType = array(
|
||||
'error' => $this->l('Thanks to kindly correct the following errors on ').
|
||||
'<a href="index.php?tab=AdminContact&token='.Tools::getAdminToken('AdminContact'.
|
||||
(int)(Tab::getIdFromClassName('AdminContact')).(int)($cookie->id_employee)).'" style="color:#f00;"> '.
|
||||
$this->l('the contact page').'</a>:<ul>',
|
||||
'warn' => $this->l('Please take a look to this following warning, maybe the ticket won\'t be generated'));
|
||||
|
||||
foreach($errorListTicket as $errorType => $errorList)
|
||||
{
|
||||
if (count($errorList))
|
||||
{
|
||||
$html .= '<div class="MR_'.$errorType.'">'.$titleType[$errorType];
|
||||
foreach($errorList as $type => $error)
|
||||
$html .= '<li>'.$type.': '.$error.'</li>';
|
||||
$html .= '</ul></div>';
|
||||
}
|
||||
}
|
||||
|
||||
$html .= '<p>'.$this->l('All orders which have the state').' "<b>'.$order_state->name.'</b>" '.
|
||||
$this->l('will be available for sticker creation');
|
||||
$html .= '. <a href="index.php?tab=AdminModules&configure=mondialrelay&token='.
|
||||
Tools::getAdminToken('AdminModules'.(int)(Tab::getIdFromClassName('AdminModules')).
|
||||
(int)($cookie->id_employee)).'" class="green">' . $this->l('Change configuration') . '</a></p>
|
||||
<div class="PS_MRErrorList error" id="otherErrors">
|
||||
<img src="'._PS_IMG_.'admin/error2.png" alt="" />
|
||||
<span></span>
|
||||
</div>';
|
||||
|
||||
$orders = MondialRelay::getOrders(array());
|
||||
if (empty($orders))
|
||||
$html.= '<h3 style="color:red;">' . $this->l('No orders with this state.') . '</h3>';
|
||||
else
|
||||
{
|
||||
$html.= '<form method="post" action="'.Tools::safeOutput($_SERVER['REQUEST_URI']).'">';
|
||||
$html.= "\n<table class=\"table\" id='orders'>";
|
||||
$html.= '<tr>';
|
||||
$html.= '<th><input type="checkbox" id="toggleStatusOrderList" /></th>';
|
||||
$html.= '<th>'.$this->l('Order ID').'</th>';
|
||||
$html.= '<th>'.$this->l('Customer').'</th>';
|
||||
$html.= '<th>'.$this->l('Total price').'</th>';
|
||||
$html.= '<th>'.$this->l('Total shipping').'</th>';
|
||||
$html.= '<th>'.$this->l('Date').'</th>';
|
||||
$html.= '<th>'.$this->l('Put a Weight (grams)').'</th>';
|
||||
$html.= '<th>'.$this->l('MR Number').'</th>';
|
||||
$html.= '<th>'.$this->l('MR Country').'</th>';
|
||||
$html.= '<th>'.$this->l('Exp Number').'</th>';
|
||||
$html.= '<th>'.$this->l('Detail').'</th>';
|
||||
$html.= '</tr>';
|
||||
|
||||
foreach ($orders as $order)
|
||||
{
|
||||
if ($order['weight'] == 0)
|
||||
{
|
||||
$result_weight = Db::getInstance()->getRow('
|
||||
SELECT SUM(product_weight * product_quantity) as weight
|
||||
FROM '._DB_PREFIX_.'order_detail
|
||||
WHERE id_order = '.(int)($order['id_order']));
|
||||
$order['weight'] = round($mr_weight_coef * $result_weight['weight']);
|
||||
}
|
||||
|
||||
$html .= '<tr id="PS_MRLineOrderInformation-'.$order['id_order'].'">';
|
||||
$html .= '<td><input type="checkbox" class="order_id_list" name="order_id_list[]" id="order_id_list" value="'.$order['id_order'].'" /></td>';
|
||||
$html .= '<td>'.$order['id_order'].'</td>';
|
||||
$html .= '<td>'.$order['customer'].'</td>';
|
||||
$html .= '<td>'.Tools::displayPrice($order['total'], new Currency($order['id_currency'])) . '</td>';
|
||||
$html .= '<td>'.Tools::displayPrice($order['shipping'], new Currency($order['id_currency'])) . '</td>';
|
||||
$html .= '<td>'.Tools::displayDate($order['date'], $order['id_lang']).'</td>';
|
||||
$html .= '<td><input type="text" name="weight_'.$order['id_order'].'" id="weight_' . $order['id_order'] . '" size="7" value="'.$order['weight'].'" /></td>';
|
||||
$html .= '<td>'.$order['MR_Selected_Num'].'</td>';
|
||||
$html .= '<td>'.$order['MR_Selected_Pays'].'</td>';
|
||||
$html .= '<td>'.$order['exp_number'].'</td>';
|
||||
$html .= '
|
||||
<td class="center">
|
||||
<a href="index.php?tab=AdminOrders&id_order='.$order['id_order'].'&vieworder&token='.Tools::getAdminToken('AdminOrders'.(int)(Tab::getIdFromClassName('AdminOrders')).(int)($cookie->id_employee)).'">
|
||||
<img border="0" title="'.$this->l('View').'" alt="'.$this->l('View').'" src="'._PS_IMG_.'admin/details.gif"/></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="PS_MRErrorList error" id="errorCreatingTicket_'.$order['id_order'].'" style="display:none;">
|
||||
<td colspan="11" style="background:url('._PS_IMG_.'admin/error2.png) 10px 10px no-repeat;">
|
||||
<span></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="PS_MRSuccessList" id="successCreatingTicket_'.$order['id_order'].'" style="display:none;">
|
||||
<td>'.$order['id_order'].'</td>
|
||||
<td colspan="10" style="background:url('._PS_IMG_.'admin/ok2.png) 10px 5px no-repeat #DFFAD3;">
|
||||
'.$this->l('Operation successful').'
|
||||
<span></span>
|
||||
</td>
|
||||
</tr>';
|
||||
}
|
||||
$html .= '
|
||||
</table>';
|
||||
$html .= '
|
||||
<div class="submit_button">
|
||||
<div class="PS_MRSubmitButton" id="PS_MRSubmitButtonGenerateTicket">
|
||||
<input type="button" name="generate" id="generate" value="' . $this->l('Generate') . '" class="button" />
|
||||
</div>
|
||||
<div class="PS_MRLoader" id="PS_MRSubmitGenerateLoader"><img src="'.MondialRelay::$moduleURL.'images/getTickets.gif"</div>
|
||||
</div>';
|
||||
$html .= '</form>';
|
||||
}
|
||||
unset($mondialrelay);
|
||||
unset($order_state);
|
||||
return $html;
|
||||
}
|
||||
|
||||
public function displayhistoriqueForm()
|
||||
{
|
||||
$mondialrelay = new MondialRelay();
|
||||
$_html = '';
|
||||
$query = "SELECT * FROM `" . _DB_PREFIX_ ."mr_historique` ORDER BY `id` DESC ;";
|
||||
$query = Db::getInstance()->ExecuteS($query);
|
||||
|
||||
$_html.= '
|
||||
<fieldset>
|
||||
<legend>' . $this->l('History of labels creation') . '</legend>
|
||||
<div style="overflow-x: auto;overflow-y: scroller; height: 300px; padding-top: 0.6em;" >
|
||||
<form method="post" action="'.Tools::safeOutput($_SERVER['REQUEST_URI']).'">
|
||||
<table class="table" id="PS_MRHistoriqueTableList">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th><input type="checkbox" id="toggleStatusHistoryList" /></th>
|
||||
<th>' . $this->l('Order ID') . '</th>
|
||||
<th>' . $this->l('Exp num') . '</th>
|
||||
<th>' . $this->l('Print stick A4') . '</th>
|
||||
<th>' . $this->l('Print stick A5') . '</th>
|
||||
</tr>';
|
||||
foreach ($query AS $k => $row)
|
||||
{
|
||||
$_html.= '
|
||||
<tr id="detailHistory_'.$row['order'].'">
|
||||
<td>
|
||||
<input type="checkbox" id="PS_MRHistoryId_'.$row['id'].'" class="history_id_list" name="history_id_list[]" value="' . $row['id'] . '" />
|
||||
</td>
|
||||
<td>'.$row['order'].'</td>
|
||||
<td id="expeditionNumber_'.$row['order'].'">'.$row['exp'].'</td>
|
||||
<td id="URLA4_'.$row['order'].'">
|
||||
<a href="'.$row['url_a4'].'" target="a4"><img width="20" src="'.MondialRelay::$moduleURL.'images/pdf_icon.jpg" /></a>
|
||||
</td>
|
||||
<td id="URLA5_'.$row['order'].'">
|
||||
<a href="'.$row['url_a5'].'" target="a5"><img width="20" src="'.MondialRelay::$moduleURL.'images/pdf_icon.jpg" /></a>
|
||||
</td>
|
||||
</tr>';
|
||||
}
|
||||
$_html .= '
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="PS_MRSubmitButton">
|
||||
<input type="button" id="PS_MRSubmitButtonDeleteHistories" name="deleteSelectedHistories" value="' . $this->l('Delete selected history') . '" class="button" />
|
||||
<div class="PS_MRLoader" id="PS_MRSubmitDeleteHistoriesLoader">
|
||||
<img src="'.MondialRelay::$moduleURL.'images/getTickets.gif"
|
||||
</div>
|
||||
</div>
|
||||
</form></div></fieldset>';
|
||||
|
||||
return $_html;
|
||||
}
|
||||
|
||||
public function display()
|
||||
{
|
||||
$html = '';
|
||||
|
||||
// Allow to override the older jquery to use a new one :)
|
||||
// Added for the 1.3 compatibility to keep using the recent code
|
||||
if (_PS_VERSION_ < '1.4')
|
||||
$html .= MondialRelay::getjQueryCompatibility();
|
||||
|
||||
$html .= '
|
||||
<script type="text/javascript" language="javascript">
|
||||
var _PS_MR_MODULE_DIR_ = "'.MondialRelay::$moduleURL.'";
|
||||
</script>';
|
||||
|
||||
$html .= $this->displayOrdersTable();
|
||||
$html .= '<br/><br/>';
|
||||
$html .= $this->displayhistoriqueForm();
|
||||
echo $html;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
135
modules/mondialrelay_old/ajax.php
Executable file
@ -0,0 +1,135 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 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-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 9219 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
/*
|
||||
* File called by ajax. It's like a controler, you have to send the
|
||||
* method name of the webservice and implement it.
|
||||
* Each Name method allow to instanciate an object containing
|
||||
* methods to manage correctly the data and name fields
|
||||
*/
|
||||
|
||||
require_once(realpath(dirname(__FILE__).'/../../config/config.inc.php'));
|
||||
require_once(realpath(dirname(__FILE__).'/../../init.php'));
|
||||
require(dirname(__FILE__).'/mondialrelay.php');
|
||||
require(dirname(__FILE__).'/classes/MRCreateTickets.php');
|
||||
require(dirname(__FILE__).'/classes/MRGetTickets.php');
|
||||
require(dirname(__FILE__).'/classes/MRGetRelayPoint.php');
|
||||
require(dirname(__FILE__).'/classes/MRRelayDetail.php');
|
||||
require(dirname(__FILE__).'/classes/MRManagement.php');
|
||||
|
||||
|
||||
global $cookie, $cart, $customer;
|
||||
|
||||
MondialRelay::initModuleAccess();
|
||||
|
||||
// Access page List liable to the generated token
|
||||
$accessPageList = array(
|
||||
MondialRelay::getToken('front') => array(
|
||||
'MRGetRelayPoint',
|
||||
'addSelectedCarrierToDB'),
|
||||
MondialRelay::getToken('back') => array(
|
||||
'MRGetTickets',
|
||||
'MRCreateTickets',
|
||||
'MRDeleteHistory',
|
||||
'uninstallDetail',
|
||||
'DeleteHistory'));
|
||||
|
||||
$method = Tools::getValue('method');
|
||||
$token = Tools::getValue('mrtoken');
|
||||
$params = array();
|
||||
$result = array();
|
||||
|
||||
// If the method name assoacited to the token received doesn't match with
|
||||
// the list, then we kill the request
|
||||
if (!isset($accessPageList[$token]) || !in_array($method, $accessPageList[$token]))
|
||||
exit();
|
||||
|
||||
// Method name allow to instanciate his object to properly call the
|
||||
// implemented interface method and do his job
|
||||
switch($method)
|
||||
{
|
||||
case 'MRCreateTickets':
|
||||
$params['orderIdList'] = Tools::getValue('order_id_list');
|
||||
$params['totalOrder'] = Tools::getValue('numSelected');
|
||||
$params['weightList'] = Tools::getValue('weight_list');
|
||||
break;
|
||||
case 'MRGetTickets':
|
||||
$params['detailedExpeditionList'] = Tools::getValue('detailedExpeditionList');
|
||||
break;
|
||||
case 'DeleteHistory':
|
||||
$params['historyIdList'] = Tools::getValue('history_id_list');
|
||||
break;
|
||||
case 'uninstallDetail':
|
||||
$params['action'] = Tools::getValue('action');
|
||||
break;
|
||||
case 'MRGetRelayPoint':
|
||||
$params['id_carrier'] = Tools::getValue('id_carrier');
|
||||
$params['weight'] = $cart->getTotalWeight();
|
||||
$params['id_address_delivery'] = $cart->id_address_delivery;
|
||||
break;
|
||||
case 'addSelectedCarrierToDB':
|
||||
$params['id_carrier'] = Tools::getValue('id_carrier');
|
||||
$params['id_cart'] = $cart->id;
|
||||
$params['id_customer'] = $cookie->id_customer;
|
||||
$params['id_mr_method'] = Tools::getValue('id_mr_method');
|
||||
$params['relayPointInfo'] = Tools::getValue('relayPointInfo');
|
||||
break;
|
||||
default:
|
||||
}
|
||||
|
||||
// Try to instanciate the method object name and call the necessaries method
|
||||
try
|
||||
{
|
||||
if (class_exists($method, false))
|
||||
{
|
||||
$obj = new $method($params);
|
||||
|
||||
// Verify that the class implement correctly the interface
|
||||
// Else use a Management class to do some ajax stuff
|
||||
if (($obj instanceof IMondialRelayWSMethod))
|
||||
{
|
||||
$obj->init();
|
||||
$obj->send();
|
||||
$result = $obj->getResult();
|
||||
}
|
||||
unset($obj);
|
||||
}
|
||||
elseif (($management = new MRManagement($params)) &&
|
||||
method_exists($management, $method))
|
||||
$result = $management->{$method}();
|
||||
else
|
||||
throw new Exception('Method Class : '.$method.' can\'t be found');
|
||||
unset($management);
|
||||
}
|
||||
catch(Exception $e)
|
||||
{
|
||||
echo MondialRelay::jsonEncode(array('other' => array('error' => array($e->getMessage()))));
|
||||
exit(-1);
|
||||
}
|
||||
echo MondialRelay::jsonEncode($result);
|
||||
exit(0);
|
||||
?>
|
60
modules/mondialrelay_old/classes/IMondialRelayWSMethod.php
Executable file
@ -0,0 +1,60 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 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-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 6594 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
require_once(dirname(__FILE__).'/../errorCode.php');
|
||||
require_once(realpath(dirname(__FILE__).'/../mondialrelay.php'));
|
||||
require_once(realpath(dirname(__FILE__).'/../lib/nusoap/nusoap.php'));
|
||||
|
||||
/*
|
||||
* This method allow to create any method object to dial more
|
||||
* easyly with the Mondial Reelay WebService
|
||||
*/
|
||||
interface IMondialRelayWSMethod
|
||||
{
|
||||
/*
|
||||
* Initiate the data needed to be send properly
|
||||
* Can manage a list of data for multiple request
|
||||
*/
|
||||
public function init();
|
||||
|
||||
/*
|
||||
* Send one or multiple request to the webservice
|
||||
*/
|
||||
public function send();
|
||||
|
||||
/*
|
||||
* Get the values with associated fields name
|
||||
*/
|
||||
public function getFieldsList();
|
||||
|
||||
/*
|
||||
* Get the result of one or multiple send request
|
||||
*/
|
||||
public function getResult();
|
||||
}
|
||||
|
||||
?>
|
608
modules/mondialrelay_old/classes/MRCreateTickets.php
Executable file
@ -0,0 +1,608 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 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-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 10348 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
/*
|
||||
* Interface
|
||||
*/
|
||||
require_once(dirname(__FILE__).'/IMondialRelayWSMethod.php');
|
||||
|
||||
/*
|
||||
* Allow to create tickets - 'WSI2_CreationEtiquette'
|
||||
*/
|
||||
class MRCreateTickets implements IMondialRelayWSMethod
|
||||
{
|
||||
private $_fields = array(
|
||||
'id_mr_selected' => 0,
|
||||
'list' => array(
|
||||
'Enseigne' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9A-Z]{2}[0-9A-Z ]{6}$#'),
|
||||
'ModeCol' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^(CCC|CDR|CDS|REL)$#'),
|
||||
'ModeLiv' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^(LCC|LD1|LDS|24R|ESP|DRI)$#'),
|
||||
'NDossier' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^(|[0-9A-Z_ -]{0,15})$#'),
|
||||
'NClient' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^(|[0-9A-Z]{0,9})$#'),
|
||||
'Expe_Langage' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[A-Z]{2}$#'),
|
||||
'Expe_Ad1' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9A-Z_\-\'., /]{2,32}$#'),
|
||||
'Expe_Ad2' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9A-Z_\-\'., /]{0,32}$#'),
|
||||
'Expe_Ad3' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9A-Z_\-\'., /]{0,32}$#'),
|
||||
'Expe_Ad4' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9A-Z]{2}[0-9A-Z ]{6}$#'),
|
||||
'Expe_Ville' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[A-Z_\-\' ]{2,26}$#'),
|
||||
'Expe_CP' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'params' => array(),
|
||||
'methodValidation' => 'checkZipcodeByCountry'),
|
||||
'Expe_Pays' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[A-Z]{2}$#'),
|
||||
'Expe_Tel1' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^((00|\+)[1-9]{2}|0)[0-9][0-9]{7,8}$#'),
|
||||
'Expe_Tel2' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^((00|\+)[1-9]{2}|0)[0-9][0-9]{7,8}$#'),
|
||||
'Expe_Mail' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[\w\-\.\@_]{0,70}$#'),
|
||||
'Dest_Langage' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[A-Z]{2}$#'),
|
||||
'Dest_Ad1' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9A-Z_\-\'., /]{2,32}$#'),
|
||||
'Dest_Ad2' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9A-Z_\-\'., /]{2,32}$#'),
|
||||
'Dest_Ad3' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9A-Z_\-\'., /]{2,32}$#'),
|
||||
'Dest_Ad4' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9A-Z_\-\'., /]{0,32}$#'),
|
||||
'Dest_Ville' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[A-Z_\-\' ]{2,26}$#'),
|
||||
'Dest_CP' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'params' => array(),
|
||||
'methodValidation' => 'checkZipcodeByCountry'),
|
||||
'Dest_Pays' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[A-Z]{2}$#'),
|
||||
'Dest_Tel1' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^((00|\+)[1-9]{2}|0)[0-9][0-9]{7,8}$#'),
|
||||
'Dest_Tel2' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^((00|\+)[1-9]{2}|0)[0-9][0-9]{7,8}$#'),
|
||||
'Dest_Mail' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[\w\-\.\@_]{0,70}$#'),
|
||||
'Poids' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9]{3,7}$#'),
|
||||
'Longueur' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9]{0,3}$#'),
|
||||
'Taille' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^(XS|S|M|L|XL|XXL|3XL)$#'),
|
||||
'NbColis' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9]{1,2}$#'),
|
||||
'CRT_Valeur' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9]{1,7}$#'),
|
||||
'CRT_Devise' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^(|EUR)$#'),
|
||||
'Exp_Valeur' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9]{0,7}$#'),
|
||||
'Exp_Devise' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^(|EUR)$#'),
|
||||
'COL_Rel_Pays' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[A-Z]{2}$#'),
|
||||
'COL_Rel' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^(|[0-9]{6})$#'),
|
||||
'LIV_Rel_Pays' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[A-Z]{2}$#'),
|
||||
'LIV_Rel' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^(|[0-9]{6})$#'),
|
||||
'TAvisage' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^(|O|N)$#'),
|
||||
'TReprise' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^(|O|N)$#'),
|
||||
'Montage' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^(|[0-9]{1,3})$#'),
|
||||
'TRDV' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^(|O|N)$#'),
|
||||
'Assurance' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^(|[0-9A-Z]{1})$#'),
|
||||
'Instructions' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9A-Z_\-\'., /]{0,31}#'),
|
||||
'Security' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9A-Z]{32}$#'),
|
||||
'Texte' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^([^<>&\']{3,30})(\(cr\)[^<>&\']{0,30}){0,9}$#')));
|
||||
|
||||
private $_orderListId = NULL;
|
||||
private $_totalOrder = 0;
|
||||
private $_weightList = NULL;
|
||||
private $_mondialRelay = NULL;
|
||||
private $_fieldsList = array();
|
||||
private $_webServiceKey = '';
|
||||
private $_markCode = '';
|
||||
|
||||
private $_resultList = array(
|
||||
'error' => array(),
|
||||
'success' => array());
|
||||
|
||||
private $_webserviceURL = 'http://www.mondialrelay.fr/webservice/Web_Services.asmx?WSDL';
|
||||
|
||||
public function __construct($params)
|
||||
{
|
||||
$this->_orderListId = $params['orderIdList'];
|
||||
$this->_totalOrder = $params['totalOrder'];
|
||||
$this->_weightList = $params['weightList'];
|
||||
$this->_webServiceKey = Configuration::get('MR_KEY_WEBSERVICE');
|
||||
$this->_markCode = Configuration::get('MR_CODE_MARQUE');
|
||||
}
|
||||
|
||||
public function __destruct()
|
||||
{
|
||||
unset($this->_mondialRelay);
|
||||
}
|
||||
|
||||
/*
|
||||
* Build a correct weight format (NNNNN)
|
||||
*/
|
||||
private function _weightFormat($weight)
|
||||
{
|
||||
while (strlen($weight) != 5)
|
||||
$weight = '0'.$weight;
|
||||
return $weight;
|
||||
}
|
||||
|
||||
/*
|
||||
* Set the default value to the order paramaters
|
||||
*/
|
||||
private function _setRequestDefaultValue()
|
||||
{
|
||||
$this->_fields['list']['Enseigne']['value'] = Configuration::get('MR_ENSEIGNE_WEBSERVICE');
|
||||
$this->_fields['list']['Expe_Langage']['value'] = Configuration::get('MR_LANGUAGE');
|
||||
$this->_fields['list']['Expe_Ad1']['value'] = Configuration::get('PS_SHOP_NAME');
|
||||
$this->_fields['list']['Expe_Ad3']['value'] = Configuration::get('PS_SHOP_ADDR1');
|
||||
// Deleted, cause to many failed for the process
|
||||
// $this->_fields['list']['Expe_Ad4']['value'] = Configuration::get('PS_SHOP_ADDR2');
|
||||
$this->_fields['list']['Expe_Ville']['value'] = Configuration::get('PS_SHOP_CITY');
|
||||
$this->_fields['list']['Expe_CP']['value'] = Configuration::get('PS_SHOP_CODE');
|
||||
$this->_fields['list']['Expe_CP']['params']['id_country'] = Configuration::get('PS_COUNTRY_DEFAULT');
|
||||
|
||||
if (_PS_VERSION_ >= '1.4')
|
||||
$this->_fields['list']['Expe_Pays']['value'] = Country::getIsoById(Configuration::get('PS_SHOP_COUNTRY_ID'));
|
||||
else
|
||||
$this->_fields['list']['Expe_Pays']['value'] = substr(Configuration::get('PS_SHOP_COUNTRY'), 0, 2);
|
||||
|
||||
$this->_fields['list']['Expe_Tel1']['value'] = str_replace(array('.', ' ', '-', '_'), '', Configuration::get('PS_SHOP_PHONE'));
|
||||
$this->_fields['list']['Expe_Mail']['value'] = Configuration::get('PS_SHOP_EMAIL');
|
||||
$this->_fields['list']['NbColis']['value'] = 1;
|
||||
$this->_fields['list']['CRT_Valeur']['value'] = 0;
|
||||
$this->_fields['list']['CRT_Devise']['value'] = 'EUR';
|
||||
}
|
||||
|
||||
/*
|
||||
* Initiate the data needed to be send properly
|
||||
* Can manage a list of data for multiple request
|
||||
*/
|
||||
public function init()
|
||||
{
|
||||
$this->_mondialRelay = new MondialRelay();
|
||||
|
||||
if ($this->_totalOrder == 0)
|
||||
throw new Exception($this->_mondialRelay->l('Please select at least one order'));
|
||||
|
||||
$this->_setRequestDefaultValue();
|
||||
if (count($orderListDetails = $this->_mondialRelay->getOrders($this->_orderListId)))
|
||||
{
|
||||
foreach ($orderListDetails as $orderDetail)
|
||||
{
|
||||
// Storage temporary
|
||||
$base = $this->_fields;
|
||||
$tmp = &$base['list'];
|
||||
|
||||
$deliveriesAddress = new Address($orderDetail['id_address_delivery']);
|
||||
$customer = new Customer($orderDetail['id_customer']);
|
||||
|
||||
// Store the weight order set by the user
|
||||
foreach($this->_weightList as $orderWeightInfos)
|
||||
{
|
||||
$detail = explode('-', $orderWeightInfos);
|
||||
if (count($detail) == 2 && $detail[1] == $orderDetail['id_order'])
|
||||
$tmp['Poids']['value'] = $this->_weightFormat($detail[0]);
|
||||
}
|
||||
|
||||
$destIsoCode = Country::getIsoById($deliveriesAddress->id_country);
|
||||
$tmp['ModeCol']['value'] = $orderDetail['mr_ModeCol'];
|
||||
$tmp['ModeLiv']['value'] = $orderDetail['mr_ModeLiv'];
|
||||
$tmp['NDossier']['value'] = $orderDetail['id_order'];
|
||||
$tmp['NClient']['value'] = $orderDetail['id_customer'];
|
||||
$tmp['Dest_Langage']['value'] = 'FR'; //Language::getIsoById($orderDetail['id_lang']);
|
||||
$tmp['Dest_Ad1']['value'] = substr($deliveriesAddress->firstname.' '.$deliveriesAddress->lastname, 0, 32);;
|
||||
$tmp['Dest_Ad2']['value'] = substr($deliveriesAddress->address2, 0, 32);
|
||||
$tmp['Dest_Ad3']['value'] = substr($deliveriesAddress->address1, 0, 32);
|
||||
$tmp['Dest_Ville']['value'] = $deliveriesAddress->city;
|
||||
$tmp['Dest_CP']['value'] = $deliveriesAddress->postcode;
|
||||
$tmp['Dest_CP']['params']['id_country'] = $deliveriesAddress->id_country;
|
||||
$tmp['Dest_Pays']['value'] = $destIsoCode;
|
||||
$tmp['Dest_Tel1']['value'] = str_replace(array('.', ' ', '-', '_'), '', $deliveriesAddress->phone);
|
||||
$tmp['Dest_Tel2']['value'] = str_replace(array('.', ' ', '-', '_'), '', $deliveriesAddress->phone_mobile);
|
||||
$tmp['Dest_Mail']['value'] = $customer->email;
|
||||
$tmp['Assurance']['value'] = $orderDetail['mr_ModeAss'];
|
||||
if ($orderDetail['MR_Selected_Num'] != 'LD1' && $orderDetail['MR_Selected_Num'] != 'LDS')
|
||||
{
|
||||
$tmp['LIV_Rel_Pays']['value'] = $orderDetail['MR_Selected_Pays'];
|
||||
$tmp['LIV_Rel']['value'] = $orderDetail['MR_Selected_Num'];
|
||||
}
|
||||
|
||||
// Store the necessary information to the root case table
|
||||
$base['id_mr_selected'] = $orderDetail['id_mr_selected'];
|
||||
|
||||
// Add the temporary values to a field list for multiple request
|
||||
$this->_fieldsList[] = $base;
|
||||
unset($deliveriesAddress);
|
||||
unset($customer);
|
||||
}
|
||||
$this->_generateMD5SecurityKey();
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Generate the MD5 key for each param list
|
||||
*/
|
||||
private function _generateMD5SecurityKey()
|
||||
{
|
||||
// RootCase is the array case where the main information are stored
|
||||
// it's an array containing id_mr_selected and an array with the necessary fields
|
||||
foreach($this->_fieldsList as &$rootCase)
|
||||
{
|
||||
$concatenationValue = '';
|
||||
foreach($rootCase['list'] as $paramName => &$valueDetailed)
|
||||
if ($paramName != 'Texte' && $paramName != 'Security')
|
||||
{
|
||||
// Mac server make an empty string instead of a cleaned string
|
||||
// TODO : test on windows and linux server
|
||||
$cleanedString = MRTools::replaceAccentedCharacters($valueDetailed['value']);
|
||||
$valueDetailed['value'] = !empty($cleanedString) ? strtoupper($cleanedString) : strtoupper($valueDetailed['value']);
|
||||
|
||||
// Call a pointer function if exist to do different test
|
||||
if (isset($valueDetailed['methodValidation']) &&
|
||||
method_exists('MRTools', $valueDetailed['methodValidation']) &&
|
||||
isset($valueDetailed['params']) &&
|
||||
MRTools::$valueDetailed['methodValidation']($valueDetailed['value'], $valueDetailed['params']))
|
||||
$concatenationValue .= $valueDetailed['value'];
|
||||
// Use simple Regex test given by MondialRelay
|
||||
else if (isset($valueDetailed['regexValidation']) &&
|
||||
preg_match($valueDetailed['regexValidation'], $valueDetailed['value'], $matches))
|
||||
$concatenationValue .= $valueDetailed['value'];
|
||||
// If the key is required, we set an error, else it's skipped
|
||||
else if ((!strlen($valueDetailed['value']) && $valueDetailed['required']) || strlen($valueDetailed['value']))
|
||||
{
|
||||
if (empty($valueDetailed['value']))
|
||||
$error = $this->_mondialRelay->l('This key').' ['.$paramName.'] '.$this->_mondialRelay->l('is empty and need to be filled');
|
||||
else
|
||||
$error = 'This key ['.$paramName.'] hasn\'t a valid value format : '.$valueDetailed['value'];
|
||||
$this->_resultList['error'][$rootCase['list']['NDossier']['value']][] = $error;
|
||||
}
|
||||
}
|
||||
$concatenationValue .= $this->_webServiceKey;
|
||||
$rootCase['list']['Security']['value' ] = strtoupper(md5($concatenationValue));
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Update the tables used and send mail with the order history
|
||||
*/
|
||||
private function _updateTable($params, $expeditionNum, $ticketURL, $trackingURL, $id_mr_selected)
|
||||
{
|
||||
global $cookie;
|
||||
|
||||
Db::getInstance()->Execute('
|
||||
UPDATE `'._DB_PREFIX_.'mr_selected`
|
||||
SET `MR_poids` = \''.pSQL($params['Poids']).'\',
|
||||
`exp_number` = \''.pSQL($expeditionNum).'\',
|
||||
`url_etiquette` = \''.pSQL($ticketURL).'\',
|
||||
`url_suivi` = \''.pSQL($trackingURL).'\'
|
||||
WHERE id_mr_selected = '.(int)$id_mr_selected);
|
||||
|
||||
// NDossier contains the id_order
|
||||
$order = new Order($params['NDossier']);
|
||||
|
||||
// Update the database for order and orderHistory
|
||||
$order->shipping_number = $expeditionNum;
|
||||
$order->update();
|
||||
|
||||
$templateVars = array('{followup}' => $trackingURL);
|
||||
$orderState = (Configuration::get('PS_OS_SHIPPING')) ?
|
||||
Configuration::get('PS_OS_SHIPPING') :
|
||||
_PS_OS_SHIPPING_;
|
||||
|
||||
$history = new OrderHistory();
|
||||
$history->id_order = (int)$params['NDossier'];
|
||||
$history->changeIdOrderState($orderState, (int)$params['NDossier']);
|
||||
$history->id_employee = (int)$cookie->id_employee;
|
||||
$history->addWithemail(true, $templateVars);
|
||||
|
||||
unset($order);
|
||||
unset($history);
|
||||
}
|
||||
|
||||
/*
|
||||
* Manage the return value of the webservice, handle the errors or build the
|
||||
* succeed message
|
||||
*/
|
||||
private function _parseResult($client, $result, $params, $id_mr_selected)
|
||||
{
|
||||
$errors = &$this->_resultList['error'][$params['NDossier']];
|
||||
$success = &$this->_resultList['success'][$params['NDossier']];
|
||||
|
||||
if ($client->fault)
|
||||
$errors[] = $this->_mondialRelay->l('It seems the request isn\'t valid:').
|
||||
$result;
|
||||
|
||||
$result = $result['WSI2_CreationEtiquetteResult'];
|
||||
if (($errorNumber = $result['STAT']) != 0)
|
||||
{
|
||||
$errors[] = $this->_mondialRelay->l('There is an error number : ').$errorNumber;
|
||||
$errors[] = $this->_mondialRelay->l('Details : ').
|
||||
$this->_mondialRelay->getErrorCodeDetail($errorNumber);
|
||||
}
|
||||
else
|
||||
{
|
||||
$baseURL = 'http://www.mondialrelay.fr/';
|
||||
$expedition = $result['ExpeditionNum'];
|
||||
$securityKey = strtoupper(md5('<'.$params['Enseigne'].$this->_markCode.
|
||||
'>'.$expedition.'<'.$this->_webServiceKey.'>'));
|
||||
$ticketURL = $baseURL.$result['URL_Etiquette'];
|
||||
$trackingURL = $baseURL.
|
||||
'lg_fr/espaces/url/popup_exp_details.aspx?cmrq='.$params['Enseigne'].
|
||||
$this->_markCode.'&nexp='.$expedition.'&crc='.$securityKey;
|
||||
|
||||
$success['displayExpedition'] = $this->_mondialRelay->l('Expedition Number : ') . $expedition;
|
||||
$success['displayTicketURL'] = $this->_mondialRelay->l('Ticket URL : ') . $ticketURL;
|
||||
$success['displayTrackingURL'] = $this->_mondialRelay->l('Tracking URL: ') . $trackingURL;
|
||||
$success['expeditionNumber'] = $expedition;
|
||||
|
||||
$this->_updateTable($params, $expedition, $ticketURL, $trackingURL, $id_mr_selected);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Send one or multiple request to the webservice
|
||||
*/
|
||||
public function send()
|
||||
{
|
||||
if ($client = new nusoap_client($this->_webserviceURL, true))
|
||||
{
|
||||
$client->soap_defencoding = 'UTF-8';
|
||||
$client->decode_utf8 = false;
|
||||
|
||||
foreach($this->_fieldsList as $rootCase)
|
||||
{
|
||||
$params = $this->_getSimpleParamArray($rootCase['list']);
|
||||
$result = $client->call(
|
||||
'WSI2_CreationEtiquette',
|
||||
$params,
|
||||
'http://www.mondialrelay.fr/webservice/',
|
||||
'http://www.mondialrelay.fr/webservice/WSI2_CreationEtiquette');
|
||||
|
||||
$this->_parseResult($client, $result, $params, $rootCase['id_mr_selected']);
|
||||
}
|
||||
unset($client);
|
||||
}
|
||||
else
|
||||
throw new Exception($this->_mondialRelay->l('The Mondial Relay webservice isn\'t currently reliable'));
|
||||
}
|
||||
|
||||
/*
|
||||
** Check if the shop parameter are currently well configured
|
||||
*/
|
||||
public function checkPreValidation()
|
||||
{
|
||||
$errorList = array('error' => array(), 'warn' => array());
|
||||
|
||||
if (!$this->_mondialRelay)
|
||||
$this->_mondialRelay = new MondialRelay();
|
||||
|
||||
$list = array(
|
||||
'Expe_Langage' => array(
|
||||
'value' => Configuration::get('MR_LANGUAGE'),
|
||||
'error' => $this->_mondialRelay->l('Please check your language configuration')),
|
||||
'Expe_Ad1' => array(
|
||||
'value' => Configuration::get('PS_SHOP_NAME'),
|
||||
'error' => $this->_mondialRelay->l('Please check your shop name configuration')),
|
||||
'Expe_Ad3' => array(
|
||||
'value' => Configuration::get('PS_SHOP_ADDR1'),
|
||||
'error' => $this->_mondialRelay->l('Please check your address 1 configuration')),
|
||||
'Expe_Ville' => array(
|
||||
'value' => Configuration::get('PS_SHOP_CITY'),
|
||||
'error' => $this->_mondialRelay->l('Please check your city configuration')),
|
||||
'Expe_CP' => array(
|
||||
'value' => Configuration::get('PS_SHOP_CODE'),
|
||||
'error' => $this->_mondialRelay->l('Please check your zipcode configuration'),
|
||||
'warn' => $this->_mondialRelay->l('It seems the layout of your zipcode country is not configured or you didn\'t set a right zipcode')),
|
||||
'Expe_Pays' => array(
|
||||
'value' => ((_PS_VERSION_ >= '1.4') ?
|
||||
Country::getIsoById(Configuration::get('PS_SHOP_COUNTRY_ID')) :
|
||||
substr(Configuration::get('PS_SHOP_COUNTRY'), 0, 2)),
|
||||
'error' => $this->_mondialRelay->l('Please check your country configuration')),
|
||||
'Expe_Tel1' => array(
|
||||
'value' => str_replace(array('.', ' ', '-'), '', Configuration::get('PS_SHOP_PHONE')),
|
||||
'error' => $this->_mondialRelay->l('Please check your Phone configuration')),
|
||||
'Expe_Mail' => array(
|
||||
'value' => Configuration::get('PS_SHOP_EMAIL'),
|
||||
'error' => $this->_mondialRelay->l('Please check your mail configuration')));
|
||||
|
||||
foreach($list as $name => $tab)
|
||||
{
|
||||
// Mac server make an empty string instead of a cleaned string
|
||||
// TODO : test on windows and linux server
|
||||
$cleanedString = MRTools::replaceAccentedCharacters($tab['value']);
|
||||
$tab['value'] = !empty($cleanedString) ? strtoupper($cleanedString) : strtoupper($tab['value']);
|
||||
|
||||
if ($name == 'Expe_CP')
|
||||
{
|
||||
if (!($zipcodeError = MRTools::checkZipcodeByCountry($tab['value'], array(
|
||||
'id_country' => Configuration::get('PS_COUNTRY_DEFAULT')))))
|
||||
$errorList['error'][$name] = $tab['error'];
|
||||
else if ($zipcodeError < 0)
|
||||
$errorList['warn'][$name] = $tab['warn'];
|
||||
}
|
||||
else if (isset($this->_fields['list'][$name]['regexValidation']) &&
|
||||
(!preg_match($this->_fields['list'][$name]['regexValidation'], $tab['value'], $matches)))
|
||||
$errorList['error'][$name] = $tab['error'];
|
||||
}
|
||||
return $errorList;
|
||||
}
|
||||
|
||||
/*
|
||||
* Get the values with associated fields name
|
||||
* @fields : array containing multiple values information
|
||||
*/
|
||||
private function _getSimpleParamArray($fields)
|
||||
{
|
||||
$params = array();
|
||||
|
||||
foreach($fields as $keyName => $valueDetailed)
|
||||
$params[$keyName] = $valueDetailed['value'];
|
||||
return $params;
|
||||
}
|
||||
|
||||
/*
|
||||
* Return the fields list
|
||||
*/
|
||||
public function getFieldsList()
|
||||
{
|
||||
return $this->_fieldsList['list'];
|
||||
}
|
||||
|
||||
/*
|
||||
* Return the result of one or multiple sent requests
|
||||
*/
|
||||
public function getResult()
|
||||
{
|
||||
return $this->_resultList;
|
||||
}
|
||||
|
||||
/*
|
||||
* Return which number order of the list is currently managed
|
||||
*/
|
||||
public static function getCurrentRequestUnderTraitment()
|
||||
{
|
||||
// TODO: Build a SQL Query to know how many request have been executed
|
||||
}
|
||||
}
|
||||
?>
|
297
modules/mondialrelay_old/classes/MRGetRelayPoint.php
Executable file
@ -0,0 +1,297 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 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-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 7086 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
/*
|
||||
* Interface
|
||||
*/
|
||||
require_once(dirname(__FILE__).'/IMondialRelayWSMethod.php');
|
||||
|
||||
/*
|
||||
* Allow to fetch relay point - 'WSI2_RecherchePointRelais'
|
||||
*/
|
||||
class MRGetRelayPoint implements IMondialRelayWSMethod
|
||||
{
|
||||
// Params is required if you use a pointer function
|
||||
private $_fields = array(
|
||||
'list' => array(
|
||||
'Enseigne' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9A-Z]{2}[0-9A-Z ]{6}$#'),
|
||||
'Pays' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[A-Z]{2}$#'),
|
||||
'Ville' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[A-Z_\-\' ]{2,25}$#'),
|
||||
'CP' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'params' => array(),
|
||||
'methodValidation' => 'checkZipcodeByCountry'),
|
||||
'Taille' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^(XS|S|M|L|XL|XXL|3XL)$#'),
|
||||
'Poids' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9]{1,6}$#'),
|
||||
'Action' => array(
|
||||
'required' => false,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^(REL|24R|ESP|DRI)$#'),
|
||||
'Security' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9A-Z]{32}$#')));
|
||||
|
||||
private $_id_address_delivery = 0;
|
||||
private $_weight = 0;
|
||||
private $_webServiceKey = '';
|
||||
private $_mondialRelay = NULL;
|
||||
private $_id_carrier = 0;
|
||||
private $_id_delivery_country = 0;
|
||||
|
||||
private $_resultList = array(
|
||||
'error' => array(),
|
||||
'success' => array());
|
||||
|
||||
private $_webserviceURL = 'http://www.mondialrelay.fr/webservice/Web_Services.asmx?WSDL';
|
||||
|
||||
public function __construct($params)
|
||||
{
|
||||
$this->_id_address_delivery = (int)($params['id_address_delivery']);
|
||||
$this->_id_carrier = (int)($params['id_carrier']);
|
||||
$this->_weight = (float)($params['weight']);
|
||||
$this->_webServiceKey = Configuration::get('MR_KEY_WEBSERVICE');
|
||||
}
|
||||
|
||||
public function __destruct()
|
||||
{
|
||||
unset($this->_mondialRelay);
|
||||
}
|
||||
|
||||
public function init()
|
||||
{
|
||||
$this->_mondialRelay = new MondialRelay();
|
||||
$address = new Address($this->_id_address_delivery);
|
||||
|
||||
if (!$address)
|
||||
throw new Exception($this->_mondialrelay->l('Customer address can\'t be found'));
|
||||
|
||||
$this->_fields['list']['Enseigne']['value'] = Configuration::get('MR_ENSEIGNE_WEBSERVICE');
|
||||
$this->_fields['list']['Poids']['value'] = Configuration::get('MR_WEIGHT_COEF') * $this->_weight;
|
||||
$this->_fields['list']['Pays']['value'] = Country::getIsoById($address->id_country);
|
||||
$this->_fields['list']['Ville']['value'] = $address->city;
|
||||
$this->_fields['list']['CP']['value'] = $address->postcode;
|
||||
$this->_fields['list']['CP']['params']['id_country'] = $address->id_country;
|
||||
|
||||
$this->_generateMD5SecurityKey();
|
||||
unset($address);
|
||||
}
|
||||
|
||||
/*
|
||||
* Generate the MD5 key for each param list
|
||||
*/
|
||||
private function _generateMD5SecurityKey()
|
||||
{
|
||||
$concatenationValue = '';
|
||||
foreach($this->_fields['list'] as $paramName => &$valueDetailed)
|
||||
if ($paramName != 'Texte' && $paramName != 'Security')
|
||||
{
|
||||
// Mac server make an empty string instead of a cleaned string
|
||||
// TODO : test on windows and linux server
|
||||
$cleanedString = MRTools::replaceAccentedCharacters($valueDetailed['value']);
|
||||
$valueDetailed['value'] = !empty($cleanedString) ? strtoupper($cleanedString) : strtoupper($valueDetailed['value']);
|
||||
|
||||
$valueDetailed['value'] = strtoupper($valueDetailed['value']);
|
||||
// Call a pointer function if exist to do different test
|
||||
if (isset($valueDetailed['methodValidation']) &&
|
||||
method_exists('MRTools', $valueDetailed['methodValidation']) &&
|
||||
isset($valueDetailed['params']) &&
|
||||
MRTools::$valueDetailed['methodValidation']($valueDetailed['value'], $valueDetailed['params']))
|
||||
$concatenationValue .= $valueDetailed['value'];
|
||||
// Use simple Regex test given by MondialRelay
|
||||
else if (isset($valueDetailed['regexValidation']) &&
|
||||
preg_match($valueDetailed['regexValidation'], $valueDetailed['value'], $matches))
|
||||
$concatenationValue .= $valueDetailed['value'];
|
||||
// If the key is required, we set an error, else it's skipped
|
||||
else if ((!strlen($valueDetailed['value']) && $valueDetailed['required']) || strlen($valueDetailed['value']))
|
||||
{
|
||||
$error = $this->_mondialRelay->l('This key').' ['.$paramName.'] '.
|
||||
$this->_mondialRelay->l('hasn\'t a valide value format').' : '.$valueDetailed['value'];
|
||||
$this->_resultList['error'][] = $error;
|
||||
}
|
||||
}
|
||||
$concatenationValue .= $this->_webServiceKey;
|
||||
$this->_fields['list']['Security']['value'] = strtoupper(md5($concatenationValue));
|
||||
}
|
||||
|
||||
/*
|
||||
* Get the values with associated fields name
|
||||
* @fields : array containing multiple values information
|
||||
*/
|
||||
private function _getSimpleParamArray($fields)
|
||||
{
|
||||
$params = array();
|
||||
|
||||
foreach($fields as $keyName => $valueDetailed)
|
||||
$params[$keyName] = $valueDetailed['value'];
|
||||
return $params;
|
||||
}
|
||||
|
||||
/*
|
||||
** Get detail information for each relay
|
||||
*/
|
||||
private function _getRelayPointDetails($relayPointList)
|
||||
{
|
||||
$relayPointNumList = array();
|
||||
foreach($relayPointList as $num => $relayPoint)
|
||||
$relayPointNumList[] = $relayPoint['Num'];
|
||||
|
||||
$MRRelayDetail = new MRRelayDetail(array(
|
||||
'relayPointNumList' => $relayPointNumList,
|
||||
'id_address_delivery' => $this->_id_address_delivery));
|
||||
$MRRelayDetail->init();
|
||||
$MRRelayDetail->send();
|
||||
return $MRRelayDetail->getResult();
|
||||
}
|
||||
|
||||
/*
|
||||
** Generate a perman link to view relay detail on their website
|
||||
*/
|
||||
private function _addLinkHoursDetail(&$relayPointList)
|
||||
{
|
||||
$relayPointNumList = array();
|
||||
foreach($relayPointList as $num => $relayPoint)
|
||||
$relayPointNumList[] = $relayPoint['Num'];
|
||||
$permaList = MRRelayDetail::getPermaLink($relayPointNumList, $this->_id_address_delivery);
|
||||
foreach($relayPointList as $num => &$relayPoint)
|
||||
{
|
||||
$relayPoint['permaLinkDetail'] = '';
|
||||
if (array_key_exists($relayPoint['Num'], $permaList))
|
||||
$relayPoint['permaLinkDetail'] = $permaList[$relayPoint['Num']];
|
||||
}
|
||||
return $relayPointList;
|
||||
}
|
||||
|
||||
/*
|
||||
* Manage the return value of the webservice, handle the errors or build the
|
||||
* succeed message
|
||||
*/
|
||||
private function _parseResult($client, $result, $params)
|
||||
{
|
||||
$errors = array();
|
||||
$success = array();
|
||||
|
||||
if ($client->fault)
|
||||
$errors[$errorTotal++] = $this->_mondialRelay->l('It seems the request isn\'t valid:').
|
||||
$result;
|
||||
|
||||
$result = $result['WSI2_RecherchePointRelaisResult'];
|
||||
if (($errorNumber = $result['STAT']) != 0)
|
||||
{
|
||||
$errors[] = $this->_mondialRelay->l('There is an error number : ').$errorNumber;
|
||||
$errors[] = $this->_mondialRelay->l('Details : ').
|
||||
$this->_mondialRelay->getErrorCodeDetail($errorNumber);
|
||||
}
|
||||
else
|
||||
{
|
||||
unset($result['STAT']);
|
||||
|
||||
// Clean Content
|
||||
foreach($result as $num => $relayPoint)
|
||||
{
|
||||
$totalEmptyFields = 0;
|
||||
foreach ($relayPoint as $key => &$value)
|
||||
{
|
||||
$value = trim($value);
|
||||
if (empty($value))
|
||||
++$totalEmptyFields;
|
||||
}
|
||||
if ($totalEmptyFields == count($relayPoint))
|
||||
unset($result[$num]);
|
||||
}
|
||||
if (!count($result))
|
||||
$errors[] = $this->_mondialRelay->l('MondialRelay can\'t find any relay point near your address. Maybe your address isn\'t properly filled ?');
|
||||
else
|
||||
{
|
||||
$this->_addLinkHoursDetail($result);
|
||||
|
||||
// Fetch detail info using webservice (not used anymore)
|
||||
// $this->_generateLinkHoursDetail($result);
|
||||
// $result = (count($relayDetail['success'])) ? $relayDetail['success'] : $result;
|
||||
}
|
||||
$success = $result;
|
||||
}
|
||||
$this->_resultList['error'] = $errors;
|
||||
$this->_resultList['success'] = $success;
|
||||
}
|
||||
|
||||
/*
|
||||
* Send one or multiple request to the webservice
|
||||
*/
|
||||
public function send()
|
||||
{
|
||||
if ($client = new nusoap_client($this->_webserviceURL, true))
|
||||
{
|
||||
$client->soap_defencoding = 'UTF-8';
|
||||
$client->decode_utf8 = false;
|
||||
|
||||
$params = $this->_getSimpleParamArray($this->_fields['list']);
|
||||
$result = $client->call(
|
||||
'WSI2_RecherchePointRelais',
|
||||
$params,
|
||||
'http://www.mondialrelay.fr/webservice/',
|
||||
'http://www.mondialrelay.fr/webservice/WSI2_RecherchePointRelais');
|
||||
|
||||
$this->_parseResult($client, $result, $params);
|
||||
unset($client);
|
||||
}
|
||||
else
|
||||
throw new Exception($this->_mondialRelay->l('The Mondial Relay webservice isn\'t currently reliable'));
|
||||
}
|
||||
|
||||
/*
|
||||
* Get the values with associated fields name
|
||||
*/
|
||||
public function getFieldsList()
|
||||
{
|
||||
return $this->_fieldsList['list'];
|
||||
}
|
||||
|
||||
/*
|
||||
* Get the result of one or multiple send request
|
||||
*/
|
||||
public function getResult()
|
||||
{
|
||||
return $this->_resultList;
|
||||
}
|
||||
}
|
263
modules/mondialrelay_old/classes/MRGetTickets.php
Executable file
@ -0,0 +1,263 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 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-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 8783 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
/*
|
||||
* Interface
|
||||
*/
|
||||
require_once(dirname(__FILE__).'/IMondialRelayWSMethod.php');
|
||||
|
||||
/*
|
||||
* Allow to retrieve tickets - 'WSI2_GetEtiquettes'
|
||||
*/
|
||||
class MRGetTickets implements IMondialRelayWSMethod
|
||||
{
|
||||
private $_fields = array(
|
||||
'list' => array(
|
||||
'Enseigne' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9A-Z]{2}[0-9A-Z ]{6}$#'),
|
||||
'Expeditions' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9]{8}(;[0-9]{8})*$#'),
|
||||
'Langue' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[A-Z]{2}$#'),
|
||||
'Security' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9A-Z]{32}$#')));
|
||||
|
||||
private $_detailedExpeditionList = array();
|
||||
private $_webServiceKey = '';
|
||||
private $_mondialRelay = NULL;
|
||||
|
||||
private $_resultList = array(
|
||||
'error' => array(),
|
||||
'success' => array());
|
||||
|
||||
private $_webserviceURL = 'http://www.mondialrelay.fr/webservice/Web_Services.asmx?WSDL';
|
||||
|
||||
public function __construct($params)
|
||||
{
|
||||
$this->_detailedExpeditionList = $params['detailedExpeditionList'];
|
||||
$this->_webServiceKey = Configuration::get('MR_KEY_WEBSERVICE');
|
||||
}
|
||||
|
||||
public function __destruct()
|
||||
{
|
||||
unset($this->_mondialRelay);
|
||||
}
|
||||
|
||||
public function init()
|
||||
{
|
||||
$this->_mondialRelay = new MondialRelay();
|
||||
|
||||
$this->_fields['list']['Enseigne']['value'] = Configuration::get('MR_ENSEIGNE_WEBSERVICE');
|
||||
$this->_fields['list']['Langue']['value'] = Configuration::get('MR_LANGUAGE');
|
||||
|
||||
foreach ($this->_detailedExpeditionList as $detailedExpedition)
|
||||
{
|
||||
// Storage temporary
|
||||
$base = $this->_fields;
|
||||
$tmp = &$base['list'];
|
||||
|
||||
$tmp['Expeditions']['value'] = $detailedExpedition['expeditionNumber'];
|
||||
$this->_fieldsList[] = $base;
|
||||
}
|
||||
$this->_generateMD5SecurityKey();
|
||||
}
|
||||
|
||||
/*
|
||||
* Generate the MD5 key for each param list
|
||||
*/
|
||||
private function _generateMD5SecurityKey()
|
||||
{
|
||||
// RootCase is the array case where the main information are stored
|
||||
// it's an array containing id_mr_selected and an array with the necessary fields
|
||||
foreach($this->_fieldsList as &$rootCase)
|
||||
{
|
||||
$concatenationValue = '';
|
||||
foreach($rootCase['list'] as $paramName => &$valueDetailed)
|
||||
if ($paramName != 'Texte' && $paramName != 'Security')
|
||||
{
|
||||
$valueDetailed['value'] = strtoupper($valueDetailed['value']);
|
||||
if (preg_match($valueDetailed['regexValidation'], $valueDetailed['value'], $matches))
|
||||
$concatenationValue .= $valueDetailed['value'];
|
||||
elseif ((!strlen($valueDetailed['value']) && $valueDetailed['required']) || strlen($valueDetailed['value']))
|
||||
{
|
||||
$error = $this->_mondialRelay->l('This key').' ['.$paramName.'] '.$this->_mondialRelay->l('hasn\'t a valide value format').' : '.$valueDetailed['value'];
|
||||
$id_order = $this->_getOrderIdWithExpeditionNumber($rootCase['list']['Expeditions']['value']);
|
||||
$this->_resultList['error'][$id_order][] = $error;
|
||||
}
|
||||
}
|
||||
$concatenationValue .= $this->_webServiceKey;
|
||||
$rootCase['list']['Security']['value' ] = strtoupper(md5($concatenationValue));
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Get the values with associated fields name
|
||||
* @fields : array containing multiple values information
|
||||
*/
|
||||
private function _getSimpleParamArray($fields)
|
||||
{
|
||||
$params = array();
|
||||
|
||||
foreach($fields as $keyName => $valueDetailed)
|
||||
$params[$keyName] = $valueDetailed['value'];
|
||||
return $params;
|
||||
}
|
||||
|
||||
/*
|
||||
* Update the history tables
|
||||
*/
|
||||
private function _updateTable($id_order, $expeditionNumber, $URLA4, $URLA5, &$success)
|
||||
{
|
||||
$query = '
|
||||
SELECT id FROM `'._DB_PREFIX_.'mr_historique`
|
||||
WHERE `order`='.(int)$id_order;
|
||||
|
||||
$row = Db::getInstance()->getRow($query);
|
||||
if ($row)
|
||||
{
|
||||
$query = '
|
||||
UPDATE `'._DB_PREFIX_.'mr_historique`
|
||||
SET
|
||||
`exp` = \''.(int)$expeditionNumber.'\',
|
||||
`url_a4` = \''.pSQL((string)$URLA4).'\',
|
||||
`url_a5` = \''.pSQL((string)$URLA5).'\'
|
||||
WHERE `order` = '.(int)$id_order;
|
||||
}
|
||||
else
|
||||
{
|
||||
$query = '
|
||||
INSERT INTO '._DB_PREFIX_.'mr_historique
|
||||
(`order`, `exp`, `url_a4`, `url_a5`)
|
||||
VALUES (
|
||||
'.(int)$id_order.',
|
||||
'.(int)$expeditionNumber.',
|
||||
\''.pSQL((string)$URLA4).'\',
|
||||
\''.pSQL((string)$URLA5).'\')';
|
||||
}
|
||||
Db::getInstance()->Execute($query);
|
||||
$success['id_mr_history'] = isset($row['id']) ? $row['id'] : Db::getInstance()->Insert_ID();
|
||||
}
|
||||
|
||||
/*
|
||||
* Manage the return value of the webservice, handle the errors or build the
|
||||
* succeed message
|
||||
*/
|
||||
private function _parseResult($client, $result, $params)
|
||||
{
|
||||
$errors = array();
|
||||
$success = array();
|
||||
|
||||
$id_order = $this->_getOrderIdWithExpeditionNumber($params['Expeditions']);
|
||||
if ($client->fault)
|
||||
$errors[$errorTotal++] = $this->_mondialRelay->l('It seems the request isn\'t valid:').
|
||||
$result;
|
||||
|
||||
$result = $result['WSI2_GetEtiquettesResult'];
|
||||
if (($errorNumber = $result['STAT']) != 0)
|
||||
{
|
||||
$errors[] = $this->_mondialRelay->l('There is an error number : ').$errorNumber;
|
||||
$errors[] = $this->_mondialRelay->l('Details : ').
|
||||
$this->_mondialRelay->getErrorCodeDetail($errorNumber);
|
||||
}
|
||||
else
|
||||
{
|
||||
$baseURL = 'http://www.mondialrelay.fr';
|
||||
$URLPDF_A4 = $baseURL.$result['URL_PDF_A4'];
|
||||
$URLPDF_A5 = $baseURL.$result['URL_PDF_A5'];
|
||||
|
||||
$success['id_order'] = $id_order;
|
||||
$success['expeditionNumber'] = $params['Expeditions'];
|
||||
$success['URLPDF_A4'] = $URLPDF_A4;
|
||||
$success['URLPDF_A5'] = $URLPDF_A5;
|
||||
$this->_updateTable($id_order, $params['Expeditions'], $URLPDF_A4, $URLPDF_A5, $success);
|
||||
}
|
||||
$this->_resultList['error'][$id_order] = $errors;
|
||||
$this->_resultList['success'][$id_order] = $success;
|
||||
}
|
||||
|
||||
/*
|
||||
* Get the order id using the expedition number
|
||||
*/
|
||||
private function _getOrderIdWithExpeditionNumber($expeditionNumber)
|
||||
{
|
||||
foreach($this->_detailedExpeditionList as $detailedExpedition)
|
||||
if ($detailedExpedition['expeditionNumber'] == $expeditionNumber)
|
||||
return $detailedExpedition['id_order'];
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Send one or multiple request to the webservice
|
||||
*/
|
||||
public function send()
|
||||
{
|
||||
if ($client = new nusoap_client($this->_webserviceURL, true))
|
||||
{
|
||||
$client->soap_defencoding = 'UTF-8';
|
||||
$client->decode_utf8 = false;
|
||||
|
||||
foreach($this->_fieldsList as $rootCase)
|
||||
{
|
||||
$params = $this->_getSimpleParamArray($rootCase['list']);
|
||||
$result = $client->call(
|
||||
'WSI2_GetEtiquettes',
|
||||
$params,
|
||||
'http://www.mondialrelay.fr/webservice/',
|
||||
'http://www.mondialrelay.fr/webservice/WSI2_GetEtiquettes');
|
||||
|
||||
$this->_parseResult($client, $result, $params);
|
||||
}
|
||||
unset($client);
|
||||
}
|
||||
else
|
||||
throw new Exception($this->_mondialRelay->l('The Mondial Relay webservice isn\'t currently reliable'));
|
||||
}
|
||||
|
||||
/*
|
||||
* Get the values with associated fields name
|
||||
*/
|
||||
public function getFieldsList()
|
||||
{
|
||||
return $this->_fieldsList['list'];
|
||||
}
|
||||
|
||||
/*
|
||||
* Get the result of one or multiple send request
|
||||
*/
|
||||
public function getResult()
|
||||
{
|
||||
return $this->_resultList;
|
||||
}
|
||||
}
|
171
modules/mondialrelay_old/classes/MRManagement.php
Executable file
@ -0,0 +1,171 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 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-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 9219 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
require_once(realpath(dirname(__FILE__).'/../mondialrelay.php'));
|
||||
|
||||
class MRManagement extends MondialRelay
|
||||
{
|
||||
private $_params = array();
|
||||
|
||||
private $_resultList = array(
|
||||
'error' => array(),
|
||||
'success' => array());
|
||||
|
||||
public function __construct($params)
|
||||
{
|
||||
$this->_params = $params;
|
||||
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
public function __destruct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
** This method fill the database with the selected carrier
|
||||
*/
|
||||
public function addSelectedCarrierToDB()
|
||||
{
|
||||
$query = 'SELECT `id_mr_selected`
|
||||
FROM `' . _DB_PREFIX_ . 'mr_selected`
|
||||
WHERE `id_cart` = '.(int)$this->_params['id_cart'];
|
||||
|
||||
// Not exist and needed for database
|
||||
unset($this->_params['relayPointInfo']['permaLinkDetail']);
|
||||
|
||||
// Update if Exist else add a new entry
|
||||
if (Db::getInstance()->getRow($query))
|
||||
{
|
||||
$query = 'UPDATE `'._DB_PREFIX_.'mr_selected`
|
||||
SET `id_method` = '.(int)$this->_params['id_mr_method'].', ';
|
||||
if (is_array($this->_params['relayPointInfo']))
|
||||
foreach($this->_params['relayPointInfo'] as $nameKey => $value)
|
||||
$query .= '`MR_Selected_'.MRTools::bqSQL($nameKey).'` = "'.pSQL($value).'", ';
|
||||
else // Clean the existing relay point data
|
||||
$query .= '
|
||||
MR_Selected_Num = NULL,
|
||||
MR_Selected_LgAdr1 = NULL,
|
||||
MR_Selected_LgAdr2 = NULL,
|
||||
MR_Selected_LgAdr3 = NULL,
|
||||
MR_Selected_LgAdr4 = NULL,
|
||||
MR_Selected_CP = NULL,
|
||||
MR_Selected_Pays = NULL,
|
||||
MR_Selected_Ville = NULL, ';
|
||||
$query = rtrim($query, ', ').' WHERE `id_cart` = '.(int)$this->_params['id_cart'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$query = 'INSERT INTO `'._DB_PREFIX_.'mr_selected`
|
||||
(`id_customer`, `id_method`, `id_cart`, ';
|
||||
if (is_array($this->_params['relayPointInfo']))
|
||||
foreach($this->_params['relayPointInfo'] as $nameKey => $value)
|
||||
$query .= '`MR_Selected_'.MRTools::bqSQL($nameKey).'`, ';
|
||||
$query = rtrim($query, ', ').') VALUES (
|
||||
'.(int)$this->_params['id_customer'].',
|
||||
'.(int)$this->_params['id_mr_method'].',
|
||||
'.(int)$this->_params['id_cart'].', ';
|
||||
if (is_array($this->_params['relayPointInfo']))
|
||||
foreach($this->_params['relayPointInfo'] as $nameKey => $value)
|
||||
$query .= '"'.pSQL($value).'", ';
|
||||
$query = rtrim($query, ', ').')';
|
||||
}
|
||||
Db::getInstance()->Execute($query);
|
||||
}
|
||||
|
||||
public function uninstallDetail()
|
||||
{
|
||||
$html = '';
|
||||
|
||||
switch($this->_params['action'])
|
||||
{
|
||||
case 'showFancy':
|
||||
$html .= '
|
||||
<div id="PS_MRAskBackupContent">
|
||||
<h2>'.$this->l('Uninstalling Mondial Relay').'</h2>
|
||||
<div>
|
||||
'.$this->l('You\'re attempt to uninstall the module, do you want to remove the database').' ?
|
||||
<p id="PS_MRUninstallListSelection">
|
||||
<input type="button" id="PS_MR_BackupAction" href="javascript:void(0)" value="'.$this->l('Keep it and uninstall').'"/>
|
||||
<br />
|
||||
<input type="button" id="PS_MR_UninstallAction" href="javascript:void(0)" value="'.$this->l('Remove and uninstall').'" />
|
||||
<br />
|
||||
<input type="button" id="PS_MR_StopUninstall" href="javascript:void(0)" value="'.$this->l('Cancel').'" />
|
||||
<br />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
';
|
||||
$this->_resultList['html'] = $html;
|
||||
break;
|
||||
case 'backupAndUninstall':
|
||||
|
||||
break;
|
||||
default:
|
||||
}
|
||||
return $this->_resultList;
|
||||
}
|
||||
|
||||
public function DeleteHistory()
|
||||
{
|
||||
$success = array();
|
||||
$error = array();
|
||||
|
||||
if (is_array($this->_params['historyIdList']) && count($this->_params['historyIdList']))
|
||||
{
|
||||
$query = '
|
||||
DELETE FROM `'._DB_PREFIX_.'mr_historique`
|
||||
WHERE id IN(';
|
||||
foreach($this->_params['historyIdList'] as $id)
|
||||
$query .= (int)$id.', ';
|
||||
$query = trim($query, ', ').')';
|
||||
|
||||
$success['deletedListId'] = $this->_params['historyIdList'];
|
||||
$totalDeleted = Db::getInstance()->Execute($query);
|
||||
if (count($success['deletedListId']) != $totalDeleted)
|
||||
{
|
||||
$error[] = $this->l('Some items can\'t be removed, please try to remove it again');
|
||||
foreach($success['deletedListId'] as $id)
|
||||
{
|
||||
$query = '
|
||||
SELECT id FROM `'._DB_PREFIX_.'mr_historique`
|
||||
WHERE id='.(int)$id;
|
||||
if (Db::getInstance()->getRow($query) &&
|
||||
($key = array_search($id, $success['deletedListId'])) !== FALSE)
|
||||
unset($success['deletedListId'][$key]);
|
||||
}
|
||||
}
|
||||
$this->_resultList['success'] = $success;
|
||||
$this->_resultList['other']['error'] = $error;
|
||||
}
|
||||
else
|
||||
throw new Exception($this->l('Please select at least one history element'));
|
||||
return $this->_resultList;
|
||||
}
|
||||
}
|
||||
?>
|
274
modules/mondialrelay_old/classes/MRRelayDetail.php
Executable file
@ -0,0 +1,274 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 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-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 8783 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
/*
|
||||
* Interface
|
||||
*/
|
||||
require_once(dirname(__FILE__).'/IMondialRelayWSMethod.php');
|
||||
|
||||
/*
|
||||
* Allow to retrieve relay point details - 'WSI2_DetailPointRelais'
|
||||
*/
|
||||
class MRRelayDetail implements IMondialRelayWSMethod
|
||||
{
|
||||
private $_fields = array(
|
||||
'list' => array(
|
||||
'Enseigne' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9A-Z]{2}[0-9A-Z ]{6}$#'),
|
||||
'Num' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9]{6}$#'),
|
||||
'Pays' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[A-Z]{2}$#'),
|
||||
'Security' => array(
|
||||
'required' => true,
|
||||
'value' => '',
|
||||
'regexValidation' => '#^[0-9A-Z]{32}$#')));
|
||||
|
||||
private $_relayPointNumList = array();
|
||||
private $_id_address_delivery = 0;
|
||||
private $_webServiceKey = '';
|
||||
private $_mondialRelay = NULL;
|
||||
private $_markCode = '';
|
||||
|
||||
private $_resultList = array(
|
||||
'error' => array(),
|
||||
'success' => array());
|
||||
|
||||
private $_webserviceURL = 'http://www.mondialrelay.fr/webservice/Web_Services.asmx?WSDL';
|
||||
|
||||
public function __construct($params)
|
||||
{
|
||||
$this->_relayPointNumList = $params['relayPointNumList'];
|
||||
$this->_id_address_delivery = (int)($params['id_address_delivery']);
|
||||
$this->_webServiceKey = Configuration::get('MR_KEY_WEBSERVICE');
|
||||
$this->_markCode = Configuration::get('MR_CODE_MARQUE');
|
||||
}
|
||||
|
||||
public function __destruct()
|
||||
{
|
||||
unset($this->_mondialRelay);
|
||||
}
|
||||
|
||||
public function init()
|
||||
{
|
||||
$this->_mondialRelay = new MondialRelay();
|
||||
$address = new Address($this->_id_address_delivery);
|
||||
|
||||
if (!$address)
|
||||
throw new Exception($this->_mondialrelay->l('Customer address can\'t be found'));
|
||||
|
||||
$this->_fields['list']['Enseigne']['value'] = Configuration::get('MR_ENSEIGNE_WEBSERVICE');
|
||||
$this->_fields['list']['Pays']['value'] = Country::getIsoById($address->id_country);
|
||||
|
||||
foreach ($this->_relayPointNumList as $num)
|
||||
{
|
||||
// Storage temporary
|
||||
$base = $this->_fields;
|
||||
$tmp = &$base['list'];
|
||||
|
||||
$tmp['Num']['value'] = $num;
|
||||
$this->_fieldsList[] = $base;
|
||||
}
|
||||
$this->_generateMD5SecurityKey();
|
||||
unset($address);
|
||||
}
|
||||
|
||||
/*
|
||||
* Generate the MD5 key for each param list
|
||||
*/
|
||||
private function _generateMD5SecurityKey()
|
||||
{
|
||||
// RootCase is the array case where the main information are stored
|
||||
// it's an array containing id_mr_selected and an array with the necessary fields
|
||||
foreach($this->_fieldsList as &$rootCase)
|
||||
{
|
||||
$concatenationValue = '';
|
||||
foreach($rootCase['list'] as $paramName => &$valueDetailed)
|
||||
if ($paramName != 'Texte' && $paramName != 'Security')
|
||||
{
|
||||
// Mac server make an empty string instead of a cleaned string
|
||||
// TODO : test on windows and linux server
|
||||
$cleanedString = MRTools::replaceAccentedCharacters($valueDetailed['value']);
|
||||
$valueDetailed['value'] = !empty($cleanedString) ? strtoupper($cleanedString) : strtoupper($valueDetailed['value']);
|
||||
|
||||
// Call a pointer function if exist to do different test
|
||||
if (isset($valueDetailed['methodValidation']) &&
|
||||
method_exists('MRTools', $valueDetailed['methodValidation']) &&
|
||||
isset($valueDetailed['params']) &&
|
||||
MRTools::$valueDetailed['methodValidation']($valueDetailed['value'], $valueDetailed['params']))
|
||||
$concatenationValue .= $valueDetailed['value'];
|
||||
// Use simple Regex test given by MondialRelay
|
||||
else if (isset($valueDetailed['regexValidation']) &&
|
||||
preg_match($valueDetailed['regexValidation'], $valueDetailed['value'], $matches))
|
||||
$concatenationValue .= $valueDetailed['value'];
|
||||
// If the key is required, we set an error, else it's skipped
|
||||
else if ((!strlen($valueDetailed['value']) && $valueDetailed['required']) || strlen($valueDetailed['value']))
|
||||
{
|
||||
if (empty($valueDetailed['value']))
|
||||
$error = $this->_mondialRelay->l('This key').' ['.$paramName.'] '.$this->_mondialRelay->l('is empty and need to be filled');
|
||||
else
|
||||
$error = 'This key ['.$paramName.'] hasn\'t a valid value format : '.$valueDetailed['value'];
|
||||
$this->_resultList['error'][$rootCase['list']['Num']['value']] = $error;
|
||||
}
|
||||
}
|
||||
$concatenationValue .= $this->_webServiceKey;
|
||||
$rootCase['list']['Security']['value' ] = strtoupper(md5($concatenationValue));
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Get the values with associated fields name
|
||||
* @fields : array containing multiple values information
|
||||
*/
|
||||
private function _getSimpleParamArray($fields)
|
||||
{
|
||||
$params = array();
|
||||
|
||||
foreach($fields as $keyName => $valueDetailed)
|
||||
$params[$keyName] = $valueDetailed['value'];
|
||||
return $params;
|
||||
}
|
||||
|
||||
/*
|
||||
* Manage the return value of the webservice, handle the errors or build the
|
||||
* succeed message
|
||||
*/
|
||||
private function _parseResult($client, $result, $params)
|
||||
{
|
||||
$errors = array();
|
||||
|
||||
if ($client->fault)
|
||||
$errors[$errorTotal++] = $this->_mondialRelay->l('It seems the request isn\'t valid:').
|
||||
$result;
|
||||
$result = $result['WSI2_DetailPointRelaisResult'];
|
||||
if (($errorNumber = $result['STAT']) != 0)
|
||||
{
|
||||
$errors[] = $this->_mondialRelay->l('There is an error number : ').$errorNumber;
|
||||
$errors[] = $this->_mondialRelay->l('Details : ').
|
||||
$this->_mondialRelay->getErrorCodeDetail($errorNumber);
|
||||
}
|
||||
else
|
||||
{
|
||||
$HDayList = array(
|
||||
'Horaires_Lundi' => $this->_mondialRelay->l('Monday'),
|
||||
'Horaires_Mardi' => $this->_mondialRelay->l('Tuesday'),
|
||||
'Horaires_Mercredi' => $this->_mondialRelay->l('Wednesday'),
|
||||
'Horaires_Jeudi' => $this->_mondialRelay->l('Thursday'),
|
||||
'Horaires_Vendredi' => $this->_mondialRelay->l('Friday'),
|
||||
'Horaires_Samedi' => $this->_mondialRelay->l('Saturday'),
|
||||
'Horaires_Dimanche' => $this->_mondialRelay->l('Sunday'));
|
||||
|
||||
$orderedDate = array();
|
||||
// Format hour properly
|
||||
$priority = 0;
|
||||
foreach($HDayList as $day => $tradDayName)
|
||||
{
|
||||
foreach($result[$day]['string'] as $num => &$value)
|
||||
if ($value == '0000')
|
||||
$value = '';
|
||||
else
|
||||
$value = implode('h', str_split($value, 2));
|
||||
$orderedDate[$priority++] = array('name' => $tradDayName, 'list' => $result[$day]);
|
||||
unset($result[$day]);
|
||||
}
|
||||
$result['orderedDate'] = $orderedDate;
|
||||
$this->_resultList['success'][$result['Num']] = $result;
|
||||
}
|
||||
$this->_resultList['error'][] = $errors;
|
||||
}
|
||||
|
||||
/*
|
||||
* Send one or multiple request to the webservice
|
||||
*/
|
||||
public function send()
|
||||
{
|
||||
if ($client = new nusoap_client($this->_webserviceURL, true))
|
||||
{
|
||||
$client->soap_defencoding = 'UTF-8';
|
||||
$client->decode_utf8 = false;
|
||||
|
||||
foreach($this->_fieldsList as $rootCase)
|
||||
{
|
||||
$params = $this->_getSimpleParamArray($rootCase['list']);
|
||||
$result = $client->call(
|
||||
'WSI2_DetailPointRelais',
|
||||
$params,
|
||||
'http://www.mondialrelay.fr/webservice/',
|
||||
'http://www.mondialrelay.fr/webservice/WSI2_GetEtiquettes');
|
||||
|
||||
$this->_parseResult($client, $result, $params);
|
||||
}
|
||||
unset($client);
|
||||
}
|
||||
else
|
||||
throw new Exception($this->_mondialRelay->l('The Mondial Relay webservice isn\'t currently reliable'));
|
||||
}
|
||||
|
||||
/*
|
||||
** Generate a list of perma link
|
||||
*/
|
||||
static public function getPermaLink($relayList, $id_address_delivery)
|
||||
{
|
||||
if (!($address = new Address($id_address_delivery)))
|
||||
return array();
|
||||
|
||||
$permaList = array();
|
||||
$iso = strtoupper(Country::getIsoById($address->id_country));
|
||||
$ens = strtoupper(Configuration::get('MR_ENSEIGNE_WEBSERVICE').Configuration::get('MR_CODE_MARQUE'));
|
||||
$url = 'http://www.mondialrelay.com/public/permanent/details_relais.aspx?ens='.
|
||||
Configuration::get('MR_ENSEIGNE_WEBSERVICE').Configuration::get('MR_CODE_MARQUE');
|
||||
foreach($relayList as $num => $relayNum)
|
||||
{
|
||||
$crc = strtoupper(MD5('<'.$ens.'>'.$relayNum.$iso.'<'.Configuration::get('MR_KEY_WEBSERVICE').'>'));
|
||||
$permaList[$relayNum] = $url.'&num='.$relayNum.'&pays='.$iso.'&crc='.$crc;
|
||||
}
|
||||
unset($address);
|
||||
return $permaList;
|
||||
}
|
||||
|
||||
/*
|
||||
* Get the values with associated fields name
|
||||
*/
|
||||
public function getFieldsList()
|
||||
{
|
||||
return $this->_fieldsList['list'];
|
||||
}
|
||||
|
||||
/*
|
||||
* Get the result of one or multiple send request
|
||||
*/
|
||||
public function getResult()
|
||||
{
|
||||
return $this->_resultList;
|
||||
}
|
||||
}
|
89
modules/mondialrelay_old/classes/MRTools.php
Executable file
@ -0,0 +1,89 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 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-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 6839 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
/*
|
||||
** Some tools using used in the module
|
||||
*/
|
||||
class MRTools
|
||||
{
|
||||
/*
|
||||
** Replace all accented chars to normal
|
||||
*/
|
||||
static public function replaceAccentedCharacters($string)
|
||||
{
|
||||
if (function_exists('iconv'))
|
||||
{
|
||||
$currentLocale = setlocale(LC_ALL, NULL);
|
||||
setlocale(LC_ALL, 'en_US.UTF8');
|
||||
$cleanedString = iconv('UTF-8','ASCII//TRANSLIT', $string);
|
||||
setLocale(LC_ALL, $currentLocale);
|
||||
}
|
||||
else
|
||||
$cleanedString = strtr($string,
|
||||
'àáâãäçèéêëìíîïñòóôõöùúûüýÿÀÁÂÃÄÇÈÉÊËÌÍÎÏÑÒÓÔÕÖÙÚÛÜÝ',
|
||||
'aaaaaceeeeiiiinooooouuuuyyAAAAACEEEEIIIINOOOOOUUUUY');
|
||||
return $cleanedString;
|
||||
}
|
||||
|
||||
/*
|
||||
** Fix security and compatibility for PS < 1.4.5
|
||||
*/
|
||||
static function bqSQL($string)
|
||||
{
|
||||
return str_replace('`', '\`', pSQL($string));
|
||||
}
|
||||
|
||||
/*
|
||||
** Check zip code by country
|
||||
*/
|
||||
static public function checkZipcodeByCountry($zipcode, $params)
|
||||
{
|
||||
$id_country = $params['id_country'];
|
||||
|
||||
$zipcodeFormat = Db::getInstance()->getValue('
|
||||
SELECT `zip_code_format`
|
||||
FROM `'._DB_PREFIX_.'country`
|
||||
WHERE `id_country` = '.(int)$id_country);
|
||||
|
||||
// -1 to warn user that no layout exist
|
||||
if (!$zipcodeFormat)
|
||||
return -1;
|
||||
|
||||
$regxMask = str_replace(
|
||||
array('N', 'C', 'L'),
|
||||
array(
|
||||
'[0-9]',
|
||||
Country::getIsoById((int)$id_country),
|
||||
'[a-zA-Z]'),
|
||||
$zipcodeFormat);
|
||||
if (preg_match('/'.$regxMask.'/', $zipcode))
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
76
modules/mondialrelay_old/cron.php
Executable file
@ -0,0 +1,76 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 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-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 7835 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
include_once('../../config/config.inc.php');
|
||||
include_once('mondialrelay.php');
|
||||
|
||||
if (Tools::getValue('secure_key') != Configuration::get('MONDIAL_RELAY_SECURE_KEY'))
|
||||
exit;
|
||||
|
||||
$expeditions = Db::getInstance()->ExecuteS('
|
||||
SELECT ms.`exp_number`, ms.`id_cart`, o.`id_order`
|
||||
FROM `'._DB_PREFIX_.'mr_selected` ms
|
||||
LEFT JOIN `'._DB_PREFIX_.'orders` o ON (o.`id_cart` = ms.`id_cart`)
|
||||
WHERE `exp_number` != 0');
|
||||
|
||||
if (empty($expeditions))
|
||||
exit;
|
||||
|
||||
$params = array(
|
||||
'Enseigne' => Configuration::get('MR_ENSEIGNE_WEBSERVICE'),
|
||||
'Langue' => 'FR'
|
||||
);
|
||||
|
||||
require_once(dirname(__FILE__).'/lib/nusoap/lib/nusoap.php');
|
||||
$client_mr = new nusoap_client("http://www.mondialrelay.fr/webservice/Web_Services.asmx?WSDL", true);
|
||||
$client_mr->soap_defencoding = 'UTF-8';
|
||||
$client_mr->decode_utf8 = false;
|
||||
|
||||
foreach ($expeditions as $expedition)
|
||||
{
|
||||
if ($expedition['id_order'] == NULL)
|
||||
continue;
|
||||
if (OrderHistory::getLastOrderState((int)($expedition['id_order']))->id == Configuration::get('PS_OS_DELIVERED'))
|
||||
continue;
|
||||
$params['Expedition'] = $expedition['exp_number'];
|
||||
$params['Security'] = strtoupper(md5($params['Enseigne'].$params['Expedition'].'FR'.Configuration::get('MR_KEY_WEBSERVICE')));
|
||||
|
||||
$is_delivered = 0;
|
||||
$result_mr = $client_mr->call('WSI2_TracingColisDetaille', $params, 'http://www.mondialrelay.fr/webservice/', 'http://www.mondialrelay.fr/webservice/WSI2_TracingColisDetaille');
|
||||
if (isset($result_mr['WSI2_TracingColisDetailleResult']['Tracing']['ret_WSI2_sub_TracingColisDetaille']))
|
||||
foreach ($result_mr['WSI2_TracingColisDetailleResult']['Tracing']['ret_WSI2_sub_TracingColisDetaille'] as $result)
|
||||
if (isset($result['Libelle']) AND $result['Libelle'] == 'COLIS LIVRÉ')
|
||||
$is_delivered = 1;
|
||||
|
||||
if ($is_delivered == 1)
|
||||
{
|
||||
$history = new OrderHistory();
|
||||
$history->id_order = (int)($expedition['id_order']);
|
||||
$history->changeIdOrderState((int)(Configuration::get('PS_OS_DELIVERED')), (int)($expedition['id_order']));
|
||||
$history->addWithemail();
|
||||
}
|
||||
}
|
176
modules/mondialrelay_old/de.php
Executable file
@ -0,0 +1,176 @@
|
||||
<?php
|
||||
|
||||
global $_MODULE;
|
||||
$_MODULE = array();
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_e0626222614bdee31951d84c64e5e9ff'] = 'Auswählen';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_91b442d385b54e1418d81adc34871053'] = 'Ausgewählt';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_ef2a1f426c2c289ed5986c7636a5d696'] = 'Bitte wählen Sie einen Paketstützpunkt';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_80a0c205cd57b22fca7f174253870300'] = 'Öffnungszeiten';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_2b56b60f878922093facd42284848a0c'] = 'Mehr...';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_44585fcd617dce6416d8283b026714c1'] = 'Mondial Relay';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_ed4a3b96dc1f38c160775cac1f7bcd6d'] = 'An Mondial Relay Stützpunkte liefern.';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_70d70ce314f545b7c500a086f147f64b'] = 'Ungültiger Shop';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_709b076565df5fa98cdb2528d897633d'] = 'Ungültiger Mark-Code';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_c86508f5bc6b4456e7003d6a1868689d'] = 'Ungültiger Webservice Schlüssel';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_ea9261a3dad976b40ff2088a19fda2c3'] = 'Ungültige Sprache';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_4eb287cc225ba0e1bcfe9cc1b8315def'] = 'Ungültiger Gewichtskoeffizient';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_f82576de014726e9ef9b4ed2a9eb947b'] = 'Bitte konfigurieren Sie Ihre Mondial Relay-Konto-Einstellungen vor dem Erstellen eines Lieferanten';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_70ff82d47f295f730c6accf07a2948e8'] = 'Ungültiger Versanddienstnamen';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_e1f1787db2fee596f4c3bfaf1d098f8d'] = 'Ungültiger Col-Modus';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_9414b7de379a09941e894d28f19949ae'] = 'Ungültiger Liefermodus';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_5eeb9ca7eee4be7192dd10d917f79a12'] = 'Ungültiger Assurance-Modus';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_8b446ac2013dc7085802de71cc342ead'] = 'Sie müssen mindestens ein Zustellungsland angeben';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_b9a85d87ae6dd77f2107734a4cd0bb15'] = 'Ungültiger Google-Schlüssel';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_979c6094728c14aac1b66d544dc5cebd'] = 'Ungültiger Bestellstatus';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_808fb4e3a637a759565de1d314ea526f'] = 'Die übermittelte Hauptadresse hat ein ungültiges Format';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_c888438d14855d7d96a2724ee9c306bd'] = 'Einstellungen erfolgreich aktualisiert';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_07213a0161f52846ab198be103b5ab43'] = 'Fehler';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_cb5e100e5a9a3e7f6d1fd97512215282'] = 'Fehler';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_350c1cc4343826a89f08a33bb49c6d98'] = 'Mondial Relay Bewertungsmodul konfigurieren';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_5a2355a42ba3ab265701183c914467f2'] = 'Versuchen Sie den Cache und Kompilierung auf AUS zu stellen';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_3de769f9a81eed916583d5b35c58dbdd'] = 'falls Sie mit dem Modul nach einer Aktualisierung Probleme haben sollten';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_8f8b21bd013b38d1e3059557c22a57e7'] = 'Nutzen Sie die folgende Kurzanleitung, um das Mondial Relay Modul zu konfigurieren.';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_d21a9f93917604d5490ad529a7cf1ff9'] = 'So erstellen Sie eine Mondial Relay Lieferanten';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_c6a2e6af5fff47adb3afd780b97d9b4b'] = 'Geben Sie Ihre Mondial Relay-Konto-Einstellungen ein und speichern Sie sie';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_94fbe32464fcfa902feed9f256439833'] = 'Erstellen sie einen Versanddienst mit dem nachstehenden Formular \"Neuen Versanddienst erstellen\"';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_b962d8fb95f5a439f50502152f3bad71'] = 'Definieren Sie einen Preis für Ihren Lieferanten auf';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_faf1247ae6846a9955a466d4f301bbe4'] = 'Der Lieferanten-Seite';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_10d78806b84b97ebc774e9f6277af6ac'] = 'Um Etiketten zu generieren, müssen Sie eine gültige und registrierte Adresse Ihres Shops auf Ihrer';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_af5efea250326c1c34d69aa9364b482c'] = 'Kontakt-Seite haben';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_362dff77f7403550e886db901404856c'] = 'Löschen erfolgreich';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_66661dacf33146201b60dc16520ddd68'] = 'Fügen Sie eine Versandart hinzu';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_b651efdb98a5d6bd2b3935d0c3f4a5e2'] = 'Erforderlich';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_531e144cc23ef08408b81cb4d9c641dc'] = 'Lieferantenname';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_c9b415ea1576b19d10d42b332798cd16'] = 'Sammel-Modus';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_d24262afca47ba80b691c878243441e8'] = 'Sammeln im Shop';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_201bdb87f8e278b943d07ae924d5de6e'] = 'Liefer-Modus';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_142ef02888af88b8b772335277d1c0c8'] = 'Lieferung an einen Abholpunkt';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_eeab8b7cf3c7a558a0e8a4050fa994ca'] = 'Colis Drive Lieferung';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_8f7794b107749728c3333ef38d2687e8'] = 'Hauslieferung RDC (1 Person)';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_e451efc8ce05b96b214b4c2935f2c657'] = 'Besondere Hauslieferung (2 Personen)';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_eaff1bdf24fcffe0e14e29a1bff51a12'] = 'Versicherung';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_96ba408f20bc3e065f400c650d32fd1a'] = 'Keine Versicherung';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_e5a8fafb1dfb538c172e1e014e86b871'] = 'Zusatzversicherung Lv1';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_b02f8d6d4b6217cca317161c87f64065'] = 'Zusatzversicherung Lv2';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_90b95ae88150c6a34c4129dc4f1ebbd5'] = 'Zusatzversicherung Lv3';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_c15b40b8c535191f6f0b6f9beaced3cf'] = 'Zusatzversicherung LV4';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_b67a442fff3ca0a03ea253b0668f946d'] = 'Zusatzversicherung Lv5';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_33cbd0d8b6476501f55a8320481ec0f1'] = 'Zustellländer:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_aef71ba4fd060dea2e2c76d1b5076caf'] = 'Halten Sie die die STRG-Taste gedrückt, um mehrere Länder zu wählen';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_0309a6c666a7a803fdb9db95de71cf01'] = 'Frankreich';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_6c1674d14bf5f95742f572cddb0641a7'] = 'Belgien';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_06630c890abadde9228ea818ce52b621'] = 'Luxemburg';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_907eba32d950bfab68227fd7ea22999b'] = 'Spanien';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_0c24ec05a02c710cedd400e3680d8b81'] = 'Versandart-Liste';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_14039af96b01e718a9c9d9c1259b6472'] = 'Keine Versandmethoden erstellt';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_8596361cec00f8d2438d264827eee737'] = 'Versand konfigurieren';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_9ffc3ccc968a96d902af963c6d7b4e97'] = 'Erweiterte Einstellungen';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_1d1d57f5840e1da871622295ba206b30'] = 'Klicken um Optionen anzuzeigen oder zu verbergen';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_fcf5b2122da1d5a5f5c7253b96a3f9d9'] = 'URL Cron Task:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_759e1f68a70bbe8c48eb30fa4b512de8'] = 'Sei haben Mondialrelay nicht durch die Installationsmethode aktualisiert. Führen Sie bitte folgende Einstellungen manuell durch, damit der Ticket-Prozess reibungslos funktioniert';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_bbd9bc77f1f5b6a9edce6db062b607c9'] = 'Dieser Teil erlaubt Ihnen die Daten zwischenzuspeichern, nachdem Sie ein MondialRelay Ticket generiert haben. Einige Felder sind in der Länge und nur auf Buchstaben beschränkt.';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_9127fe218b2cac7f0c8aecd7016a891d'] = 'Shopname';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_7e9bbecd32836500b557db33c3b3e93b'] = 'Der veon Mondialrelay genutzte Schlüssel lautet';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_32963eea43914b6a418fb2fd9850beb9'] = 'und hat folgenden Standard-Wert';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_c9cc8cce247e49bae79f15173ce97354'] = 'Speichern';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_f4f70727dc34561dfde1a3c529b6205c'] = 'Einstellungen';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_d02bbc3cb147c272b0445ac5ca7d1a36'] = 'Bestellstatus';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_818f954f4838ecad839c5dcbd287d291'] = 'Wählen Sie den Bestellstatus für Marken. Sie können die Marken auf';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_5117e194c641ad4fc55417b554aead3c'] = 'der Mondial Relay Verwaltungsseite verwalten';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_1ba3935c9858ffb8e19a35ca640b8505'] = 'Mondial Relay Kontoeinstellungen';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_a125105400f6e4ee4574da3793af5ef2'] = 'Diese Parameter werden Ihnen von Mondialrelay mitgeteilt, sobald Sie den Dienst abonniert haben';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_12a3fbd35c1cab4b1101b91d708efd15'] = 'mr_marke_WebService:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_6f0434b67007b555dfd1201f4e0d5254'] = 'mr_code_marke:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_08f785193c96b2a78dec8d76a46648d6'] = 'mr_Schlüssel_WebService:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_0dae2d7c71f2daaedb00191af25dc28d'] = 'mr_Sprache:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_a26329cba9723551cb8654deba32872b'] = 'mr_Gewicht_koef:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_99244b234ec089eca40ff9e8ec343e87'] = 'Gramm = 1';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_61cbc2d26b4157292673c772ddd6c0f7'] = 'Einstellungen aktualisieren';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_2673bca5ba0a7871770e69c962e6ce38'] = 'Nb Versand:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_0dbe844fb964d5eca2f51be724e43294'] = 'Label URL';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_c6aefd5e2191e1210a2f50416812b517'] = 'Follow-up-URL';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_61e70b58e38fd01daa254f44c4fa264b'] = 'Nb Abholpunkt:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mondialrelay_bba366864d25056c941b72f18ef79e7c'] = 'Dieser Fehler ist nicht bekannt :';
|
||||
$_MODULE['<{mondialrelay}prestashop>orderdetail_81b7b4587a2a3ea7a0d6bb1df3fbba54'] = 'Lieferung nach';
|
||||
$_MODULE['<{mondialrelay}prestashop>orderdetail_c2d05abc7f5ebdc72b6656df35038b43'] = 'Meine Sendung auf der Mondial Relay Webseite verfolgen';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_a1c3470a944b9625cfb924fd15c8bdbf'] = 'Bitte mindestens eine Bestellung auswählen';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_dc41aac14af17f1d19fca5e3b9439e74'] = 'Dieser Schlüssel';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_306b346c19017609403424203ea3d720'] = 'ist leer und muss angegeben werden';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_e6940b76f045c8bc0aaaa5b2476cdaf7'] = 'Die Anfrage scheint ungültig zu sein';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_c9b4de92f371ae545ad6f051c07d58ca'] = 'Fehler Nummer:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_ea5f761be4e4888eabf4e1501d7817d1'] = 'Detail:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_eabb11bf9623f08409a0a4c9d035a336'] = 'Versand-Nummer:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_b92c3d3319314513c547675924ceecd1'] = 'Ticket URL : ';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_66b793b6b4125e300717e8cf7449f533'] = 'Tracking URL: ';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_2653c23b8c0daac59571e4be5e8fa7d0'] = 'Der Webservice von Mondial Relay ist zu r Zeit nicht erreichbar';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_26b6b6eaec970108c5e84286159fbf48'] = 'Bitte prüfen Sie Ihre Spracheinstellungen';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_557595c2e17c9948a9448eb763ac1a88'] = 'Bitte prüfen Sie Ihre Namenseinstellungen';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_017ca6b770ad53669a4eec82894dfcd3'] = 'Bitte prüfen Sie Ihre Adresseneinstellungen';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_3f79e1fc66b4f9cca7bd68cab176020d'] = 'Bitte prüfen Sie Ihre Städteeinstellungen';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_404665d9b65239985d59b30b3dcb26b5'] = 'Bitte prüfen Sie Ihre PLZ-Einstellungen';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_74cb73eddbe6eaf556023f943fc7e1fd'] = 'Das Format Ihrer PLZ entspricht nicht dem Länderformat oder Sie haben keine entsprechende PLZ angegeben.';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_0b8a30478b9572b86718989d483fd88d'] = 'Bitte prüfen Sie Ihre Ländereinstellungen';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_7ddf2d94bf037b7d1088c0600ea589c3'] = 'Bitte prüfen Sie Ihre Telefonnummer-Einstellungen';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrcreatetickets_9c7ce7be9a2c593b24d448edb4f804e0'] = 'Bitte prüfen Sie Ihre Maileinstellungen';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_14288d48d107056c1acf8aaae1bf282b'] = 'Kudenadresse nicht gefunden';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_dc41aac14af17f1d19fca5e3b9439e74'] = 'Der Schlüssel';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_135a7b9a62531e066a95093d8951b344'] = 'hat kein gültiges Datenformat';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_e6940b76f045c8bc0aaaa5b2476cdaf7'] = 'Die Anfrage ist ungültig:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_c9b4de92f371ae545ad6f051c07d58ca'] = 'Fehler: ';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_ea5f761be4e4888eabf4e1501d7817d1'] = 'Details:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_4e274658c9e97c2a336dde79dd0a7772'] = 'Mondial Relay kann in Ihrer Nähe leider keinen Stützpunkt finden. Haben Sie Ihre Adresse korrekt angegeben ?';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgetrelaypoint_2653c23b8c0daac59571e4be5e8fa7d0'] = 'Mondial Relay Seite ist im Moment nicht verfügbar.';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgettickets_dc41aac14af17f1d19fca5e3b9439e74'] = 'Der Schlüssel';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgettickets_135a7b9a62531e066a95093d8951b344'] = 'hat kein gültiges Datenformat';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgettickets_e6940b76f045c8bc0aaaa5b2476cdaf7'] = 'Die Anfrage ist ungültig:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgettickets_c9b4de92f371ae545ad6f051c07d58ca'] = 'Fehler:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgettickets_ea5f761be4e4888eabf4e1501d7817d1'] = 'Details: ';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrgettickets_2653c23b8c0daac59571e4be5e8fa7d0'] = 'Der Webservice von Mondial Relay ist zu r Zeit nicht erreichbar';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrmanagement_38b4abe2f5860f034e315f2da648a3d6'] = 'Mondial Relay Uninstall';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrmanagement_77bad09c976ec16f38381dc220139367'] = 'Sie versuchen das Modul zu deinstallieren, alle Datenbankeinträge werden ebenso entfernt';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrmanagement_09c081633d484a62a2f6940c12a0de36'] = 'Daten belassen und deinstallieren';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrmanagement_0b7f47fce1d82d53244771c64b1535c0'] = 'Deaktivieren (alle Daten löschen) und deinstallieren';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrmanagement_ea4788705e6873b424c65e91c2846b19'] = 'stornieren';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrmanagement_a42bb0eaa485682166770a54469385f6'] = 'Einige Einträge konnten nicht entfernt werden, bitte versuchen Sie es noch einmal.';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrmanagement_11744bfebb33e52be37a66a530b7045d'] = 'Bitte wählen Sie mindestens ein Verlaufselement aus';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_14288d48d107056c1acf8aaae1bf282b'] = 'Kundenadresse konnte nicht gefunden werden';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_dc41aac14af17f1d19fca5e3b9439e74'] = 'Dieser Schlüssel';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_306b346c19017609403424203ea3d720'] = 'ist leer und muss angegeben werden';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_e6940b76f045c8bc0aaaa5b2476cdaf7'] = 'Die Anfrage ist ungültig:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_c9b4de92f371ae545ad6f051c07d58ca'] = 'Es ist ein Fehler in der Nummer vorhanden:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_ea5f761be4e4888eabf4e1501d7817d1'] = 'Details:';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_6f8522e0610541f1ef215a22ffa66ff6'] = 'Montag';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_5792315f09a5d54fb7e3d066672b507f'] = 'Dienstag';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_796c163589f295373e171842f37265d5'] = 'Mittwoch';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_78ae6f0cd191d25147e252dc54768238'] = 'Donnerstag';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_c33b138a163847cdb6caeeb7c9a126b4'] = 'Freitag';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_8b7051187b9191cdcdae6ed5a10e5adc'] = 'Samstag';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_9d1a0949c39e66a0cd65240bc0ac9177'] = 'Sonntag';
|
||||
$_MODULE['<{mondialrelay}prestashop>mrrelaydetail_2653c23b8c0daac59571e4be5e8fa7d0'] = 'Modial Relay Webservice ist im Moment nicht verfügbar.';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_d1908b9b04e81c4b6112e38b608c49af'] = 'Sie haben den Fehler korrigiert. Besten Dank.';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_ccce63109db30895153094de05c60fa5'] = 'Kontaktseite';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_7c5fd3d93bd19d81953db3b374997961'] = 'Bitte überprüfen Sie diese Warnung, es kann sein dass die Generierung Ihres Tickets deshalb fehlschlägt';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_de21dc13e1ea638777fbfad49f88b332'] = 'Alle Bestellugen, die den Status haben';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_a0bf3c9ac2d785f053d883b8746e91ba'] = 'wird für die Erstellung Ihres Aufklebers verfügbar sein';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_2345e28c9b93f368968be4781ed70f5c'] = 'Konfiguration ändern';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_37c85a61df6352af7285c307022c4413'] = 'Keine Bestelungen mit diesem Status';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_d79cf3f429596f77db95c65074663a54'] = 'Bestell ID';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_ce26601dac0dea138b7295f02b7620a7'] = 'Kunde';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_0eede552438475bdfe820c13f24c9399'] = 'Gesamtpreis';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_f4e8b53a114e5a17d051ab84d326cae5'] = 'Versandkosten Gesamt';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_44749712dbec183e983dcd78a7736c41'] = 'Datum';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_3715c824cbc0f966c61a72254f248a2e'] = 'Gewicht (Gramm)';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_6ccc0fdff9995e1a0fce00c99e5b6085'] = 'MR Nummer';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_f9c50cba4de9032d7a6797a2458f8ed9'] = 'MR Land';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_428c091372d840900cf8536519fa0056'] = 'Exp Nummer';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_a254c25adc7d10d7e9c4889484f875a5'] = 'Detail';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_4351cfebe4b61d8aa5efa1d020710005'] = 'Ansicht';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_2e01172e31495f41fcebcf3f831cc82c'] = 'Erfolgreich abgeschlossen';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_32b919d18cfaca89383f6000dcc9c031'] = 'generieren';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_4f1a377c20ace646ddd303ad1e1d243d'] = 'Aufkleber Verlauf';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_e1a98101d56e29eeea312a0eb2748a92'] = 'Exp Nr.';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_aab39f783ba2e72eaad1770f4d9ad0c4'] = 'A4 Aufkleber drucken';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_3eb2bc1ee46258d2a166e89398756b3e'] = 'A5 Aufkleber drucken';
|
||||
$_MODULE['<{mondialrelay}prestashop>adminmondialrelay_fa98e6528c9df7f26978c2beb7de3d99'] = 'Verlauf löschen';
|
||||
|
||||
?>
|
BIN
modules/mondialrelay_old/docs/install.pdf
Executable file
79
modules/mondialrelay_old/errorCode.php
Executable file
@ -0,0 +1,79 @@
|
||||
<?php
|
||||
|
||||
global $statCode;
|
||||
|
||||
$statCode = array(
|
||||
'1' => 'Enseigne invalide',
|
||||
'2' => 'Numéro d\'enseigne vide ou inexistant',
|
||||
'3' => 'Numéro de compte enseigne invalide',
|
||||
'5' => 'Numéro de dossier enseigne invalide',
|
||||
'7' => 'Numéro de client enseigne invalide',
|
||||
'9' => 'Nom de ville non reconnu ou non unique',
|
||||
'10' => 'Type de collecte invalide ou incorrect (1/D > Domicile -- 3/R > Relais)',
|
||||
'11' => 'Numéro de Point Relais de collecte invalide',
|
||||
'12' => 'Pays du Point Relais de collecte invalide',
|
||||
'13' => 'Type de livraison invalide ou incorrect (1/D > Domicile -- 3/R > Relais)',
|
||||
'14' => 'Numéro du Point Relais de livraison invalide',
|
||||
'15' => 'Pays du Point Relais de livraison invalide',
|
||||
'16' => 'Code pays invalide',
|
||||
'17' => 'Adresse invalide',
|
||||
'18' => 'Ville invalide',
|
||||
'19' => 'Code postal invalide',
|
||||
'20' => 'Poids du colis invalide',
|
||||
'21' => 'Taille (Longueur + Hauteur) du colis invalide',
|
||||
'22' => 'Taille du Colis invalide',
|
||||
'24' => 'Numéro de Colis Mondial Relay invalide',
|
||||
'29' => 'Mode de livraison invalide',
|
||||
'30' => 'Adresse (L1) de l\'expéditeur invalide',
|
||||
'31' => 'Adresse (L2) de l\'expéditeur invalide',
|
||||
'33' => 'Adresse (L3) de l\'expéditeur invalide',
|
||||
'34' => 'Adresse (L4) de l\'expéditeur invalide',
|
||||
'35' => 'Ville de l\'expéditeur invalide',
|
||||
'36' => 'Code postal de l\'expéditeur invalide',
|
||||
'37' => 'Pays de l\'expéditeur invalide',
|
||||
'38' => 'Numéro de téléphone de l\'expéditeur invalide',
|
||||
'39' => 'Adresse e-mail de l\'expéditeur invalide',
|
||||
'40' => 'Action impossible sans ville ni code postal',
|
||||
'41' => 'Mode de livraison invalide',
|
||||
'42' => 'Montant CRT invalide',
|
||||
'43' => 'Devise CRT invalide',
|
||||
'44' => 'Valeur du colis invalide',
|
||||
'45' => 'Devise de la valeur du colis invalide',
|
||||
'46' => 'Plage de numéro d\'expédition épuisée',
|
||||
'47' => 'Nombre de colis invalide',
|
||||
'48' => 'Multi-colis en Point Relais Interdit',
|
||||
'49' => 'Mode de collecte ou de livraison invalide',
|
||||
'50' => 'Adresse (L1) du destinataire invalide',
|
||||
'51' => 'Adresse (L2) du destinataire invalide',
|
||||
'53' => 'Adresse (L3) du destinataire invalide',
|
||||
'54' => 'Adresse (L4) du destinataire invalide',
|
||||
'55' => 'Ville du destinataire invalide',
|
||||
'56' => 'Code postal du destinataire invalide',
|
||||
'57' => 'Pays du destinataire invalide',
|
||||
'58' => 'Numéro de téléphone du destinataire invalide',
|
||||
'59' => 'Adresse e-mail du destinataire invalide',
|
||||
'60' => 'Champ texte libre invalide',
|
||||
'61' => 'Top avisage invalide',
|
||||
'62' => 'Instruction de livraison invalide',
|
||||
'63' => 'Assurance invalide ou incorrecte',
|
||||
'64' => 'Temps de montage invalide',
|
||||
'65' => 'Top rendez-vous invalide',
|
||||
'66' => 'Top reprise invalide',
|
||||
'70' => 'Numéro de Point Relais invalide',
|
||||
'72' => 'Langue expéditeur invalide',
|
||||
'73' => 'Langue destinataire invalide',
|
||||
'74' => 'Langue invalide',
|
||||
'80' => 'Code tracing : Colis enregistré',
|
||||
'81' => 'Code tracing : Colis en traitement chez Mondial Relay',
|
||||
'82' => 'Code tracing : Colis livré',
|
||||
'83' => 'Code tracing : Anomalie',
|
||||
'90' => 'AS400 indisponible',
|
||||
'91' => 'Numéro d\'expédition invalide',
|
||||
'94' => 'Colis Inexistant',
|
||||
'95' => 'Compte Enseigne non activé',
|
||||
'96' => 'Type d\'enseigne incorrect en Base',
|
||||
'97' => 'Clé de sécurité invalide',
|
||||
'98' => 'Service Indisponible',
|
||||
'99' => 'Erreur générique du service. Cette erreur peut être dû autant à un problème technique du service qu\'à des données incorrectes ou inexistantes dans la Base de Données. Lorsque vous avez cette erreur veuillez la notifier à Mondial Relay en précisant la date et l\'heure de la connexion ainsi que les informations envoyés au WebService afin d\'effectuer une vérification.');
|
||||
|
||||
?>
|
BIN
modules/mondialrelay_old/images/getTickets.gif
Executable file
After Width: | Height: | Size: 1.8 KiB |