Baseball cap sun embroidered peaked cap warm plush hat
${function() {
const variantData = data.variant || {"id":"3aee2a5d-d7a2-421a-a715-b479b679f2c6","product_id":"4fe21546-3a02-40ba-86d6-83a616a54970","title":"White","weight_unit":"g","inventory_quantity":999,"sku":"XH5XqRdxO-White","barcode":"","position":1,"option1":"White","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/21b95a8ee06f0c7eff0dae20b3fc8be1.jpeg","path":"21b95a8ee06f0c7eff0dae20b3fc8be1.jpeg","width":1200,"height":1200,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":13.89,"min_quantity":1}],"weight":"180","compare_at_price":"20","price":"13.89","retail_price":"20","available":true,"url":"\/products\/baseball-cap-sun-embroidered-peaked-cap-warm-plush-hat?variant=3aee2a5d-d7a2-421a-a715-b479b679f2c6","available_quantity":999999999,"options":[{"name":"Color","value":"White"}],"off_ratio":31,"flashsale_info":[],"sales":9};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `-`
}
`;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
people are viewing this right now
Product was out of stock.
Product is unavailable.
${function() {
const postageFreeAmount = 69;
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 `
`;
}()}