Ethnic Style Hollow Straw Hat
${function(){
const optName = "Color";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value[0] : data.originData.value;
return `
Please select a Color
`;
}()}
${function(){
const optName = "Size";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value[0] : data.originData.value;
return `
Please select a Size
`;
}()}
${function() {
const variantData = data.variant || {"id":"831f219d-3935-46ef-8941-07b9dc68d0dc","product_id":"722640a9-5cf9-4311-8866-8eb933291ce9","title":"Coffee-One-Size","weight_unit":"kg","inventory_quantity":998,"sku":"LD603-Coffee-One-Size","barcode":"","position":1,"option1":"Coffee","option2":"One-Size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/625c2738506ab93d91469744899d7613.jpeg","path":"625c2738506ab93d91469744899d7613.jpeg","width":675,"height":900,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":24.99,"min_quantity":1}],"weight":"0","compare_at_price":"38.99","price":"24.99","retail_price":"38.99","available":true,"url":"\/products\/ethnic-style-hollow-straw-hat?variant=831f219d-3935-46ef-8941-07b9dc68d0dc","available_quantity":998,"options":[{"name":"Color","value":"Coffee"},{"name":"Size","value":"One-Size"}],"off_ratio":36,"flashsale_info":[],"sales":1};
const saveType = "amount";
const productSaveLabel = false;
return `
-
${saveType == 'percent' ? `-${variantData.off_ratio}%` : `-` }
`; }()}
Free worldwide shipping 80$ +
Product was out of stock.
Product is unavailable.
Estimated Delivery:Apr-21 - Apr-25
${function() {
const type = 'hero';
const postageFreeAmount = 80;
const custom_text_hero = "Buy {amount} more to enjoy FREE Shipping";
const totalPrice = +data.total_price;
const diffPrice = postageFreeAmount - totalPrice;
const percentDiff = (diffPrice > 0 ? (totalPrice / postageFreeAmount * 100) : 100) + '%';
let tipText = "Your order is free delivery";
const custom_text_wind = "Buy {amount} more to enjoy FREE Shipping";
const custom_text = type === 'hero' ? custom_text_hero : custom_text_wind;
if (diffPrice > 0) {
tipText = custom_text.replace('{amount}', `
`);
}
return `
${type === 'hero' ?
`
` :
`
${tipText}
Your order is free delivery
`
}
`;
}()}
${function() {
const minInventory = parseInt('10');
const maxInventory = parseInt('50');
const randomInventory = Math.round(Math.random() * (maxInventory - minInventory)) + minInventory;
const customText = "Only {stock} item(s) left in stock!".replace(/\{stock\}/g, '' + randomInventory + '');
const barWidth = (randomInventory / maxInventory) * 100 + '%';
return `
`;
}()}
people are viewing this right now