//products comparison link
This commit is contained in:
1 parent
5557ac1aee
commit
828b838d22
1 file changed
+6
@@ -65,6 +65,7 @@ class CompareControllerCore extends FrontController
|
|||||||
|
|
||||||
die('1');
|
die('1');
|
||||||
}
|
}
|
||||||
|
die('0');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -73,6 +74,8 @@ class CompareControllerCore extends FrontController
|
|||||||
*/
|
*/
|
||||||
public function initContent()
|
public function initContent()
|
||||||
{
|
{
|
||||||
|
if (Tools::getValue('ajax'))
|
||||||
|
return;
|
||||||
parent::initContent();
|
parent::initContent();
|
||||||
|
|
||||||
//Clean compare product table
|
//Clean compare product table
|
||||||
@@ -86,7 +89,10 @@ class CompareControllerCore extends FrontController
|
|||||||
if (($product_list = Tools::getValue('compare_product_list')) && ($postProducts = (isset($product_list) ? rtrim($product_list, '|') : '')))
|
if (($product_list = Tools::getValue('compare_product_list')) && ($postProducts = (isset($product_list) ? rtrim($product_list, '|') : '')))
|
||||||
$ids = array_unique(explode('|', $postProducts));
|
$ids = array_unique(explode('|', $postProducts));
|
||||||
else if (isset($this->context->cookie->id_compare))
|
else if (isset($this->context->cookie->id_compare))
|
||||||
|
{
|
||||||
$ids = CompareProduct::getCompareProducts($this->context->cookie->id_compare);
|
$ids = CompareProduct::getCompareProducts($this->context->cookie->id_compare);
|
||||||
|
Tools::redirect($this->context->link->getPageLink('products-comparison', null, $this->context->language->id, array('compare_product_list' => implode('|', $ids))));
|
||||||
|
}
|
||||||
else
|
else
|
||||||
$ids = null;
|
$ids = null;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user