![]() |
Re: Display SubCategory titles with products
Don't mean to bump this up but thanks very much moondog, i really needed this :)
|
Re: Display SubCategory titles with products
Quote:
Did you ever figure out how to do this...I am looking to do the same. |
Displaying products in subcategory on category page
I having trouble figuring out how to display all products in all the subcategories on the category page like this:
subcat name1 product 1 product 2 subcat name2 product 1 product 2 etc... I would only like to do this on certain categories (I can use an if statement and include a different template) or display like above only for categories that have subcategories. Any help would be greatly appreciated. Thanks |
Re: Displaying products in subcategory on category page
1. home.php
Code:
define('OFFERS_DONT_SHOW_NEW',1); 2. skin1/customer/main/subcategories.tpl Code:
{* $Id: subcategories.tpl,v 1.55.2.4 2008/07/15 12:07:40 ferz Exp $ *} |
Re: Displaying products in subcategory on category page
Thanks so much for the mod Victor! Worked like a charm!!!
I added a link to the products display in subcategories.tpl: Change this: <td colspan="3">{$sprods.product}</td> to this: <td colspan="3"><a href="product.php?productid={$sprods.productid}">{ $sprods.product}</a></td> Thanks again Victor. You Rock!!! |
Re: Displaying products in subcategory on category page
This looks like a great mod, but in 4.2.1, subcategories.tpl looks so different than the version above, that I didn't even attempt this mod. Anyone know how to adjust this to 4.2.1?
|
Re: Displaying products in subcategory on category page
For 4.2.1 (home.php code is the same with one from the post#2)
skin1/customer/main/subcategories_t.tpl: Code:
{* skin1/customer/main/subcategories_list.tpl: Code:
{* this is a basic way to insert products. You may improve layout according to your requirements. |
Re: How do I display all subcategories along with all products
Quote:
Yeah, I'm looking for a way to run the subcategory links along with the existing product list in alphabetical order, instead of the stock subcategory's listing on top, followed by the product list beneath. Stock x-cart layout, subcats (no icon/description), products include icon/description: a subcat1 b subcat2 c subcat3 _______________ a product1 b product2 c product3 Desired Mod should include product/subcat name + description and icon and sort alphabetically: a product1 b product2 c subcat1 d product3 e subcat2 f subcat3 |
Re: How do I display all subcategories along with all products
This mod is excatly what i'm looking for but I want to keep my existing product.tpl format, not have it reoganized.
ANy advice? |
Re: How do I display all subcategories along with all products
Quote:
is this going to work in 4.2? Thanks |
All times are GMT -8. The time now is 10:48 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.