Women's Sun Protection Sun Hat with Large Brim, Black and White Polka Dot Patch, All-match Straw Hat
${function() {
const variantData = data.variant || {"id":"7b159919-0e7a-4ba4-856c-cf9b74d0f025","product_id":"7e68a90b-a9cb-4db8-aec8-40fb81b045e5","title":"White","weight_unit":"kg","inventory_quantity":0,"sku":"716449726376-White","barcode":"","position":1,"option1":"White","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/c84f740f2426c9a66e826614ec05d00e.jpeg","path":"c84f740f2426c9a66e826614ec05d00e.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":138.99,"min_quantity":1}],"weight":"0.5","compare_at_price":"138.99","price":"138.99","retail_price":"138.99","available":true,"url":"\/products\/womens-sun-protection-sun-hat-with-large-brim-black-and-white-polka-dot-patch-all-match-straw-hat?variant=7b159919-0e7a-4ba4-856c-cf9b74d0f025","available_quantity":999999999,"options":[{"name":"color","value":"White"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
color:
White
${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
$138.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":"7b159919-0e7a-4ba4-856c-cf9b74d0f025","product_id":"7e68a90b-a9cb-4db8-aec8-40fb81b045e5","title":"White","weight_unit":"kg","inventory_quantity":0,"sku":"716449726376-White","barcode":"","position":1,"option1":"White","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/c84f740f2426c9a66e826614ec05d00e.jpeg","path":"c84f740f2426c9a66e826614ec05d00e.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":138.99,"min_quantity":1}],"weight":"0.5","compare_at_price":"138.99","price":"138.99","retail_price":"138.99","available":true,"url":"\/products\/womens-sun-protection-sun-hat-with-large-brim-black-and-white-polka-dot-patch-all-match-straw-hat?variant=7b159919-0e7a-4ba4-856c-cf9b74d0f025","available_quantity":999999999,"options":[{"name":"color","value":"White"}],"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.