Any suggestions on how to subtract stock when a customer confirms an order, so right before going to payment?
OC 3.0.3.2
PHP 7.2.10
Default theme
Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com
To clarify - You are wanting to subtract stock before payment is confirmed?
Full Stack Web Developer :: Send a PM for Custom Work / Fast Support.
Backup and learn how to recover before you make any changes!
I have just updated the FAQ for these issues. The following was tested during a custom job with a client: viewtopic.php?f=134&t=215776&p=775757#p775757 . See if that solution rectifies the issue.jonagoldapple wrote: ↑Fri Mar 06, 2020 5:31 amI only changed the stock statusses in the stock status menu (admin panel). No code has been changed, at least not manually. What did I do wrong?
The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.
Regards,
Straightlight
Programmer / Opencart Tester
when adding order history either automatic or manual
1) If the CURRENT ORDER STATUS IS NOT IN the "processing" stati AND NOT IN the "complete" stati (as set in admin) but the NEW ORDER STATUS IS IN EITHER then do the stock subtraction
2) If the CURRENT ORDER STATUS IS IN the "processing" stati OR IN the "complete" stati (as set in admin) but the NEW ORDER STATUS IS IN NEITHER then do the re-stocking
But a malicious competitor could reduce all your stock levels to zero without paying for anything?jonagoldapple wrote: ↑Thu Mar 05, 2020 11:00 pmAny suggestions on how to subtract stock when a customer confirms an order, so right before going to payment?
For quick, professional OpenCart support please email info@antropy.co.uk
All your "missing orders" will reduce stock.
Good if you are on commission for stock-turnover.
In my payment module settings under Admin > Extensions > Extensions > Payments > Mollie I can choose those status options:
- Processing payment
- Payment created
- Payment failed
- Payment cancelled
- Payment expired
- Payment received
- Order shipped
If I understand correctly I have to match the above Payment received status with the System > Settings > Edit store > Order status setting, and if I do this stock will subtract when the payment has been received?
So if your gateway returns Payment received and you want that status to subtract stock, then check that order status under the appropriate section as @Quino explained.
Does your Payment gateway have a test mode? Just run a test you can see how it works.
Full Stack Web Developer :: Send a PM for Custom Work / Fast Support.
Backup and learn how to recover before you make any changes!
What was the resolution?
The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.
Regards,
Straightlight
Programmer / Opencart Tester
Thanks for letting us know. I will add this one to the FAQ.jonagoldapple wrote: ↑Sat Mar 07, 2020 9:02 pmUnder Admin > System > Settings > [edit-store] > Options > Processing order status I had checked the wrong status checkboxes. I had to check the "payment received" status and it has to match the received status selected in Mollie Payments. Ran a few payment tests and now it is working!

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.
Regards,
Straightlight
Programmer / Opencart Tester

Also make sure there are no statuses selected that come BEFORE the "payment received".
For example, checking the "payment failed" status checkbox will subtract stock even when because payment fails.
The same for "processing" statuses.
Users browsing this forum: thekrotek and 22 guests