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

Remove products from Categories page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-15-2011, 07:22 PM
 
smarta smarta is offline
 

Senior Member
  
Join Date: Aug 2008
Posts: 129
 

Default Remove products from Categories page

Hi

I am working on a site at
http://ntphealthproducts.com.au/cart/

I'd like to know how to stop the products displaying below the Sub Categories
eg click "Healthfood" in the browse categories menu

you then see a 4 column list of sub categories (these will eventually have images) - but I do not want to dispay the list of products below the sub category list

I have tried to find it in admin and template but have had no luck

can anyone help me out?
__________________
4.4.3
Reply With Quote
  #2  
Old 02-16-2011, 02:59 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,191
 

Default Re: Remove products from Categories page

2.2.35? customer/main/subcategories.tpl - there is $cat_products or $products if statement - comment it out
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 02-16-2011, 07:15 PM
 
smarta smarta is offline
 

Senior Member
  
Join Date: Aug 2008
Posts: 129
 

Default Re: Remove products from Categories page

thanks

not sure what you mean by "comment it out" (newbie here!)

when I remove the line
{include file="customer/main/products.tpl" products=$cat_products}
from customer/main/subcategories.tpl

the products do not show up

however the column titles are still there
ie
Products Sort by: Product Price Default
__________________
4.4.3
Reply With Quote
  #4  
Old 02-16-2011, 07:17 PM
 
smarta smarta is offline
 

Senior Member
  
Join Date: Aug 2008
Posts: 129
 

Default Re: Remove products from Categories page

ok - I just realised that removed the products - cart wide ! oops I have fixed that

can you please explain this a little better to me - I'm pretty green at this coding stuff
__________________
4.4.3
Reply With Quote
  #5  
Old 02-16-2011, 08:16 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,191
 

Default Re: Remove products from Categories page

You want to not show them when a category has subcategories or alltogether? Why not just not having products in these categories if you don't want to show them at all?
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #6  
Old 02-16-2011, 08:20 PM
 
smarta smarta is offline
 

Senior Member
  
Join Date: Aug 2008
Posts: 129
 

Default Re: Remove products from Categories page

thanks - I worked it out - I realised the products showing were in the main category only - not in a sub category - putting them in a sub cat fixed the problem

thanks for you help - it a big learning curve for me !
__________________
4.4.3
Reply With Quote
  #7  
Old 02-18-2011, 02:43 AM
 
sinobest sinobest is offline
 

X-Adept
  
Join Date: Nov 2009
Posts: 462
 

Default Re: Remove products from Categories page

Quote:
Originally Posted by smarta
thanks - I worked it out - I realised the products showing were in the main category only - not in a sub category - putting them in a sub cat fixed the problem

thanks for you help - it a big learning curve for me !

would you pls tell us the details? tks.
__________________
X-Cart Version: 4.7.12 GOLD
www.cheapglasses123.com prescription glasses online at discounted prices.
prescriptionglassesusa.com
www.loupesusa.com X-Cart Version: 4.7.11 GOLD PLUS
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 03:36 PM.

   

 
X-Cart forums © 2001-2020