Sweet Ruffled Sleeves Two-pieces Set
${function() {
const variantData = data.variant || {"id":"2a23eb48-f45e-4a8a-b209-4a8db02d3588","product_id":"c38994d6-96a2-4825-9db3-751b8145c441","title":"pink-s","weight_unit":"kg","inventory_quantity":0,"sku":"Lin21052018-pink-s","barcode":"","position":1,"option1":"pink","option2":"s","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/be1621d643c4b7021efefb9d0349eb79.jpeg","path":"be1621d643c4b7021efefb9d0349eb79.jpeg","width":500,"height":750,"alt":"","aspect_ratio":0.6666666666666666},"wholesale_price":[{"price":38.2,"min_quantity":1}],"weight":"0","compare_at_price":"47.87","price":"38.2","retail_price":"47.87","available":true,"url":"\/products\/sweet-ruffled-sleeves-two-pieces-set?variant=2a23eb48-f45e-4a8a-b209-4a8db02d3588","available_quantity":999999999,"options":[{"name":"color","value":"pink"},{"name":"size","value":"s"}],"off_ratio":20,"flashsale_info":[],"sales":2};
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":"2a23eb48-f45e-4a8a-b209-4a8db02d3588","product_id":"c38994d6-96a2-4825-9db3-751b8145c441","title":"pink-s","weight_unit":"kg","inventory_quantity":0,"sku":"Lin21052018-pink-s","barcode":"","position":1,"option1":"pink","option2":"s","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/be1621d643c4b7021efefb9d0349eb79.jpeg","path":"be1621d643c4b7021efefb9d0349eb79.jpeg","width":500,"height":750,"alt":"","aspect_ratio":0.6666666666666666},"wholesale_price":[{"price":38.2,"min_quantity":1}],"weight":"0","compare_at_price":"47.87","price":"38.2","retail_price":"47.87","available":true,"url":"\/products\/sweet-ruffled-sleeves-two-pieces-set?variant=2a23eb48-f45e-4a8a-b209-4a8db02d3588","available_quantity":999999999,"options":[{"name":"color","value":"pink"},{"name":"size","value":"s"}],"off_ratio":20,"flashsale_info":[],"sales":2};
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 `
`;
}()}