X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Remove products from Categories page (https://forum.x-cart.com/showthread.php?t=58072)

smarta 02-15-2011 07:22 PM

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?

cflsystems 02-16-2011 02:59 AM

Re: Remove products from Categories page
 
2.2.35? customer/main/subcategories.tpl - there is $cat_products or $products if statement - comment it out

smarta 02-16-2011 07:15 PM

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

smarta 02-16-2011 07:17 PM

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

cflsystems 02-16-2011 08:16 PM

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?

smarta 02-16-2011 08:20 PM

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 !

sinobest 02-18-2011 02:43 AM

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.


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

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.