{{ page.name }}
{% endfor %} {% endcapture %} - - {% if category.products.size > 1 %} -{{ product.name }}
+ {% for category in product.categories %} + + {% if category.name == 'Pre-Order' %} + Pre-Order + {% endif %} + {% endfor %} + {% if product_status != blank %}{{ product_status }}{% endif %} +-
+ {% for image in product.images %}
+
- + + + + + + {% endfor %} +
+ Available for + Pre-Order +
+ {% endif %} + + {% if category.name == 'Pre-Order' %} + {% for option in product.options %} + + + {% endfor %} + + + +Pre-orders for this shirt are open for two weeks. If it meets the 6 shirt minimum, it will ship to you about two weeks after the pre-order ends.
+ {% endif %} + {% if category.name == 'Tanks' %} +Pre-orders for this tank are open for two weeks. If it meets the 6 tank minimum, it will ship to you about two weeks after the pre-order ends.
+ {% endif %} + {% if category.name == 'Stickers' %} +Pre-orders for this sticker are open for two weeks. If it meets the 6 sticker minimum, it will ship to you about two weeks after the pre-order ends.
+ {% endif %} + {% endfor %} +If an item does not meet the order minimum you will be fully refunded.
+Description
+-
+ {% for option in product.options %}
+
-
+
+ {% unless product.has_default_option %}{{ option.name }}{% endunless %} + + +{{ option.quantity }}+in stock+ +
+ {% endfor %}
+
Description
} document.getElementById("total").value = sum; if (sum > 5) { - document.getElementsByClassName('pre-order--sold')[0].innerHTML = "Pre-Order minimum met!"; + document.getElementsByClassName('pre-order--sold')[0].innerHTML = "Pre-Order met!"; } else { document.getElementsByClassName('pre-order--sold')[0].innerHTML = "" + sum + " sold"; } @@ -329,8 +329,9 @@Description
var dateCreated = "{{ product.created_at }}"; var dateSplit = dateCreated.replace(' ', '-').split('-'); var yearCreated = dateSplit[0]; - var dayCreated = dateSplit[1]; - var monthCreated = dateSplit[2]; + var monthCreated = dateSplit[1]; + var dayCreated = dateSplit[2]; + console.log(dateCreated); // //Set 1 day in milliseconds var one_day = 1000*60*60*24 @@ -353,6 +354,7 @@Description
// // Show the results of DateDiff to make sure the math is right console.log("You have " + DateDiff(createdDate, currentDate) + " left"); + console.log(new Date(createdDate).getTime() + (14 * one_day)); // // If the number of days left if 0 // The DateDiff function makes the "createdDate the deadline date @@ -368,6 +370,12 @@Description
// // // + if (window.location.href.indexOf("testing") > -1) { + console.log("your url contains testing"); + } + // + // + // //function findTotal(){ //var arr = document.getElementsByClassName('option-sold'); //var tot=0; diff --git a/BC-Products.html b/BC-Products.html index cc433d8..a69a41e 100644 --- a/BC-Products.html +++ b/BC-Products.html @@ -6,7 +6,7 @@Products
- Everything {% for category in categories.active %} -
- {{ category | link_to }} + {% endfor %}