View Single Post
  #39  
Old 07-01-2008, 11:39 PM
 
pcparts pcparts is offline
 

Advanced Member
  
Join Date: Jul 2006
Location: Aussie
Posts: 85
 

Default Re: Show All Products in Catagory

Try this mate in the init.php file.
Match it against yours.

PHP Code:
#
# Read config variables from Database
# This variables are used inside php scripts, not in smarty templates
#
$c_result db_query("SELECT name, value, category FROM $sql_tbl[config] WHERE type != 'separator'");
$config = array();
if (
$c_result) {
    while (
$row db_fetch_row($c_result)) {
        if (!empty(
$row[2]))
            
$config[$row[2]][$row[0]] = $row[1];
        else
            
$config[$row[0]] = $row[1];
    }
}
#
# Show All Mod By Westin Shafer for Beach Bums Inc.
#
if ($_GET['show'] == 'all'){
    
$config['Appearance']['products_per_page'] = 500;

__________________
Greg
X-CART Gold 4.1.10
Reply With Quote