Skip to content

Instantly share code, notes, and snippets.

@gterrill
Created February 19, 2015 05:12
Show Gist options
  • Save gterrill/9670295b1e4982bbfaf5 to your computer and use it in GitHub Desktop.
Save gterrill/9670295b1e4982bbfaf5 to your computer and use it in GitHub Desktop.
Datepicker with option data-startonly='true' attribute
<input id="{{ attribute }}-{{ product.handle }}" type="text" name="properties[{{ attribute }}]" size="12" class="datepicker bta required bta-load-enable" data-handle="{{ product.handle }}" data-variant="{{ product.variants.first.id}}" data-bta-product-config="{{ product.metafields.bookthatapp.config }}" data-bta-variant-config="{% for variant in product.variants %}{{ variant.id }}:{{ variant.metafields.bookthatapp.config }}{% unless forloop.last %},{% endunless %}{% endfor %}" disabled="disabled" data-startonly="true" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment