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

show 'in stock' message in productlist

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-28-2003, 07:21 AM
 
mikamedia mikamedia is offline
 

Newbie
  
Join Date: Jul 2003
Posts: 3
 

Default show 'in stock' message in productlist

I would like to add a 'in stock' or 'out of stock' message to my productlist (products.tpl), just like how it is done in product.tpl

I tried to add:

{if $config.Appearance.show_in_stock eq "Y" and $config.General.unlimited_products ne "Y" and $product.distribution eq ""}

{if $product.avail gt 0}{$product.avail}{else}{$lng.txt_no}{/if}

{/if}

to my products.tpl template, but that doesn't work

Does anyone know how to do this?

Thanks!
~john
Reply With Quote
  #2  
Old 07-29-2003, 03:47 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

Code:
{if $product.avail ne 0}

?

Just a shot in the dark...

http://smarty.php.net/manual/en/language.function.if.php
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 01:21 PM.

   

 
X-Cart forums © 2001-2020