Send noindex header to avoid ghost carts by bots

This commit is contained in:
ha99y
2013-09-19 22:15:00 -07:00
parent 8c6aaa3c7d
commit 42cdc988ac
+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'));