Casual Washed Denim Dress
${function() {
const variantData = data.variant || {"id":"477c457c-2e26-426b-8c4f-76c08bb61417","product_id":"6e3d4194-7f13-40c0-9ace-d3da16f7d4eb","title":"Blue-S","weight_unit":"kg","inventory_quantity":0,"sku":"BL2307191560-Blue-S","barcode":"","position":9,"option1":"Blue","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4c1d259552f16fd2b40ff5cc5b695c54.jpeg","path":"4c1d259552f16fd2b40ff5cc5b695c54.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":45.65,"min_quantity":1}],"weight":"0.45","compare_at_price":"67.2","price":"45.65","retail_price":"67.2","available":true,"url":"\/products\/casual-washed-denim-dress-437g?variant=477c457c-2e26-426b-8c4f-76c08bb61417","available_quantity":999999999,"options":[{"name":"Color","value":"Blue"},{"name":"Size","value":"S"}],"off_ratio":32,"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":"477c457c-2e26-426b-8c4f-76c08bb61417","product_id":"6e3d4194-7f13-40c0-9ace-d3da16f7d4eb","title":"Blue-S","weight_unit":"kg","inventory_quantity":0,"sku":"BL2307191560-Blue-S","barcode":"","position":9,"option1":"Blue","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4c1d259552f16fd2b40ff5cc5b695c54.jpeg","path":"4c1d259552f16fd2b40ff5cc5b695c54.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":45.65,"min_quantity":1}],"weight":"0.45","compare_at_price":"67.2","price":"45.65","retail_price":"67.2","available":true,"url":"\/products\/casual-washed-denim-dress-437g?variant=477c457c-2e26-426b-8c4f-76c08bb61417","available_quantity":999999999,"options":[{"name":"Color","value":"Blue"},{"name":"Size","value":"S"}],"off_ratio":32,"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 `
`;
}()}