// Merge -> revision 8952
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8957 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -63,7 +63,7 @@ class MRManagement extends MondialRelay
|
||||
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_'.$nameKey.'` = "'.$value.'", ';
|
||||
$query .= '`MR_Selected_'.pSQL($nameKey).'` = "'.pSQL($value).'", ';
|
||||
else // Clean the existing relay point data
|
||||
$query .= '
|
||||
MR_Selected_Num = NULL,
|
||||
@@ -82,14 +82,14 @@ class MRManagement extends MondialRelay
|
||||
(`id_customer`, `id_method`, `id_cart`, ';
|
||||
if (is_array($this->_params['relayPointInfo']))
|
||||
foreach($this->_params['relayPointInfo'] as $nameKey => $value)
|
||||
$query .= '`MR_Selected_'.$nameKey.'`, ';
|
||||
$query .= '`MR_Selected_'.pSQL($nameKey).'`, ';
|
||||
$query = rtrim($query, ', ').') VALUES (
|
||||
'.$this->_params['id_customer'].',
|
||||
'.$this->_params['id_mr_method'].',
|
||||
'.$this->_params['id_cart'].', ';
|
||||
if (is_array($this->_params['relayPointInfo']))
|
||||
foreach($this->_params['relayPointInfo'] as $nameKey => $value)
|
||||
$query .= '"'.$value.'", ';
|
||||
$query .= '"'.pSQL($value).'", ';
|
||||
$query = rtrim($query, ', ').')';
|
||||
}
|
||||
Db::getInstance()->Execute($query);
|
||||
|
||||
@@ -922,12 +922,14 @@ class MondialRelay extends Module
|
||||
<fieldset class="PS_MRFormStyle">
|
||||
<legend>
|
||||
<img src="../modules/mondialrelay/images/logo.gif" />'.$this->l('Advanced Settings'). ' -
|
||||
<a href="javascript:void(0);" id="PS_MRDisplayPersonalizedOptions"><font style="color:#00b511;">'.$this->l('Click to display / hide the options').'</font> </a>'.
|
||||
<a href="javascript:void(0);" id="PS_MRDisplayPersonalizedOptions">
|
||||
<font style="color:#00b511;">'.$this->l('Click to display / hide the options').'</font>
|
||||
</a>'.
|
||||
'</legend>
|
||||
<div id="PS_MRAdvancedSettings">
|
||||
<p>
|
||||
'.$this->l('URL Cron Task:').' '.Tools::getHttpHost(true, true)
|
||||
._MODULE_DIR_.$this->name.'/cron.php?secure_key='.
|
||||
<p>'.
|
||||
$this->l('URL Cron Task:').' '.Tools::getHttpHost(true, true).
|
||||
_MODULE_DIR_.$this->name.'/cron.php?secure_key='.
|
||||
Configuration::get('MONDIAL_RELAY_SECURE_KEY').
|
||||
'</p>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user