Tie dye all-match cozy cotton knitted hat
${function() {
const variantData = data.variant || {"id":"0ac8718e-894d-469a-bcce-a4dd1dc62f2b","product_id":"e281b8aa-6005-43e7-be79-a5b28e3cefbc","title":"One Size-Yellow","weight_unit":"g","inventory_quantity":579,"sku":"100316150001","barcode":"","position":1,"option1":"One Size","option2":"Yellow","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/3dfc3359d29c3e3ab8450478f5373c3f.jpeg","path":"3dfc3359d29c3e3ab8450478f5373c3f.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":14,"min_quantity":1}],"weight":"100","compare_at_price":"0","price":"14","retail_price":"0","available":true,"url":"\/products\/tie-dye-all-match-cozy-cotton-knitted-hat?variant=0ac8718e-894d-469a-bcce-a4dd1dc62f2b","available_quantity":999999999,"options":[{"name":"Size","value":"One Size"},{"name":"Color","value":"Yellow"}],"off_ratio":0,"flashsale_info":[],"sales":22};
const saveType = "percentage";
const productLabelDiscountOn = false;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `-`
}
`;
}()}
${function() {
const postageFreeAmount = 70;
const custom_text = "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";
if (diffPrice > 0) {
tipText = custom_text.replace('{amount}', `
`);
}
return `
`;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Product was out of stock.
Product is unavailable.