![]() |
Show for category and it's subcats?
Hi there! I'm wondering if anyone call tell me what the smarty code would be to show an image for a particular category and all of it's subcategories in product.tpl?
V 4.1.10 Thanks! :) |
Re: Show for category and it's subcats?
Quote:
You will need to change not only TPL but the PHP code to. You can describe in detail your problem? Preferably with pictures as an example - as it should be. |
Re: Show for category and it's subcats?
Thank you for responding. Here is an example of what I'm trying to do.
Sample product page: http://www.juliensuvalde.com/xcart/austin-tote.html On this page you can see that there is an image appearing below the thumbnail. This is a link to a color gallery for this line of products. I want to display this for all of the products that are in the subcategories of the Jon Hart main category. Right now I'm using the code: {if $cat eq "249" || $cat eq "262" || $cat eq "250" || $cat eq "251" || $cat eq "263"}display image{/if} etc... But we don't want to manually add each subcategory to the code, we want it to pull all of the subcats of the main category. |
Re: Show for category and it's subcats?
This may not be what you are looking for but if you put the graphic and the link in the product details you could do it for every product that has those options, even changing the color choices (using a different html page) if there are some not available for that product.
|
All times are GMT -8. The time now is 07:27 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.