[-] MO : #PSFV-236 - Fixed little problem with form vars named "ajax"
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12189 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -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