Ecommerce with Shopify add-on - critical update

Hi everyone,

recently Shopify have updated some APIs, and in doing so have broken quite a lot of stuff to do with their ‘Buy Button’, missing their own deadlines to update their own libraries, etc.

So if you are using our ‘eCommerce with Shopify’ integration (msv_shopify), you may find today that it isn’t working 100% when you add items to the cart.

I’ve pushed an update to the marketplace to address this, and I have no doubt it’ll be reviewed and approved quickly.

But if you critically need to apply a fix to a site, you can make a quick edit to the controller.php file within the package folder.

You would change the reference to the URL:

https://sdks.shopifycdn.com/buy-button/latest/buy-button-storefront.min.js

to:

https://cdn.jsdelivr.net/npm/@shopify/buy-button-js/lib/buybutton.umd.min.js

(it’s around line 303)

Or if it’s not urgent, simply wait to download version 1.3 of the add-on when it becomes available.

Cheers
-Ryan

2 Likes