I am trying to prevent a sales order from being created when conditions are met regarding items in a customers cart on a SuiteCommerce Advanced site using the Scriptable Cart.
I'm using a User Event and nlapiCreateError()
to send the error but the Sales Order goes through anyway and the error is only displayed in the execution log in NS.
Is there a way to display the error on the SCA site and prevent the Sales Order from being created?