X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Adding text to products.tpl (https://forum.x-cart.com/showthread.php?t=44615)

ARW VISIONS 01-07-2009 11:05 PM

Re: Adding text to products.tpl
 
that would be the out of stock items.

Vetrivel 01-07-2009 11:17 PM

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}

ARW VISIONS 01-07-2009 11:30 PM

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.

Vetrivel 01-08-2009 12:53 AM

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.


JWait 01-09-2009 04:52 AM

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?


All times are GMT -8. The time now is 11:24 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.