Skip to content
This repository has been archived by the owner on Aug 30, 2018. It is now read-only.

Commit

Permalink
Merge pull request #466 from Shopify/data-sku
Browse files Browse the repository at this point in the history
Add data-sku to option on product page
  • Loading branch information
cshold committed Aug 27, 2015
2 parents ce60cff + a7bcd2a commit ef682e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/product.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
{% comment %}
Note: if you use option_selection.js, your <select> tag will be overwritten, meaning what you have inside <option> will not reflect what you coded below.
{% endcomment %}
<option {% if variant == product.selected_or_first_available_variant %} selected="selected" {% endif %} value="{{ variant.id }}">{{ variant.title }} - {{ variant.price | money_with_currency }}</option>
<option {% if variant == product.selected_or_first_available_variant %} selected="selected" {% endif %} data-sku="{{ variant.sku }}" value="{{ variant.id }}">{{ variant.title }} - {{ variant.price | money_with_currency }}</option>

{% else %}
<option disabled="disabled">
Expand Down

0 comments on commit ef682e0

Please sign in to comment.