It works, but I get “Unable to find exchange rate” error, I believe because default price list is empty and the server side script fails? What’s the best way to get rid of this error message?
NOTE: the two companies are setup with different currencies
The strange thing is, there is no exchange rate needed because both the company and the price list are in the same currency. The XHR request is made with a blank from_currency (because there is no default price list before the custom script sets it) and hence the response generates the error message.
The problem was that my previous custom script was using add_fetch which gets executed after form “unload” event so unsetting the global default pricelist was generating the error. I changed the add_fetch to: