Merge pull request #732 from Ha99y/20130919_X-Robots

[*] CORE : Send noindex header to avoid ghost carts by bots
This commit is contained in:
Gregory Roussac
2013-09-20 00:52:49 -07:00
+3
View File
@@ -52,6 +52,9 @@ class CartControllerCore extends FrontController
{
parent::init();
// Send noindex to avoid ghost carts by bots
header("X-Robots-Tag: noindex, nofollow", true);
// Get page main parameters
$this->id_product = (int)Tools::getValue('id_product', null);
$this->id_product_attribute = (int)Tools::getValue('id_product_attribute', Tools::getValue('ipa'));