From 42cdc988ac7e1dfeda5e42f8879f7380d147627d Mon Sep 17 00:00:00 2001 From: ha99y Date: Thu, 19 Sep 2013 22:15:00 -0700 Subject: [PATCH] Send noindex header to avoid ghost carts by bots --- controllers/front/CartController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/controllers/front/CartController.php b/controllers/front/CartController.php index cc98424c9..a209e7958 100644 --- a/controllers/front/CartController.php +++ b/controllers/front/CartController.php @@ -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'));