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
```<br />
<br />
Find:<br />
```php
<br />
$indexed_dispatches = array(<br />
  'index.index' => array(),<br />
  'sitemap.view' => array(),<br />
  'products.view' => array('index' => array('product_id')),<br />
  'categories.catalog' => array(),<br />
  'categories.view' => array(<br />
   'index' => array('category_id'),<br />
   'noindex' => array('features_hash')<br />
  ),<br />
  'pages.view' => array('index' => array('page_id')),<br />
  'companies.view' => array('index' => array('company_id')),<br />
  'product_features.view' => array(<br />
   'index' => array('variant_id'),<br />
   'noindex' => array('features_hash'),<br />
  ),<br />
);<br />

```<br />
<br />
Replace with:<br />
```php
<br />
$indexed_dispatches = array(<br />
  'index.index' => array(),<br />
  'sitemap.view' => array(),<br />
  'products.view' => array('index' => array('product_id')),<br />
  'categories.catalog' => array(),<br />
  'categories.view' => array(<br />
   'index' => array('category_id'),<br />
   'noindex' => array('features_hash')<br />
  ),<br />
  'pages.view' => array('index' => array('page_id')),<br />
  'companies.view' => array('index' => array('company_id')),<br />
  'product_features.view' => array(<br />
   'index' => array('variant_id'),<br />
   'noindex' => array('features_hash'),<br />
  ),<br />
  'promotions.list' => array(),<br />
);<br />

```<br />
Save the changes to your server. Clear your admin cache by appending ?cc to your admin URL like so:<br />
```php
<br />
http://yourstore.com/youradmin.php?cc<br />

```<br />
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.