Pile Collar Design Casual Two-Piece Set
${function() {
const variantData = data.variant || {"id":"46faa318-9cd8-4531-b9cf-03aade0f2872","product_id":"b66a6632-3a0e-453e-b5c9-8c702ebc3ab2","title":"white-S","weight_unit":"kg","inventory_quantity":0,"sku":"662211031362-white-S","barcode":"","position":1,"option1":"white","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/322e3dc69046cb77137db4013a637412.jpeg","path":"322e3dc69046cb77137db4013a637412.jpeg","width":800,"height":1000,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":44.69,"min_quantity":1}],"weight":"0.8","compare_at_price":"54.5","price":"44.69","retail_price":"54.5","available":false,"url":"\/products\/pile-collar-design-casual-two-piece-set?variant=46faa318-9cd8-4531-b9cf-03aade0f2872","available_quantity":0,"options":[{"name":"Color","value":"white"},{"name":"Size","value":"S"}],"off_ratio":18,"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":"46faa318-9cd8-4531-b9cf-03aade0f2872","product_id":"b66a6632-3a0e-453e-b5c9-8c702ebc3ab2","title":"white-S","weight_unit":"kg","inventory_quantity":0,"sku":"662211031362-white-S","barcode":"","position":1,"option1":"white","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/322e3dc69046cb77137db4013a637412.jpeg","path":"322e3dc69046cb77137db4013a637412.jpeg","width":800,"height":1000,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":44.69,"min_quantity":1}],"weight":"0.8","compare_at_price":"54.5","price":"44.69","retail_price":"54.5","available":false,"url":"\/products\/pile-collar-design-casual-two-piece-set?variant=46faa318-9cd8-4531-b9cf-03aade0f2872","available_quantity":0,"options":[{"name":"Color","value":"white"},{"name":"Size","value":"S"}],"off_ratio":18,"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 `
`;
}()}