When clicking checkout from the cart page, the check does get invoked and if the total is not within the minimum and maximum amounts an error message is displayed.

Would it be possible to trigger whatever is being triggered when the checkout button is pressed on the block that this module creates so that the same error message is displayed.

because currently it does not tell the user this until they have filled in all their customer profile information and have clicked to continue to payment (or at least this is the case in my current setup)

Comments

Joe Huggans’s picture

Issue summary: View changes
joelpittet’s picture

That sounds like a problem for moa not this queue. Check if it has a JS event listener or trigger that can be checked?

Considering moving the project over to moa

subhojit777’s picture

Status: Active » Closed (won't fix)

Agree with @joelpittet on this. That feature cannot be part of this module, and also I doubt that commerce_moa maintainers will allow this to be part of their module. I guess you have to write something custom, try @joelpittet's suggestion.

P.S. Sorry for late response.