View Single Post
  #6  
Old 04-23-2011, 01:37 AM
 
kom kom is offline
 

Member
  
Join Date: Jan 2008
Posts: 15
 

Default Re: Add Out of Stock to Cart

Now, I found solution.

1. Disable order tracking in General Setting.

2. Modify templeate product_details.tpl

{*if $config.Appearance.show_in_stock eq "Y" and $config.General.unlimited_products ne "Y" and $product.distribution eq ""*}
<tr>
<td class="property-name">{$lng.lbl_in_stock}</td>

<td class="property-value product-quantity-text" colspan="2">
{if $product.avail gt 0}
{$lng.txt_items_available|substitute:"items":$prod uct.avail}
{else}
{$lng.lbl_no_items_available}
{/if}
</td>
</tr>
{*/if*}

3. Edit lbl_no_items_available and txt_items_available in Language setting.

That's all.
__________________
X-Cart 4.4.2
Reply With Quote