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

Does Not Work When Linked Against jQuery >=1.8.3

jordanyee opened this issue · comments

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'.

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

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 }}