Page 1 of 1

adjust the order queue to stock

Posted: 22 Sep 2018, 07:32
by webstuff
how can I have the order status automatically sent so that when a product is no longer in stock automatically the status out of stock
I hope you understand what I mean :-)

I want to realize a ticket system with a certain number of places. There are different numbers of each ticket. if a ticket is sold out now, the user should automatically receive a confirmation instead of the normal order confirmation that he is on a waiting list

Re: adjust the order queue to stock

Posted: 22 Sep 2018, 10:45
by Jan
Hi, for now, there is no such option and in case it should be automatically, maybe some specific script (which will run by CRON on the server) should be created - some which will check the database directly.

the user should automatically receive a confirmation instead of the normal order confirmation that he is on a waiting list
So if I understand it correctly, you let the user make an order even the stock status of the product is < 0. And in case it is < 0, specific mail will be sent to the user who made the order.

So maybe the solution can be to add some new email variable: https://www.phoca.cz/documents/116-phoc ... or-vendors

e.g. {stockstatuszerodescription} which you will paste into the e.g. pending email text and such variable will be transformed to some description set in options (and of course only in case some of the product is out of the stock) :idea:

Jan