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

Adding text to products.tpl

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 01-07-2009, 11:05 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: Adding text to products.tpl

that would be the out of stock items.
__________________
xcart 5.1.2
Reply With Quote
  #12  
Old 01-07-2009, 11:17 PM
  Vetrivel's Avatar 
Vetrivel Vetrivel is offline
 

eXpert
  
Join Date: Apr 2008
Posts: 398
 

Default Re: Adding text to products.tpl

In product page:
Try this:
{if $product.avail eq "0" or if $product.avail lt "0" }
Enter your text here..
{/if}
Reply With Quote
  #13  
Old 01-07-2009, 11:30 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: Adding text to products.tpl

that didn't work. There has to be a way to get the pre-order value because product.tpl is getting it just fine but products.tpl isn't.
__________________
xcart 5.1.2
Reply With Quote
  #14  
Old 01-08-2009, 12:53 AM
  Vetrivel's Avatar 
Vetrivel Vetrivel is offline
 

eXpert
  
Join Date: Apr 2008
Posts: 398
 

Default Re: Adding text to products.tpl

Hi,once you said i have tested it in both products.tpl and product_t.tpl.
It is coming up.
So try it again.Even you can see the $products[product].avail in theabove mentioned file by default because xcart have already used that value to check some other condition.
Quote:
Originally Posted by Ashley
that didn't work. There has to be a way to get the pre-order value because product.tpl is getting it just fine but products.tpl isn't.
Reply With Quote
  #15  
Old 01-09-2009, 04:52 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Adding text to products.tpl

Aren't you kind of beating yourself up on this? What it seems you are trying to do is sell a product that is out of stock (pre-order IS out of stock). Wouldn't the easy solution be to add the number you have on order for the pre-ordered items and sell them normally as you would a "backordered" item?
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
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:41 AM.

   

 
X-Cart forums © 2001-2020