It looks like you found the solution I would have suggested. If this was available via a setting, then it would be found in the Admin: Order area.
https://hotcakescommerce....8664636-Admin-Orders Since it's not there, you'll want to do two things.
First, I'd suggest updating your [url=https://hotcakescommerce.zendesk.com/hc/en-us/articles/205426325-Creating-Custom-Viewsets]custom viewset[/url] to pre-emptively warn customers about the minimum order requirement. You could even make this a dynamic message by checking the order total via a web service call or at page load.
Next would be what you found for a solution, check the order (cart) total using the [url=https://hotcakescommerce.zendesk.com/hc/en-us/articles/204725949-Example-Action-Delegate-Pipeline-Integration-Project]action delegate pipeline integration extension point[/url]. You can run code before the checkout is loaded, using the BeforeProceedToCheckout event.
The reason I'd suggest doing both is to not surprise customers at the checkout. This would generally not be a good user experience, and it could even cause customers to question their trust in the website.
Will Strohl, Upendo Ventures
Hotcakes Cloud |
Get Support |
Code Support Official Cloud & Support provider for Hotcakes