Shopify Object not defined ?

Shopify Partner
13 0 1

Using Slate theme

Trying to implement linked-options and shipping-calculator i get a JavaScript error for the Shopify object 


Uncaught ReferenceError: Shopify is not defined
    at vendor.js?4564460314141664503:43

Uncaught TypeError: Cannot read property 'ShippingCalculator' of undefined


Uncaught TypeError: Shopify.uniq is not a function

Tried console logging the object out from the linked-options.liquid file and i actually do get it in the console
Also calling in from the devtools console outputs it....

What is causing this?

0 Likes
Highlighted
New Member
8 0 0

Did you try to call Shopify js object after the page loading? In JQuery it will be something like:

 

$(function() {
    console.log(Shopify)
})

 

0 Likes