- Go to your Shopify
admin/settings/filespage - Open your browser Dev tools, go to the console
Then, depending on the option you choose:
- Make sure your browser is set to download files automatically and doesn't ask for the download location every time
| {% capture option_titles %}Color,color,Colour,colour{% endcapture %} | |
| {% assign option_titles = option_titles | split:',' %} | |
| {% for option in product.options %} | |
| {% if option_titles contains option %} | |
| {% capture option_index %}option{{ forloop.index }}{% endcapture %} | |
| {% assign option_values = product.variants | map: option_index | uniq %} | |
| {% if option_values.size != 1 %} | |
| {% for opt in option_values %} |
admin/settings/files pageThen, depending on the option you choose:
MailChimp's default popup scripts can break on WordPress sites that use jQuery/jQuery UI unless you include their embed code as the final elements before the closing body tag.
Including them in this way isn't always possible or easy with WordPress.
The code below is an alternative implementation of the loader that forces MailChimp's popup scripts to appear below all other scripts upon page load.
To use it, modify the baseUrl, uuid, and lid attributes with the ones from the original popup script that MailChimp supplies.