This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- add this right after the textarea html code and before the submit / clear button --> | |
<!-- Captcha Placement --> | |
<div class="captcha"> | |
How much is: <input type="text" readonly="readonly" id="question"/> | |
Answer:* <input type="text" id="answer"/> | |
</div> | |
<!-- Captcha Placement --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--Put this code in the bottom before close "<script>" tag--> | |
$(document).ready(function() { | |
Shopify.optionsMapQV[{{ qvp.id }}] = {}; | |
{% if qvp.available and qvp.options.size > 1 %} | |
Shopify.linkOptionSelectorsQV("{{scope}}",{{ qvp | json }}); | |
{% endif %} | |
var selector = jQuery('#{{scope}} .single-option-selector:eq(0)'); | |
selector.trigger('change'); | |
{% if qvp.options.size == 1 %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% comment %} | |
Place this in your product.liquid template, at the bottom. | |
{% endcomment %} | |
{% if product.variants.size > 1 %} | |
<script> | |
var variantImages = {}, | |
thumbnails, | |
variant, | |
variantImage, | |
optionValue, |