Double Layers Ruffled One-Shoulder Printed Swimsuit
${function() {
const variantData = data.variant || {"id":"c29c836b-ae65-4dc5-bad4-d1740d6dc6f2","product_id":"81c4ef5a-7ebb-4d9b-9a37-a325c15d8460","title":"One-Piece-S","weight_unit":"kg","inventory_quantity":1944,"sku":"BL230310420-One-Piece-S","barcode":"","position":1,"option1":"One-Piece","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/7a9526aa7598fa7f1627a5bfcc99d535.jpeg","path":"7a9526aa7598fa7f1627a5bfcc99d535.jpeg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":33.1,"min_quantity":1}],"weight":"0.18","compare_at_price":"33","price":"33.1","retail_price":"33","available":true,"url":"\/products\/double-layers-ruffled-one-shoulder-printed-swimsuit?variant=c29c836b-ae65-4dc5-bad4-d1740d6dc6f2","available_quantity":999999999,"options":[{"name":"Color","value":"One-Piece"},{"name":"Size","value":"S"}],"off_ratio":0,"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":"c29c836b-ae65-4dc5-bad4-d1740d6dc6f2","product_id":"81c4ef5a-7ebb-4d9b-9a37-a325c15d8460","title":"One-Piece-S","weight_unit":"kg","inventory_quantity":1944,"sku":"BL230310420-One-Piece-S","barcode":"","position":1,"option1":"One-Piece","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/7a9526aa7598fa7f1627a5bfcc99d535.jpeg","path":"7a9526aa7598fa7f1627a5bfcc99d535.jpeg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":33.1,"min_quantity":1}],"weight":"0.18","compare_at_price":"33","price":"33.1","retail_price":"33","available":true,"url":"\/products\/double-layers-ruffled-one-shoulder-printed-swimsuit?variant=c29c836b-ae65-4dc5-bad4-d1740d6dc6f2","available_quantity":999999999,"options":[{"name":"Color","value":"One-Piece"},{"name":"Size","value":"S"}],"off_ratio":0,"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 `
`;
}()}