Women's Wide Brim Wool Ribbon Band Floppy Hat
${function() {
const variantData = data.variant || {"id":"bc506caa-cd7b-4312-8720-f5abbb7ef5ed","product_id":"6ae12594-30c0-45d9-a6ca-2b3d0550b31d","title":"Braided Band_black","weight_unit":"kg","inventory_quantity":99,"sku":"B07Z7DSKJ4","barcode":"","position":2,"option1":"Braided Band_black","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6288a5eebd34797f4e2aa35b723e1420.jpeg","path":"6288a5eebd34797f4e2aa35b723e1420.jpeg","width":1500,"height":978,"alt":"","aspect_ratio":1.5337423312883436},"wholesale_price":[{"price":56.99,"min_quantity":1}],"weight":"0","compare_at_price":"66","price":"56.99","retail_price":"66","available":true,"url":"\/products\/womens-wide-brim-wool-ribbon-band-floppy-hat?variant=bc506caa-cd7b-4312-8720-f5abbb7ef5ed","available_quantity":99,"options":[{"name":"Color","value":"Braided Band_black"}],"off_ratio":14,"flashsale_info":[],"sales":5};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
Braided Band_black
${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
$56.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":"bc506caa-cd7b-4312-8720-f5abbb7ef5ed","product_id":"6ae12594-30c0-45d9-a6ca-2b3d0550b31d","title":"Braided Band_black","weight_unit":"kg","inventory_quantity":99,"sku":"B07Z7DSKJ4","barcode":"","position":2,"option1":"Braided Band_black","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6288a5eebd34797f4e2aa35b723e1420.jpeg","path":"6288a5eebd34797f4e2aa35b723e1420.jpeg","width":1500,"height":978,"alt":"","aspect_ratio":1.5337423312883436},"wholesale_price":[{"price":56.99,"min_quantity":1}],"weight":"0","compare_at_price":"66","price":"56.99","retail_price":"66","available":true,"url":"\/products\/womens-wide-brim-wool-ribbon-band-floppy-hat?variant=bc506caa-cd7b-4312-8720-f5abbb7ef5ed","available_quantity":99,"options":[{"name":"Color","value":"Braided Band_black"}],"off_ratio":14,"flashsale_info":[],"sales":5};
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.