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
|