Ranch Daily Print Swimsuit
${function() {
const variantData = data.variant || {"id":"f7a476fb-2b01-476a-bd62-9a076cd3f464","product_id":"5c7f68ed-ad45-4c88-b580-2009310925df","title":"Only Green Swimsuit-S","weight_unit":"kg","inventory_quantity":0,"sku":"BL24011113622-Only Green Swimsuit-S","barcode":"","position":5,"option1":"Only Green Swimsuit","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6cada5f14effb276e2086f844c1a8b68.jpeg","path":"6cada5f14effb276e2086f844c1a8b68.jpeg","width":1600,"height":1600,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":30.99,"min_quantity":1}],"weight":"320","compare_at_price":"45","price":"30.99","retail_price":"45","available":true,"url":"\/products\/ranch-daily-print-swimsuit?variant=f7a476fb-2b01-476a-bd62-9a076cd3f464","available_quantity":999999999,"options":[{"name":"Color","value":"Only Green Swimsuit"},{"name":"Size","value":"S"}],"off_ratio":31,"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":"f7a476fb-2b01-476a-bd62-9a076cd3f464","product_id":"5c7f68ed-ad45-4c88-b580-2009310925df","title":"Only Green Swimsuit-S","weight_unit":"kg","inventory_quantity":0,"sku":"BL24011113622-Only Green Swimsuit-S","barcode":"","position":5,"option1":"Only Green Swimsuit","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6cada5f14effb276e2086f844c1a8b68.jpeg","path":"6cada5f14effb276e2086f844c1a8b68.jpeg","width":1600,"height":1600,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":30.99,"min_quantity":1}],"weight":"320","compare_at_price":"45","price":"30.99","retail_price":"45","available":true,"url":"\/products\/ranch-daily-print-swimsuit?variant=f7a476fb-2b01-476a-bd62-9a076cd3f464","available_quantity":999999999,"options":[{"name":"Color","value":"Only Green Swimsuit"},{"name":"Size","value":"S"}],"off_ratio":31,"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 `
`;
}()}