| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
How do I display all subcategories along with all products | ||||
|
|
Thread Tools | Search this Thread |
#31
|
|||||||
|
|||||||
Re: Display SubCategory titles with products
Don't mean to bump this up but thanks very much moondog, i really needed this
__________________
Follow me on twitter www.twitter.com/kiwami @Kiwami X-Cart Gold 4.4.3 | Cpanel | Dedicated Server |
|||||||
#32
|
|||||||||
|
|||||||||
Re: Display SubCategory titles with products
Quote:
Did you ever figure out how to do this...I am looking to do the same.
__________________
4.4 Code:
|
|||||||||
#33
|
|||||||
|
|||||||
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
__________________
x-cart 4.1.12 x-cart 4.2 |
|||||||
#34
|
|||||||||
|
|||||||||
Re: Displaying products in subcategory on category page
1. home.php
Code:
2. skin1/customer/main/subcategories.tpl Code:
__________________
Regards, Victor Dubiniuk X-Cart Skins Store - twenty two different skins for 4.1.x and 4.2.x; - 4.3.x compatible versions are available; - refresh you store now! Smart menu X-Cart add-on for 4.1.8 - 4.3.x Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x |
|||||||||
#35
|
|||||||
|
|||||||
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!!!
__________________
x-cart 4.1.12 x-cart 4.2 |
|||||||
#36
|
|||||||||
|
|||||||||
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?
|
|||||||||
#37
|
|||||||||
|
|||||||||
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.
__________________
Regards, Victor Dubiniuk X-Cart Skins Store - twenty two different skins for 4.1.x and 4.2.x; - 4.3.x compatible versions are available; - refresh you store now! Smart menu X-Cart add-on for 4.1.8 - 4.3.x Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x |
|||||||||
#38
|
|||||||||
|
|||||||||
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
__________________
XCART 4.1.8 [Linux] |
|||||||||
#39
|
|||||||
|
|||||||
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?
__________________
4.1.7 |
|||||||
#40
|
|||||||||
|
|||||||||
Re: How do I display all subcategories along with all products
Quote:
is this going to work in 4.2? Thanks |
|||||||||
|
|||
X-Cart forums © 2001-2020
|