PDA

View Full Version : Site Map MS2-2.2



michael_s
03-08-2010, 03:11 AM
The script shows a list of all the products in the shop. Even if the products are unavailable (products_status = 0). If we want to show only the available products, follow the instructions below.

---------[ OPEN ]---------

catalog/includes/classes/category_tree.php

---------[ FIND ]-----------

while ($products = tep_db_fetch_array($products_query))
{

---------[ AFTER ADD ]------------

if ($products['products_status'] == 1) {

---------[ AFTER FIND ]---------------

$result .= $this->child_end_string;

---------[ AFTER ADD ]-------------

}


This is only a fix to the Site Map script. This is NOT a full package.

More... (http://addons.oscommerce.com/info/2208)