carolineschnapp / shipping-calculator

To use in Shopify to add a shipping rates calculator to the cart page. Requires jQuery.

Home Page:http://wiki.shopify.com/Adding_a_Shipping_Rates_Calculator_to_your_Cart_Page

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Strange Error Message

suture opened this issue · comments

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

Error : error This cart does not require shipping.

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.

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.")}