Skip to content

Instantly share code, notes, and snippets.

@levinmejia
Last active March 22, 2017 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save levinmejia/52ae05dd3592005d864e to your computer and use it in GitHub Desktop.
Save levinmejia/52ae05dd3592005d864e to your computer and use it in GitHub Desktop.
<div class="units_in_case_packs">
<p> Quantity (units in case pack increments)</p></div>
<div class="quantity_dropdown"><!--style class for the dropdown>-->
<label for="qty"></label>
<select id="quantity" name="quantity">
{% for i in (1..12) %} <!-- i is the interval value that we are going to multiplying. -->
<option value="{{ i | times:6}}">{{ i | times:6 }}</option> <!-- we use a multiple that corresponds to your case pack in this case we have packs of 6 but you can use any multiple.-->
{% endfor %}
</select></div>
<input type="submit" name="add" class="btn_c" id="addToCart" value="{{ 'products.product.add_to_cart' | t }}">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment