Cowboy Hats, Classic American Flag Summer Sunhat Western Cowboy Hat for Men Boys Kids
${function() {
const variantData = data.variant || {"id":"50cc349f-cb02-4b1e-85da-af907cd81754","product_id":"c09e09a2-9308-4ec9-9141-e42d388eb125","title":"","weight_unit":"kg","inventory_quantity":100,"sku":"B07D3WXBS4","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":55.99,"min_quantity":1}],"weight":"0","compare_at_price":"64","price":"55.99","retail_price":"64","available":true,"url":"\/products\/cowboy-hats-classic-american-flag-summer-sunhat-western-cowboy-hat-for-men-boys-kids?variant=50cc349f-cb02-4b1e-85da-af907cd81754","available_quantity":100,"options":[],"off_ratio":13,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Add to cart
$55.99
${function(){
const wholesale_enabled = false;
const qty = data.quantity || 1;
const currentSelectVariant = data.variant;
const defaultVariant = (data.product && data.product.variants && data.product.variants[0]);
const productVariant = {"id":"50cc349f-cb02-4b1e-85da-af907cd81754","product_id":"c09e09a2-9308-4ec9-9141-e42d388eb125","title":"","weight_unit":"kg","inventory_quantity":100,"sku":"B07D3WXBS4","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":55.99,"min_quantity":1}],"weight":"0","compare_at_price":"64","price":"55.99","retail_price":"64","available":true,"url":"\/products\/cowboy-hats-classic-american-flag-summer-sunhat-western-cowboy-hat-for-men-boys-kids?variant=50cc349f-cb02-4b1e-85da-af907cd81754","available_quantity":100,"options":[],"off_ratio":13,"flashsale_info":[],"sales":0};
const variantData = currentSelectVariant || defaultVariant || productVariant;
const wholesale_price = variantData.wholesale_price || [];
if(wholesale_enabled && wholesale_price.length > 0) {
let wholesaleIndex = wholesale_price.findIndex(item => {
return item.min_quantity > qty;
});
if(wholesaleIndex < 0){
wholesaleIndex = wholesale_price.length - 1;
}else if(wholesaleIndex > 0){
wholesaleIndex = wholesaleIndex - 1;
}
const wholesalePrice = wholesale_price[wholesaleIndex] || '';
return `
`
}else {
const price = variantData && variantData.price;
return price != undefined ? `
` : ' ';
}
}()}
Buy now
Product was out of stock.
Product is unavailable.
North America: 10-15 days;
Europe: 5-10 days;