window.processing = true;

Shop

window.sortBy = "best-selling"; window.productCardList = [{"id":8802186199321,"title":"Whole Nine Yards","handle":"whole-nine-yards-hard-cider","description":"\u003cmeta charset=\"utf-8\"\u003e\n\u003ch4 data-mce-fragment=\"1\"\u003eSweet, moreish and seductively tart. Bursting with more flavor than ever from apples. Perfectly refreshing year-round.\u003c\/h4\u003e","published_at":"2023-09-18T06:42:30-04:00","created_at":"2023-10-02T10:30:23-04:00","vendor":"Pinter","type":"Press","tags":["Additional Product Type|Classic","Additional Product Type|Hard Cider","CRM_Fresh-press","Filter Product Type|Fresh Beer","Gluten Free","HIGHESTRATEDFEB","Icons|apple","Icons|british","Icons|refreshing","Icons|simple","SHOPALLCOLLECTION","Vegan"],"price":2599,"price_min":2599,"price_max":2599,"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":47057809342745,"title":"One-off","option1":"One-off","option2":null,"option3":null,"sku":"WNYREF3","requires_shipping":true,"taxable":true,"featured_image":null,"available":false,"name":"Whole Nine Yards - One-off","public_title":"One-off","options":["One-off"],"price":2599,"weight":1996,"compare_at_price":null,"inventory_management":"shopify","barcode":"5060904690849","requires_selling_plan":false,"selling_plan_allocations":[{"price_adjustments":[],"price":2599,"compare_at_price":null,"per_delivery_price":2599,"selling_plan_id":689337762073,"selling_plan_group_id":"6af3bacc726a1376e9130529b13256c02ffdde76"}],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/pinter.com\/cdn\/shop\/files\/WholeNineYardscopy_03_1.jpg?v=1698925287"],"featured_image":"\/\/pinter.com\/cdn\/shop\/files\/WholeNineYardscopy_03_1.jpg?v=1698925287","options":["Title"],"media":[{"alt":null,"id":35807704252697,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1800,"width":1800,"src":"\/\/pinter.com\/cdn\/shop\/files\/WholeNineYardscopy_03_1.jpg?v=1698925287"},"aspect_ratio":1.0,"height":1800,"media_type":"image","src":"\/\/pinter.com\/cdn\/shop\/files\/WholeNineYardscopy_03_1.jpg?v=1698925287","width":1800}],"requires_selling_plan":false,"selling_plan_groups":[{"id":"6af3bacc726a1376e9130529b13256c02ffdde76","name":"Pinter","options":[{"name":"Pinter","position":1,"values":["Monthly"]}],"selling_plans":[{"id":689337762073,"name":"Monthly","description":"Monthly plan","options":[{"name":"Pinter","position":1,"value":"Monthly"}],"recurring_deliveries":true,"price_adjustments":[],"checkout_charge":{"value_type":"percentage","value":100}}],"app_id":null}],"content":"\u003cmeta charset=\"utf-8\"\u003e\n\u003ch4 data-mce-fragment=\"1\"\u003eSweet, moreish and seductively tart. Bursting with more flavor than ever from apples. Perfectly refreshing year-round.\u003c\/h4\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; } })); }