Mid-length knitted dress with half turtleneck
${function() {
const variantData = data.variant || {"id":"3382b971-e7dc-4bd1-9aef-a63f2368bb41","product_id":"2f56e8fa-18c7-4b28-8453-488521f1fa89","title":"khaki-one size","weight_unit":"kg","inventory_quantity":0,"sku":"662211262171-khaki-one size","barcode":"","position":3,"option1":"khaki","option2":"one size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/105757647d4aa64c0b0147b94116cb3a.jpeg","path":"105757647d4aa64c0b0147b94116cb3a.jpeg","width":1200,"height":1200,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":74.18,"min_quantity":1}],"weight":"0.71","compare_at_price":"89","price":"74.18","retail_price":"89","available":true,"url":"\/products\/mid-length-knitted-dress-with-half-turtleneck?variant=3382b971-e7dc-4bd1-9aef-a63f2368bb41","available_quantity":999999999,"options":[{"name":"color","value":"khaki"},{"name":"size","value":"one size"}],"off_ratio":17,"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":"3382b971-e7dc-4bd1-9aef-a63f2368bb41","product_id":"2f56e8fa-18c7-4b28-8453-488521f1fa89","title":"khaki-one size","weight_unit":"kg","inventory_quantity":0,"sku":"662211262171-khaki-one size","barcode":"","position":3,"option1":"khaki","option2":"one size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/105757647d4aa64c0b0147b94116cb3a.jpeg","path":"105757647d4aa64c0b0147b94116cb3a.jpeg","width":1200,"height":1200,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":74.18,"min_quantity":1}],"weight":"0.71","compare_at_price":"89","price":"74.18","retail_price":"89","available":true,"url":"\/products\/mid-length-knitted-dress-with-half-turtleneck?variant=3382b971-e7dc-4bd1-9aef-a63f2368bb41","available_quantity":999999999,"options":[{"name":"color","value":"khaki"},{"name":"size","value":"one size"}],"off_ratio":17,"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 `
`;
}()}