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

Does Not Work When Linked Against jQuery >=1.8.3 #2

Open jordanyee opened 11 years ago

jordanyee commented 11 years ago

The calculator does not display anything after clicking 'Calculate shipping'.

The console reports: TypeError: 'undefined' is not a function (evaluating 'template.tmpl(response)')

Steps to reproduce:

  1. Link against jQuery >= 1.8.3
  2. Visit page with shipping calculator.
  3. Enter Province, Country, and Zip/Postal Code.
  4. Click 'Calculate shipping'.
jordanyee commented 11 years ago

Actually, I have no idea what caused that console error. It did work after I linked it against jQuery 1.7.2, but then it randomly stopped and started generating the same error again.

Seems like I'm experiencing the same strange bug as in this forum post: http://ecommerce.shopify.com/c/ecommerce-design/t/resolved-shipping-calculator-115709

maherelaridi commented 10 years ago

Was getting the same error as @jordanyee. Tried your solution, it works! thanks

{{ 'http://code.jquery.com/jquery-1.7.2.min.js' | script_tag }}