Hoooraaaaay!!! I’ve dun it…[applause]
So i followed the youtube above then did wot fella described (im using the narrative theme FYI):
"For those of you who are having issues with the default variant not loading and requiring the user to select a variant before the script fires:
This is what worked for me on the Shopify Debut Theme.
Find the following code:
Shopify.linkOptionSelectors({{ product | json }});
It is located in the following if statement
{% if product.available and product.options.size > 1 %}
...
Shopify.linkOptionSelectors({{ product | json }});
...
{% endif %}
Simply move it directly outside of the if statement:
{% if product.available and product.options.size > 1 %}
...
// Line removed from here
...
{% endif %}
// Line added here
**Shopify.linkOptionSelectors({{ product | json }});**
& badabing badaboh!
SKILLz, cash monies dollar dollar bills coming my way (quickly converted to $btc & $doge ; )
Goodluck : P
ps. shopify community is changing some of the html 4 sum reason so dont copy from here…checkout the comments at https://gist.github.com/jonathanmoore/c0e0e503aa732bf1c05b7a7be4230c61 post Mar 14, 2018