Last active
March 22, 2017 13:57
-
-
Save levinmejia/52ae05dd3592005d864e to your computer and use it in GitHub Desktop.
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
<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