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

Limited Quantites Msg.

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-18-2005, 10:12 AM
  Debra's Avatar 
Debra Debra is offline
 

Advanced Member
  
Join Date: Aug 2005
Posts: 44
 

Default Limited Quantites Msg.

I am sorry if this has already been posted before...can't seem to find anything with the search...I want a way to have a 'limited quantites available' message when there is less than 10 of an item where the 'out of stock' message is displayed now. Thanks!!
__________________
X-Cart version 4.0.14
Reply With Quote
  #2  
Old 08-18-2005, 10:24 AM
 
balinor balinor is offline
 

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

Default

In product.tpl, try this where you want the message to display:

Code:
{if $product.avail lt 10}Limited Quantities Available{/if}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 08-18-2005, 10:33 AM
  Debra's Avatar 
Debra Debra is offline
 

Advanced Member
  
Join Date: Aug 2005
Posts: 44
 

Default

Thanks, it does work, but if the quantity is out of stock it still displays too...what else would I need to do?
__________________
X-Cart version 4.0.14
Reply With Quote
  #4  
Old 08-18-2005, 10:39 AM
 
balinor balinor is offline
 

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

Default

Code:
{if $product.avail lt 10 and $product.avail gt 0}Limited Quantities Available{/if}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 08-18-2005, 10:41 AM
  Debra's Avatar 
Debra Debra is offline
 

Advanced Member
  
Join Date: Aug 2005
Posts: 44
 

Default

Thanks, exactly what I needed, works great!
__________________
X-Cart version 4.0.14
Reply With Quote
  #6  
Old 08-20-2005, 10:53 PM
  MythNReality's Avatar 
MythNReality MythNReality is offline
 

X-Adept
  
Join Date: Mar 2005
Location: S. Cali
Posts: 403
 

Default

Quote:
Originally Posted by balinor
In product.tpl, try this where you want the message to display:

Code:
{if $product.avail lt 10}Limited Quantities Available{/if}

Thanks Balinor, just added this. It's magic http://www.petadorn.com/store/product.php?productid=16149&cat=103&page=1
__________________
_____________
Capture Your Mini-Me Look!

- X-CART Gold (Current Version) V4.6
- Reboot
- CDSEO
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 07:50 AM.

   

 
X-Cart forums © 2001-2020