Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Active categories but not listed in category menu

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-28-2005, 07:00 AM
 
martin242 martin242 is offline
 

Advanced Member
  
Join Date: May 2004
Location: Buenos Aires, Argentina
Posts: 42
 

Default Active categories but not listed in category menu

Hi all,
I would like to have some active categories listed somewhere aside from the main category menu. For example on a tab on the header only.
I tried to create a category and mark it as not available so it doesn't show on the category menu, but when I try to access that category I see a "Category not available". Any ideas?
Thank you very much in advance,

Martin
__________________
X-Cart Gold 4.0.14
Modified FlexyRectangles Skin
Reply With Quote
  #2  
Old 07-28-2005, 07:14 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

http://forum.x-cart.com/viewtopic.php?t=11326
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 07-28-2005, 07:04 PM
 
martin242 martin242 is offline
 

Advanced Member
  
Join Date: May 2004
Location: Buenos Aires, Argentina
Posts: 42
 

Default

That mod is not working on X-Cart 4.0.14
Anyone can help me?
I can post my categories.php if needed.
Thanks!

Martin
__________________
X-Cart Gold 4.0.14
Modified FlexyRectangles Skin
Reply With Quote
  #4  
Old 07-29-2005, 03:36 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

It works fine for me on 4.0.14...how is it not working for you? Are you getting errors or are the categories not hiding?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 07-29-2005, 09:17 AM
 
martin242 martin242 is offline
 

Advanced Member
  
Join Date: May 2004
Location: Buenos Aires, Argentina
Posts: 42
 

Default

This is what I did:

In include/categories.php I changed this:

Code:
$search_condition = "AND avail='Y' AND (membership='".addslashes($user_account["membership"])."' OR membership='')";

To this:

Code:
$search_condition = "AND avail='Y' OR $sql_tbl[categories].avail='H' AND (membership='".addslashes($user_account["membership"])."' OR membership='')";

(as indicated in the thread you posted)

When I set a category "not available" from the admin panel, the category dissapears from the category menu (customer side), but when I try to access it by it's direct link it takes me to the home page of my site.
Am I missing something?
Thank you very much,

Martin
__________________
X-Cart Gold 4.0.14
Modified FlexyRectangles Skin
Reply With Quote
  #6  
Old 07-29-2005, 11:07 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

There are two steps outlined in the thread. Did you also make the second change to /skin1/admin/category_modify.tpl?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 07-29-2005, 11:38 AM
 
martin242 martin242 is offline
 

Advanced Member
  
Join Date: May 2004
Location: Buenos Aires, Argentina
Posts: 42
 

Default

Thank you! Solved it.
__________________
X-Cart Gold 4.0.14
Modified FlexyRectangles Skin
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 04:41 AM.

   

 
X-Cart forums © 2001-2020