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)
-   -   Show for category and it's subcats? (https://forum.x-cart.com/showthread.php?t=42969)

abeight 10-14-2008 01:37 PM

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! :)

Yurij 10-15-2008 06:03 AM

Re: Show for category and it's subcats?
 
Quote:

Originally Posted by abeight
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! :)


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.

abeight 10-16-2008 07:54 AM

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.

JWait 10-16-2008 05:34 PM

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.