View Single Post
  #1  
Old 05-29-2009, 02:44 PM
 
Hallsons Hallsons is offline
 

Advanced Member
  
Join Date: Dec 2007
Posts: 84
 

Default Need help creating 2 different out of stock messages

Hello,

I am trying to edit the buy_now.tpl template so that I can display two different messages for whether a product is Out of Stock By Mail (but available at the physical location) or Sold Out (completely gone). I have a nursery business and we only ship certain plants seasonally, but most plants are still available at the nursery in the summer.

My thought was that if I enter a product quantity something like -99 then it would display the message Out of stock by mail, otherwise quantities less than or equal to zero would just give my standard Sold Out message. Or I could do it the flip side - enter some huge number like 9999 and if the quantity available is 9999 then display the message Out of stock by mail.

Anyone able to help me out with my if statements in the buy_now.tpl template? So far I haven't been able to parse it correctly to make it work.

TIA,

Chris
__________________
Chris Wilson
4.7.10 (after 9 years with 4.1.12)
CDSEO Pro
Reply With Quote