View Single Post
  #3  
Old 01-06-2009, 02:52 PM
 
joannet joannet is offline
 

Senior Member
  
Join Date: Mar 2006
Posts: 105
 

Default Re: Adding text to products.tpl

Thanks for the advice Ashley.

For in stock and out of stock items, it works perfectly. However, the preorder items are displaying as out of stock.

This is the code I used:

{if $products[product].preorder eq "Y"}<a href="product.php?productid={$products[product].productid}&amp;cat={$cat}&amp;page={$navigation_p age}{if $featured eq 'Y'}&amp;featured{/if}" class="pl2_is"><b><u>PRE-ORDER</u>:</b> Release Date: {$products[product].dvd_release_date|date_format:"%e %b %Y"}</a>{elseif $products[product].avail gt 0}<a href="product.php?productid={$products[product].productid}&amp;cat={$cat}&amp;page={$navigation_p age}{if $featured eq 'Y'}&amp;featured{/if}" class="pl2_is"><b><u>IN-STOCK</u>:</b> Ships immediately</a>{elseif $products[product].preorder ne "Y" || $products[product].avail eq "0"}<a href="product.php?productid={$products[product].productid}&amp;cat={$cat}&amp;page={$navigation_p age}{if $featured eq 'Y'}&amp;featured{/if}" class="pl2_is"><b><u>OUT OF STOCK</u>:</b> Normally ships within 14 days</a>{/if}<br />


Can you please offer any further suggestions so that preorder items display as such, rather than as out of stock?

The preorder items have a zero stock level.

Thanks very much.
__________________
/joannet/
X-Cart version 4.1.9 and above
Reply With Quote