[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] Prevent from ordering more than is in stock
> JC>>> When is it counting the inventory, and when is it being deducted?
> JC>>>
> JC>>> Customer A orders 10 gadgets and puts them in his cart.
> (There are only 15
> JC>>> in stock). Does it deduct them then, or does it deduct them when he
> JC>>> submits his order? Or, after the CC# approval and the
> receipt sent to him?
> JC>>
> JC>>When the order is placed, accepted and confirmed to the
> customer - downdate
> JC>>inventory happens in etc/log_transaction - a part of the order route.
>
> Does this not answer the frequently asked question 'How can I
> shut off "Out
> Of Stock" notices?' Simply get rid of this downdate code? (And, tell the
> database that you have 10,000)
No.
>From etc/log_transaction:
[if variable DECREMENT_INVENTORY]Inventory of [item-code] now:
[data
table=inventory
col=quantity
key="[item-code]"
increment=1
value="-[item-quantity]"
]
[/if]
So, in the UI, if you go to Preferences >> Order and select
DECREMENT_INVENTORY and set it to 0 that will stop the downdate of stock.
Jonathan
Webmaint.