Our client wants to be able to process pre-orders i.e. purchase a book before it is published.
Is it possible to hook into the order finalization process in Vendr Checkout and set status to either New or PreOrder, depending on some property in the order details e.g. IsPreOrder?
Sure. Vendr throws a lot of events that you can hook into, including an OrderFinalizingNotification event so you can use this to know when an order is finalizing and alter the status accordingly. https://vendr.net/docs/core/1.5.0/key-concepts/events/
You can also use order properties to store the relevant information as to whether it is a pre order https://vendr.net/docs/core/1.5.0/key-concepts/properties/ You could set that on your product doc type and look at using Automatic Properties (documented on the link above) to auto copy that value to the order line.
Vendr Checkout - custom order status
Our client wants to be able to process pre-orders i.e. purchase a book before it is published.
Is it possible to hook into the order finalization process in Vendr Checkout and set status to either New or PreOrder, depending on some property in the order details e.g. IsPreOrder?
Hi Lesley,
Sure. Vendr throws a lot of events that you can hook into, including an
OrderFinalizingNotification
event so you can use this to know when an order is finalizing and alter the status accordingly. https://vendr.net/docs/core/1.5.0/key-concepts/events/You can also use order properties to store the relevant information as to whether it is a pre order https://vendr.net/docs/core/1.5.0/key-concepts/properties/ You could set that on your product doc type and look at using Automatic Properties (documented on the link above) to auto copy that value to the order line.
Hope this helps
Matt
is working on a reply...