Warm Knit Cape Irregular Outer Scarf
${function() {
const variantData = data.variant || {"id":"aeb5d0a1-3a4c-466b-a469-1f8ff9853c9a","product_id":"b92cbe77-7e92-417c-b3cd-c9b1a8f281ed","title":"light gray-200cm","weight_unit":"kg","inventory_quantity":0,"sku":"662211041409-light gray-200cm","barcode":"","position":2,"option1":"light gray","option2":"200cm","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/7cbb75e6f443784e33515d6d86797836.jpeg","path":"7cbb75e6f443784e33515d6d86797836.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":67.58,"min_quantity":1}],"weight":"0.6","compare_at_price":"83.43","price":"67.58","retail_price":"83.43","available":true,"url":"\/products\/warm-knit-cape-irregular-outer-scarf?variant=aeb5d0a1-3a4c-466b-a469-1f8ff9853c9a","available_quantity":999999999,"options":[{"name":"color","value":"light gray"},{"name":"size","value":"200cm"}],"off_ratio":19,"flashsale_info":[],"sales":0};
const saveType = "amount";
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}
`
}()}
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"aeb5d0a1-3a4c-466b-a469-1f8ff9853c9a","product_id":"b92cbe77-7e92-417c-b3cd-c9b1a8f281ed","title":"light gray-200cm","weight_unit":"kg","inventory_quantity":0,"sku":"662211041409-light gray-200cm","barcode":"","position":2,"option1":"light gray","option2":"200cm","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/7cbb75e6f443784e33515d6d86797836.jpeg","path":"7cbb75e6f443784e33515d6d86797836.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":67.58,"min_quantity":1}],"weight":"0.6","compare_at_price":"83.43","price":"67.58","retail_price":"83.43","available":true,"url":"\/products\/warm-knit-cape-irregular-outer-scarf?variant=aeb5d0a1-3a4c-466b-a469-1f8ff9853c9a","available_quantity":999999999,"options":[{"name":"color","value":"light gray"},{"name":"size","value":"200cm"}],"off_ratio":19,"flashsale_info":[],"sales":0};
return `
`
}()}
${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 `
`;
}()}