adjust the order queue to stock

Phoca Cart - complex e-commerce extension
webstuff
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 22 Sep 2018, 07:18

adjust the order queue to stock

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: adjust the order queue to stock

Post 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
If you find Phoca extensions useful, please support the project
Post Reply