Select a retailer

'),o.forEach(o=>{console.log(o),console.log("retailer_name",o.retailer_name),str=o.retailer_name.replace(/\s+/g,"-");var t="Buy Now";o.button_name&&(t=o.button_name),$(".howtobuylis").append(`\n
\n
\n
\n
\n \n
\n
\n ${t}\n
\n
\n
\n
\n `)}))},error:function(o,t){console.log("currency error")}});var data1=fetch("/graphql",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:"Bearer "+token},body:JSON.stringify({query:`\n query productById{\n site {\n product(entityId: ${pid}) {\n id\n sku\n entityId\n name\n defaultImage {\n url(width: 320)\n }\n }\n }\n}\n\n`})}).then(o=>o.json()).then(o=>{var t=o.data.site.product.defaultImage.url,e=o.data.site.product.sku;$(".product-class-popup").children().hide(),$(".product-class-popup").html(`
`),$(".add-to-cart-btn-popup").attr("data-product-main",e),console.log("image",t),console.log("sku",e)});function getUrlParameter(o){var t,e,n=window.location.search.substring(1).split("&");for(e=0;e