News:

Looking for documentation? Take a look on our wiki

Main Menu

VM limited stock offer and order status problem

Started by prokops, July 25, 2016, 17:51:04 PM

Previous topic - Next topic

prokops

Hi people!

As this guy states in 2009, product stock levels seems to be tied to order status.

The "book/ordered" counter goes up once the order is "pending", ie. between checkout and payment.

The problem arises when we want to run a limited product campaign such as a final product fire-sale, we don't want to have products stuck in "pending". Right now the only alternative is to monitor order status manually.

There seems to be two ways to solve our problem.

One is to auto cancel pending orders after x time. This seems not to be possible.

The second and preferred option is to have the stock be controlled by order status "confirmed". The user is informed that the sale is final on completion of the order only. Can this be done by existing means or what are our alternatives?

We run J!3.6, VM 3.0.16.

Cheers!


GJC Web Design

perhaps change something in 

function handleStockAfterStatusChangedPerProduct($newState, $oldState,$tableOrderItems, $quantity) {

administrator\components\com_virtuemart\models\orders.php  ~ 1208 line
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation