[-] MO : #PSFV-236 - Fixed little problem with form vars named "ajax"
This commit is contained in:
1 parent
5d11751381
commit
cf7c2db379
1 file changed
+3
-3
@@ -108,7 +108,7 @@ class BlockCart extends Module
|
|||||||
$output = '<h2>'.$this->displayName.'</h2>';
|
$output = '<h2>'.$this->displayName.'</h2>';
|
||||||
if (Tools::isSubmit('submitBlockCart'))
|
if (Tools::isSubmit('submitBlockCart'))
|
||||||
{
|
{
|
||||||
$ajax = Tools::getValue('ajax');
|
$ajax = Tools::getValue('cart_ajax');
|
||||||
if ($ajax != 0 AND $ajax != 1)
|
if ($ajax != 0 AND $ajax != 1)
|
||||||
$output .= '<div class="alert error">'.$this->l('Ajax : Invalid choice.').'</div>';
|
$output .= '<div class="alert error">'.$this->l('Ajax : Invalid choice.').'</div>';
|
||||||
else
|
else
|
||||||
@@ -129,9 +129,9 @@ class BlockCart extends Module
|
|||||||
|
|
||||||
<label>'.$this->l('Ajax cart').'</label>
|
<label>'.$this->l('Ajax cart').'</label>
|
||||||
<div class="margin-form">
|
<div class="margin-form">
|
||||||
<input type="radio" name="ajax" id="ajax_on" value="1" '.(Tools::getValue('ajax', Configuration::get('PS_BLOCK_CART_AJAX')) ? 'checked="checked" ' : '').'/>
|
<input type="radio" name="cart_ajax" id="ajax_on" value="1" '.(Tools::getValue('cart_ajax', Configuration::get('PS_BLOCK_CART_AJAX')) ? 'checked="checked" ' : '').'/>
|
||||||
<label class="t" for="ajax_on"> <img src="../img/admin/enabled.gif" alt="'.$this->l('Enabled').'" title="'.$this->l('Enabled').'" /></label>
|
<label class="t" for="ajax_on"> <img src="../img/admin/enabled.gif" alt="'.$this->l('Enabled').'" title="'.$this->l('Enabled').'" /></label>
|
||||||
<input type="radio" name="ajax" id="ajax_off" value="0" '.(!Tools::getValue('ajax', Configuration::get('PS_BLOCK_CART_AJAX')) ? 'checked="checked" ' : '').'/>
|
<input type="radio" name="cart_ajax" id="ajax_off" value="0" '.(!Tools::getValue('cart_ajax', Configuration::get('PS_BLOCK_CART_AJAX')) ? 'checked="checked" ' : '').'/>
|
||||||
<label class="t" for="ajax_off"> <img src="../img/admin/disabled.gif" alt="'.$this->l('Disabled').'" title="'.$this->l('Disabled').'" /></label>
|
<label class="t" for="ajax_off"> <img src="../img/admin/disabled.gif" alt="'.$this->l('Disabled').'" title="'.$this->l('Disabled').'" /></label>
|
||||||
<p class="clear">'.$this->l('Activate AJAX mode for cart (compatible with the default theme)').'</p>
|
<p class="clear">'.$this->l('Activate AJAX mode for cart (compatible with the default theme)').'</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in new issue
Block a user