You are here:  » Hidden not mapped category???

Support Forum



Hidden not mapped category???

Submitted by marco.saiu on Sat, 2011-02-19 05:46 in

Hello David,

is possible hidden all category if not mapping?

In the first step original category (feed category are hiddent for public site) and show only mapped category.

Thank's
Marco S.

Submitted by support on Sat, 2011-02-19 10:02

Hi Marco,

Sure - you could simply change categories.php to use the category mapping table instead of the products table. In that file, look for the following code at line 6:

  $sql = "SELECT DISTINCT(category) as category FROM `".$config_databaseTablePrefix."products` ORDER BY category";

...and REPLACE that with:

  $sql = "SELECT name as category FROM `".$config_databaseTablePrefix."categories` ORDER BY category";

Cheers,
David.
--
PriceTapestry.com