Promotions List Page Meta Noindex Fix

In V3 of CS-Cart, the promotions.list dispatch has a meta noindex tag automatically generated when the SEO add-on is installed and active.



As you know, the promotions.list page displays all Promotions titles and descriptions which have been created in CS-Cart.



There is no logical reason for doing so as the Promotion Description is only ever displayed on this page. Only the Promotion Title is displayed in the Cart and Checkout, both of which, rightfully, are noindex, therefore the promotions.list page is content-rich if you use any type of Promotions - Cart or Catalog - and you're currently wasting a perfectly good marketing landing page for no reason.



To resolve this issue and allow search engines to index your promotions list page:



Open:

/addons/seo/func.php



Find:


$indexed_dispatches = array(
'index.index' => array(),
'sitemap.view' => array(),
'products.view' => array('index' => array('product_id')),
'categories.catalog' => array(),
'categories.view' => array(
'index' => array('category_id'),
'noindex' => array('features_hash')
),
'pages.view' => array('index' => array('page_id')),
'companies.view' => array('index' => array('company_id')),
'product_features.view' => array(
'index' => array('variant_id'),
'noindex' => array('features_hash'),
),
);




Replace with:


$indexed_dispatches = array(
'index.index' => array(),
'sitemap.view' => array(),
'products.view' => array('index' => array('product_id')),
'categories.catalog' => array(),
'categories.view' => array(
'index' => array('category_id'),
'noindex' => array('features_hash')
),
'pages.view' => array('index' => array('page_id')),
'companies.view' => array('index' => array('company_id')),
'product_features.view' => array(
'index' => array('variant_id'),
'noindex' => array('features_hash'),
),
'promotions.list' => array(),
);


Save the changes to your server. Clear your admin cache by appending ?cc to your admin URL like so:


http://yourstore.com/youradmin.php?cc


Done. Now you can also use the Promotions page efficiently for marketing purposes.

So is this required even I have SEO add-on is enabled ?

If you have the SEO add-on enabled, then yes. The SEO addon is responsible for adding 'noindex' meta tags to various pages including the cart, checkout, etc.