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)
-   -   Add Out of Stock to Cart (https://forum.x-cart.com/showthread.php?t=58904)

kom 04-14-2011 01:29 AM

Add Out of Stock to Cart
 
How to modify X-cart 4.4.2 able to add "Out of Stock" product to cart. I need customer to able to add it. (Made to order product available.)

cflsystems 04-14-2011 07:11 AM

Re: Add Out of Stock to Cart
 
Turn off inventry tracking from admin general settings

kom 04-14-2011 08:53 AM

Re: Add Out of Stock to Cart
 
Yes, but when we turn it off, product inventory isn't show. I want to show product inventory in case product in stock.

In stock - Show how much in stock
Out of stock - Show, this is made to order items, please wait 2-3 weeks to process before shipping.


Both type, able to add to cart. I try to modify product_details.tpl and it doesn't work. (May be I don't know how to correctly.

Does anyone has some solutions?

a333 04-14-2011 07:35 PM

Re: Add Out of Stock to Cart
 
this sounds like a good feature to have as it would also allow customers to purchase items on pre-order which i guess is essentially what your situation is too.

something like this should be included with xcart for "pre-orders" on the item admin page.

candc 04-15-2011 02:40 AM

Re: Add Out of Stock to Cart
 
BCSE do a preorder/backorder mod that works very well.

kom 04-23-2011 01:37 AM

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.


All times are GMT -8. The time now is 07:15 PM.

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