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

Countries.updateProvinceLabel is not a function

thomasparsons opened this issue · comments

Hi there,

I get this error Countries.updateProvinceLabel is not a function

seemingly on line 3403

from here:

return _init = function() {
        new Shopify.CountryProvinceSelector("address_country","address_province",{
            hideElement: "address_province_container"
        });
        var e = jQuery("#address_country")
          , t = jQuery("#address_province_label").get(0);
        "undefined" != typeof Countries && (Countries.updateProvinceLabel(e.val(), t),
        e.change(function() {
            Countries.updateProvinceLabel(e.val(), t)
        })),

I assumed it was because I running an old version of jQuery, however the error persists when I upgraded it to 1.7

other than that, everything seems fine - html/liquid wise, it's just failing on load. the code is running, after jquery has been called

@carolineschnapp Same problem for me ☹️ Can you help ?