carolineschnapp / shipping-calculator

To use in Shopify to add a shipping rates calculator to the cart page. Requires jQuery.
http://wiki.shopify.com/Adding_a_Shipping_Rates_Calculator_to_your_Cart_Page
61 stars 42 forks source link

Strange Error Message #11

Open suture opened 9 years ago

suture commented 9 years ago

Is there a way to customise this error. It looks strange having "Error : error This".

Error : error This cart does not require shipping.

AlphaThread commented 7 years ago

I have the same question. I am unable to find the source of the ${errorFeedback} variable (found in shipping-rates-calculator.liquid) for this case in either jquery.cart.min.js or shipping-rates-calculator.liquid. Any help would be appreciated.

AlphaThread commented 7 years ago

Realized that the message is contained in an (imported) .js file that we don't have access to directly.

So workaround was implemented instead, replacing:

${errorFeedback}

with:

${errorFeedback.replace("Error: error This cart does not require shipping", "Error: This cart does not require shipping.")}