Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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.
Hope this helps
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted