Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Show for category and it's subcats?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-14-2008, 01:37 PM
  abeight's Avatar 
abeight abeight is offline
 

X-Adept
  
Join Date: Nov 2003
Location: Cleveland, OH
Posts: 479
 

Default 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!
__________________
~ Andrea Beight
Reply With Quote
  #2  
Old 10-15-2008, 06:03 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default 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.
Reply With Quote
  #3  
Old 10-16-2008, 07:54 AM
  abeight's Avatar 
abeight abeight is offline
 

X-Adept
  
Join Date: Nov 2003
Location: Cleveland, OH
Posts: 479
 

Default 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.
__________________
~ Andrea Beight
Reply With Quote
  #4  
Old 10-16-2008, 05:34 PM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default 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.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 05:13 AM.

   

 
X-Cart forums © 2001-2020