After receiving an error of "Please enter a value ...
# suitecommerce
a
After receiving an error of "Please enter a value for amount" when placing an order in SuiteCommerce Standard web store, the checkout process seems to lose track of the selected Shipping Address. The Shipping Address text field is still populated, but the Ship To address book entry is no longer set, so when the Sales Order gets created, the address text box is populated but no actual ship address is set, and this messes up other processes that assume there will be a shipping address and try to look up things like Ship State from it. Best thing to do is prevent the error from occurring in the first place, but how can we correctly deal the blanking out of the Ship To field when it happens? I'm considering backing up the Ship To to a custom field in beforeSubmit, and then on the next attempted save, also in beforeSubmit, if there's nothing in Ship To to back up, then restore it from the backup field. That seems like something I shouldn't have to be doing though, especially when I consider there are a few ways it might restore a value different than what the user wanted and the order could get shipped to the wrong place.