Retro three-dimensional rhombus pattern knitted hat
${function() {
const variantData = data.variant || {"id":"e1835892-d971-4d71-92ba-2afde1962f54","product_id":"4fc6031e-685e-4326-9089-790fe1935998","title":"White-One Size Fits All","weight_unit":"g","inventory_quantity":999,"sku":"XHP0axpbP-White-OneSizeFitsAll","barcode":"","position":1,"option1":"White","option2":"One Size Fits All","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/175b7dc154bbf01466043680f5a8882e.jpeg","path":"175b7dc154bbf01466043680f5a8882e.jpeg","width":1920,"height":1279,"alt":"","aspect_ratio":1.5011727912431587},"wholesale_price":[{"price":8.89,"min_quantity":1}],"weight":"180","compare_at_price":"18","price":"8.89","retail_price":"18","available":true,"url":"\/products\/retro-three-dimensional-rhombus-pattern-knitted-hat?variant=e1835892-d971-4d71-92ba-2afde1962f54","available_quantity":999999999,"options":[{"name":"Color","value":"White"},{"name":"Size","value":"One Size Fits All"}],"off_ratio":51,"flashsale_info":[],"sales":0};
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}
`
}()}
${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 `
`;
}()}