window.processing = true;

Shop

window.sortBy = "best-selling"; window.productCardList = [{"id":9591539564825,"title":"Deep Gray Co-Pinter","handle":"deep-gray-co-pinter","description":"\u003ch4\u003e\u003cspan data-mce-fragment=\"1\"\u003eBrew one. Tap one. Used in tandem with your Pinter, the Co-Pinter gives you the freedom to tap and taste your Fresh Beers one after another, without having to wait on just one Fresh Brewing cycle.\u003c\/span\u003e\u003c\/h4\u003e\n\u003c!----\u003e","published_at":"2024-07-15T09:42:33-04:00","created_at":"2024-07-12T06:24:22-04:00","vendor":"Pinter","type":"Co-Pinter","tags":["SHOPALLCOLLECTION"],"price":9900,"price_min":9900,"price_max":9900,"available":false,"price_varies":false,"compare_at_price":null,"compare_at_price_min":0,"compare_at_price_max":0,"compare_at_price_varies":false,"variants":[{"id":49302374383897,"title":"One-off","option1":"One-off","option2":null,"option3":null,"sku":"COPNT3BLK1","requires_shipping":true,"taxable":true,"featured_image":null,"available":false,"name":"Deep Gray Co-Pinter - One-off","public_title":"One-off","options":["One-off"],"price":9900,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/pinter.com\/cdn\/shop\/files\/CoPinter_ProductImages_DeepGrey.jpg?v=1728385866"],"featured_image":"\/\/pinter.com\/cdn\/shop\/files\/CoPinter_ProductImages_DeepGrey.jpg?v=1728385866","options":["Title"],"media":[{"alt":null,"id":39566917370137,"position":1,"preview_image":{"aspect_ratio":1.0,"height":800,"width":800,"src":"\/\/pinter.com\/cdn\/shop\/files\/CoPinter_ProductImages_DeepGrey.jpg?v=1728385866"},"aspect_ratio":1.0,"height":800,"media_type":"image","src":"\/\/pinter.com\/cdn\/shop\/files\/CoPinter_ProductImages_DeepGrey.jpg?v=1728385866","width":800}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003ch4\u003e\u003cspan data-mce-fragment=\"1\"\u003eBrew one. Tap one. Used in tandem with your Pinter, the Co-Pinter gives you the freedom to tap and taste your Fresh Beers one after another, without having to wait on just one Fresh Brewing cycle.\u003c\/span\u003e\u003c\/h4\u003e\n\u003c!----\u003e"}]; callSortingFunction(); function callSortingFunction() { if(window.processing) { setTimeout(function() { callSortingFunction(); },1000); } var sorted_items = getSorted('.card-product', 'data-sort', window.sortBy); $('.listing-shop__inner').html(sorted_items); } function getSorted(selector, attrName, ascordesc) { return $($(selector).toArray().sort(function(a, b){ var aType = a.getAttribute('data-type'); var bType = b.getAttribute('data-type'); var aAvailable = a.getAttribute('data-available'); var bAvailable = b.getAttribute('data-available'); if ((aType === "Pinter" && aAvailable) && (bType === "Tap" || bType === "Co-Pinter")) return -1; else if (aType === "Tap" && aAvailable && bType === "Co-Pinter") return -1; else if (bType === "Pinter" && bAvailable && (aType === "Tap" || aType === "Co-Pinter")) return 1; else if (bType === "Tap" && bAvailable && aType === "Co-Pinter") return 1; else if ((aType === "Tap" || aType === "Pinter" || aType === "Co-Pinter") && aAvailable && (bType !== "Tap" && bType !== "Pinter" && bType !== "Co-Pinter")) return -1; else if ((aType !== "Tap" && aType !== "Pinter" && aType !== "Co-Pinter") && bAvailable && (bType === "Tap" || bType === "Pinter" || bType === "Co-Pinter")) return 1; else if (aAvailable === "false" && bAvailable === "true") return 1; else if (aAvailable === "true" && bAvailable === "false") return -1; var aVal = parseInt(a.getAttribute(attrName)), bVal = parseInt(b.getAttribute(attrName)); if(ascordesc == 'price-ascending'){ return aVal - bVal; } if(ascordesc == 'price-dec'){ return bVal - aVal; } })); }