Men & Women's Cowboy Hats Woven Beads Decoration Curling Straw Hat
${function() {
const variantData = data.variant || {"id":"9f508932-96f2-4133-a2be-b44d1ac6fa45","product_id":"5d0af599-0592-47c1-9c1d-365fb9e05dd2","title":"Coffee","weight_unit":"kg","inventory_quantity":997,"sku":"MFOX-618560739631-Cof","barcode":"","position":1,"option1":"Coffee","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/c9edf19b39e2db47cba3bad7d2947dbb.jpeg","path":"c9edf19b39e2db47cba3bad7d2947dbb.jpeg","width":1100,"height":1100,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":27.59,"min_quantity":1}],"weight":"0.2","compare_at_price":"23.99","price":"27.59","retail_price":"23.99","available":true,"url":"\/products\/men-womens-cowboy-hats-woven-beads-decoration-curling-straw-hat?variant=9f508932-96f2-4133-a2be-b44d1ac6fa45","available_quantity":997,"options":[{"name":"Color","value":"Coffee"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
Coffee
${function(){
const optName = "Color";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value : data.originData.value;
const optionValueText = optionValue ? (optionValue) : '';
return `${optionValueText} `;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Add to cart
$27.59
${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":"9f508932-96f2-4133-a2be-b44d1ac6fa45","product_id":"5d0af599-0592-47c1-9c1d-365fb9e05dd2","title":"Coffee","weight_unit":"kg","inventory_quantity":997,"sku":"MFOX-618560739631-Cof","barcode":"","position":1,"option1":"Coffee","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/c9edf19b39e2db47cba3bad7d2947dbb.jpeg","path":"c9edf19b39e2db47cba3bad7d2947dbb.jpeg","width":1100,"height":1100,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":27.59,"min_quantity":1}],"weight":"0.2","compare_at_price":"23.99","price":"27.59","retail_price":"23.99","available":true,"url":"\/products\/men-womens-cowboy-hats-woven-beads-decoration-curling-straw-hat?variant=9f508932-96f2-4133-a2be-b44d1ac6fa45","available_quantity":997,"options":[{"name":"Color","value":"Coffee"}],"off_ratio":0,"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;