5000 character limit stops me from embedding new Shopify buy button

i would have to do this for 200 products… we need the 5k limit removed… please. its quite simple isnt it?

If you use my code and simply add a dynamic field to where the product ID is held, and then on your product collection store the product ID for each of your shopify products then this should work dynamically.

Dear all,

I have found a solution. This is will minify it effectively enough: UglifyJS 3: Online JavaScript minifier
In my case, it reduced the code to around 4700 characters.

Start uglifying it with “(function () {
var scriptURL = ‘https://sdks.shopifycdn.com/buy-button/latest/buy-button-storefront.min.js’;”

The beginning and ending (incl. the buy button comment for some reason) will be needed for the final code.

Bests,
G

2 Likes