Send noindex header to avoid ghost carts by bots
This commit is contained in:
1 parent
8c6aaa3c7d
commit
42cdc988ac
1 file changed
+3
@@ -52,6 +52,9 @@ class CartControllerCore extends FrontController
|
|||||||
{
|
{
|
||||||
parent::init();
|
parent::init();
|
||||||
|
|
||||||
|
// Send noindex to avoid ghost carts by bots
|
||||||
|
header("X-Robots-Tag: noindex, nofollow", true);
|
||||||
|
|
||||||
// Get page main parameters
|
// Get page main parameters
|
||||||
$this->id_product = (int)Tools::getValue('id_product', null);
|
$this->id_product = (int)Tools::getValue('id_product', null);
|
||||||
$this->id_product_attribute = (int)Tools::getValue('id_product_attribute', Tools::getValue('ipa'));
|
$this->id_product_attribute = (int)Tools::getValue('id_product_attribute', Tools::getValue('ipa'));
|
||||||
|
|||||||
Reference in new issue
Block a user