Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / All Products Listing only with Specials???

All Products Listing only with Specials???

Locked

Views: 1,163

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
16 Feb 2008, 8:34 PM
#1
under_pressure avatar

under_pressure

New Zenner

Join Date:
Feb 2008
Posts:
36
Plugin Contributions:
0

All Products Listing only with Specials???

Hi,

My when I set 'Show Specials Link' to false, my 'All Products' link disapears even though its set to true.

Is this normal ? what could be causing it?

16 Feb 2008, 9:18 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: All Products Listing only with Specials???

Sounds like your template ... I cannot reproduce this error ... :unsure:

What happens if you change to the Classic Template? Does this fix the problem?

16 Feb 2008, 9:33 PM
#3
under_pressure avatar

under_pressure

New Zenner

Join Date:
Feb 2008
Posts:
36
Plugin Contributions:
0

Re: All Products Listing only with Specials???

I am using a custom template. no problem with the Classic green template.

How do I go about troubleshooting?

Cheers

Nigel

21 Feb 2008, 10:52 PM
#4
under_pressure avatar

under_pressure

New Zenner

Join Date:
Feb 2008
Posts:
36
Plugin Contributions:
0

Re: All Products Listing only with Specials???

fixed it by removing:

if (SHOW_CATEGORIES_BOX_SPECIALS == 'true' or SHOW_CATEGORIES_BOX_PRODUCTS_NEW == 'true') {
$content .= ''; // insert a blank line/box in the menu

}

from tpl_categories_css.php

<?php

// $Id: tpl_categories_css.php 2004/06/23 00:00:00 DrByteZen Exp $
//
 $content = "";

   $content .= '<div id="nav-cat">';
   $content .= $menulist; // see the modules/sideboxes/YOURTEMPLATE/categories_css.php for this

if (SHOW_CATEGORIES_BOX_SPECIALS == 'true' or SHOW_CATEGORIES_BOX_PRODUCTS_NEW == 'true') {
   $content .= '';  // insert a blank line/box in the menu

   if (SHOW_CATEGORIES_BOX_SPECIALS == 'true') {
     $content .= '<ul class="level1"><li><a href="' . zen_href_link(FILENAME_SPECIALS) . '">' . CATEGORIES_BOX_HEADING_SPECIALS . '</a></li></ul>';
   }
   if (SHOW_CATEGORIES_BOX_PRODUCTS_NEW == 'true') {
     $content .= '<ul class="level1"><li><a href="' . zen_href_link(FILENAME_PRODUCTS_NEW) . '">' . CATEGORIES_BOX_HEADING_WHATS_NEW . '</a></li></ul>';
   }
   if (SHOW_CATEGORIES_BOX_FEATURED_PRODUCTS == 'true') {
     $show_this = $db->Execute("select products_id from " . TABLE_FEATURED . " where status= 1 limit 1");
     if ($show_this->RecordCount() > 0) {
       $content .= '<ul class="level1"><li><a href="' . zen_href_link(FILENAME_FEATURED_PRODUCTS) . '">' . CATEGORIES_BOX_HEADING_FEATURED_PRODUCTS . '</a></li></ul>';
     }
   }
   if (SHOW_CATEGORIES_BOX_PRODUCTS_ALL == 'true') {
     $content .= '<ul class="level1"><li><a href="' . zen_href_link(FILENAME_PRODUCTS_ALL) . '">' . CATEGORIES_BOX_HEADING_PRODUCTS_ALL . '</a></li></ul>';
   }
 }
 $content .= '</div>';


// May want to add ............onfocus="this.blur()"...... to each A HREF to get rid of the dotted-box around links when they're clicked.
// just parse the $content string and insert it into each A HREF tag

?>