[-] MO : #PSFV-236 - Fixed little problem with form vars named "ajax"
This commit is contained in:
@@ -108,7 +108,7 @@ class BlockCart extends Module
|
||||
$output = '<h2>'.$this->displayName.'</h2>';
|
||||
if (Tools::isSubmit('submitBlockCart'))
|
||||
{
|
||||
$ajax = Tools::getValue('ajax');
|
||||
$ajax = Tools::getValue('cart_ajax');
|
||||
if ($ajax != 0 AND $ajax != 1)
|
||||
$output .= '<div class="alert error">'.$this->l('Ajax : Invalid choice.').'</div>';
|
||||
else
|
||||
@@ -129,9 +129,9 @@ class BlockCart extends Module
|
||||
|
||||
<label>'.$this->l('Ajax cart').'</label>
|
||||
<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>
|
||||
<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>
|
||||
<p class="clear">'.$this->l('Activate AJAX mode for cart (compatible with the default theme)').'</p>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user