$("#categoriesListView").css("display", "none");
$("#blog-side-info-wrapper").insertBefore("#gridView");
}
-
- // remove for testing
// navigate back to products page if on single product page
if ((window.location.href.indexOf("products-2/?pagename") >= 0)) {
$("#gridView").css("display", "inherit");
$("#listView").css("display", "inherit");
$("#categoriesGridView").hide();
- $("#categoriesListView").hide()
+ $("#categoriesListView").hide();
$("#tagBox :checkbox:checked").each(function() {
$("." + $(this).val()).show();
});
$("#categoriesListView").show();
$("#gridView").css("display", "none");
$("#listView").css("display", "none");
+
} else if ($("#tagBox :checkbox:checked").length === 0){
$(".product").show();
}
+ if($("#tagBox :checkbox:checked").length === 0 && window.location.href.indexOf("products-3/") >= 0){
+// $("#categoriesGridView").show();
+// $("#categoriesListView").show();
+ $("#gridView").css("display", "inherit");
+ $("#listView").css("display", "none");
+ $(".product").show();
+ } else if ($("#tagBox :checkbox:checked").length === 0){
+// $(".product").show();
+ }
});
+
+
// toggle search bar
// $("#search-icon").click(function () {
// $(".searchform").animate({width: 'toggle'}, 1000);
$("#gridView").css("display", "inherit");
$("#listView").css("display", "inherit");
$("#categoriesGridView").hide();
- $("#categoriesListView").hide()
+ $("#categoriesListView").hide();
$("#tagBox :checkbox:checked").each(function() {
$("." + $(this).val()).show();
});
$("#categoriesListView").css("display", "none");
$("#blog-side-info-wrapper").insertBefore("#gridView");
}
-
- // remove for testing
// navigate back to products page if on single product page
if ((window.location.href.indexOf("products-2/?pagename") >= 0)) {
$("#gridView").css("display", "inherit");
$("#listView").css("display", "inherit");
$("#categoriesGridView").hide();
- $("#categoriesListView").hide()
+ $("#categoriesListView").hide();
$("#tagBox :checkbox:checked").each(function() {
$("." + $(this).val()).show();
});
$("#categoriesListView").show();
$("#gridView").css("display", "none");
$("#listView").css("display", "none");
+
} else if ($("#tagBox :checkbox:checked").length === 0){
$(".product").show();
}
+ if($("#tagBox :checkbox:checked").length === 0 && window.location.href.indexOf("products-3/") >= 0){
+// $("#categoriesGridView").show();
+// $("#categoriesListView").show();
+ $("#gridView").css("display", "inherit");
+ $("#listView").css("display", "none");
+ $(".product").show();
+ } else if ($("#tagBox :checkbox:checked").length === 0){
+// $(".product").show();
+ }
});
+
+
// toggle search bar
// $("#search-icon").click(function () {
// $(".searchform").animate({width: 'toggle'}, 1000);
$("#gridView").css("display", "inherit");
$("#listView").css("display", "inherit");
$("#categoriesGridView").hide();
- $("#categoriesListView").hide()
+ $("#categoriesListView").hide();
$("#tagBox :checkbox:checked").each(function() {
$("." + $(this).val()).show();
});