Streaming live at 10am (PST)

Reached 10000 limit in custom code


#1

Hi,

We have a website that uses custom code to link to a Shopify cart - buy now button (due to the need for a checkbox in UK law).

https://www.zonev.com/product/v-software-only

Unfortunately I need to update the terms & conditions in the popup and this takes me over the 10000 character limit for custom code.

Here is the code: https://shrib.com/UgXVALMvgOX7Pep

Also, if there is anyone who has been able to add the quantity button for Shopify into a custom Webflow popup, please feel free to weigh in! Shopify SDK here: http://shopify.github.io/js-buy-sdk/

Thanks in advance,
Richard


#2

Hey space_cadet , when using custom code always be sure to minify it to reduce the character count. Here are 2 free services you can use: http://www.willpeavy.com/minifier/ and http://minifycode.com/html-minifier/

Not sure if these will help too much since you have a lot of text in the Terms & Conditions, but it should get the count down at least a little.


#3

Or you can split the code into two embed code fields (provided you don't break any JavaScript functions).