| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
In/out of stock | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() 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 |
|||||||||
#2
|
|||||||
|
|||||||
![]() {if $products[product].avail gt 0}
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||||
|
|||||||||
![]() Awesome, thank you very much!
![]()
__________________
~ Andrea Beight |
|||||||||
|
|||
X-Cart forums © 2001-2020
|