${function() {
const variantData = data.variant || {"id":"48f7e5fe-64ab-490e-86b6-35d568a134ba","product_id":"e2974a6f-90ab-458d-8ea5-4d916068f5da","title":"blue-S","weight_unit":"kg","inventory_quantity":0,"sku":"MWZX12134_BL_S","barcode":"","position":7,"option1":"blue","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b69bbdf0459b3e388a659bb9df0d2f45.jpg","path":"b69bbdf0459b3e388a659bb9df0d2f45.jpg","width":400,"height":600,"alt":"","aspect_ratio":0.6666666666666666},"wholesale_price":[{"price":39.89,"min_quantity":1}],"weight":"0","compare_at_price":"65.76","price":"39.89","retail_price":"65.76","available":true,"url":"\/products\/washed-linen-raw-edge-dress?variant=48f7e5fe-64ab-490e-86b6-35d568a134ba","available_quantity":999999999,"options":[{"name":"color","value":"blue"},{"name":"size","value":"S"}],"off_ratio":39,"flashsale_info":[],"sales":295};
const saveType = "amount";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
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":"48f7e5fe-64ab-490e-86b6-35d568a134ba","product_id":"e2974a6f-90ab-458d-8ea5-4d916068f5da","title":"blue-S","weight_unit":"kg","inventory_quantity":0,"sku":"MWZX12134_BL_S","barcode":"","position":7,"option1":"blue","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b69bbdf0459b3e388a659bb9df0d2f45.jpg","path":"b69bbdf0459b3e388a659bb9df0d2f45.jpg","width":400,"height":600,"alt":"","aspect_ratio":0.6666666666666666},"wholesale_price":[{"price":39.89,"min_quantity":1}],"weight":"0","compare_at_price":"65.76","price":"39.89","retail_price":"65.76","available":true,"url":"\/products\/washed-linen-raw-edge-dress?variant=48f7e5fe-64ab-490e-86b6-35d568a134ba","available_quantity":999999999,"options":[{"name":"color","value":"blue"},{"name":"size","value":"S"}],"off_ratio":39,"flashsale_info":[],"sales":295};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}