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

In/out of stock

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

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

Default In/out of stock

I want to add a graphic on the product listing that shows whether a product is in or out of stock. I've tried grabbing some snippets of code from the buy_now.tpl file, but they don't seem to work. Does anyone know off hand what the if statement is that says whether a product is in stock on this page?

I also tried {if $product.avail gt 0}, but that only seems to work on the detail page.

V 4.1.10

Here's my sample page: http://www.gamesuave.com/xcart2/home.php?cat=23

Thanks!
__________________
~ Andrea Beight
Reply With Quote
  #2  
Old 07-01-2008, 12:45 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: In/out of stock

{if $products[product].avail gt 0}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 07-01-2008, 12:48 PM
  abeight's Avatar 
abeight abeight is offline
 

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

Default Re: In/out of stock

Awesome, thank you very much!
__________________
~ Andrea Beight
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 09:47 AM.

   

 
X-Cart forums © 2001-2020