window.processing = true;

Shop

Not sure where to start? Help me buy

window.sortBy = "best-selling";
window.processing = false;
window.productCardList = [{"id":7158991913035,"title":"Taproom Pack","handle":"taproom-pack-1","description":"\u003cp\u003eWe’re opening Pinter Taprooms across the UK and we want you to run them.\u003c\/p\u003e\n\u003cp\u003eLet's bring our Pinter community even closer together starting with this Taproom Pack, including glassware, tasting note cards, and coasters.\u003c\/p\u003e","published_at":"2024-06-19T14:36:05+01:00","created_at":"2024-06-19T14:22:26+01:00","vendor":"Pinter","type":"Bundle","tags":["AMBASSADORS"],"price":4000,"price_min":4000,"price_max":4000,"available":true,"price_varies":false,"compare_at_price":null,"compare_at_price_min":0,"compare_at_price_max":0,"compare_at_price_varies":false,"variants":[{"id":40864442056779,"title":"One-off","option1":"One-off","option2":null,"option3":null,"sku":"TASTING_BUNDLE1","requires_shipping":true,"taxable":true,"featured_image":{"id":30971847901259,"product_id":7158991913035,"position":1,"created_at":"2024-06-19T09:22:00+01:00","updated_at":"2024-06-19T09:22:02+01:00","alt":null,"width":1080,"height":1080,"src":"\/\/pinter.co.uk\/cdn\/shop\/files\/Product_TaproomPackArtboard1.jpg?v=1718785322","variant_ids":[40864442056779]},"available":true,"name":"Taproom Pack - One-off","public_title":"One-off","options":["One-off"],"price":4000,"weight":4000,"compare_at_price":null,"inventory_management":"shopify","barcode":"","featured_media":{"alt":null,"id":23299762061387,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1080,"width":1080,"src":"\/\/pinter.co.uk\/cdn\/shop\/files\/Product_TaproomPackArtboard1.jpg?v=1718785322"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/pinter.co.uk\/cdn\/shop\/files\/Product_TaproomPackArtboard1.jpg?v=1718785322"],"featured_image":"\/\/pinter.co.uk\/cdn\/shop\/files\/Product_TaproomPackArtboard1.jpg?v=1718785322","options":["Title"],"media":[{"alt":null,"id":23299762061387,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1080,"width":1080,"src":"\/\/pinter.co.uk\/cdn\/shop\/files\/Product_TaproomPackArtboard1.jpg?v=1718785322"},"aspect_ratio":1.0,"height":1080,"media_type":"image","src":"\/\/pinter.co.uk\/cdn\/shop\/files\/Product_TaproomPackArtboard1.jpg?v=1718785322","width":1080}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003cp\u003eWe’re opening Pinter Taprooms across the UK and we want you to run them.\u003c\/p\u003e\n\u003cp\u003eLet's bring our Pinter community even closer together starting with this Taproom Pack, including glassware, tasting note cards, and coasters.\u003c\/p\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; } })); }