${function() {
const variantData = data.variant || {"id":"aa748761-9139-4438-a36e-362b19f631c9","product_id":"f6c3364e-36aa-484e-b9fe-7fb8594c464f","title":"Grey-M","weight_unit":"g","inventory_quantity":1,"sku":"","barcode":"","position":1,"option1":"Grey","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/c122ef259a483408582cdfdf878cf5ed.webp","path":"c122ef259a483408582cdfdf878cf5ed.webp","width":480,"height":640,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":27.99,"min_quantity":1}],"weight":"0","compare_at_price":"54.89","price":"27.99","retail_price":"54.89","available":true,"url":"\/products\/women-shift-half-sleeve-casual-cotton-embroidered-dress?variant=aa748761-9139-4438-a36e-362b19f631c9","available_quantity":999999999,"options":[{"name":"Color","value":"Grey"},{"name":"Size","value":"M"}],"off_ratio":49,"flashsale_info":[],"sales":0};
const saveType = "percentage";
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":"aa748761-9139-4438-a36e-362b19f631c9","product_id":"f6c3364e-36aa-484e-b9fe-7fb8594c464f","title":"Grey-M","weight_unit":"g","inventory_quantity":1,"sku":"","barcode":"","position":1,"option1":"Grey","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/c122ef259a483408582cdfdf878cf5ed.webp","path":"c122ef259a483408582cdfdf878cf5ed.webp","width":480,"height":640,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":27.99,"min_quantity":1}],"weight":"0","compare_at_price":"54.89","price":"27.99","retail_price":"54.89","available":true,"url":"\/products\/women-shift-half-sleeve-casual-cotton-embroidered-dress?variant=aa748761-9139-4438-a36e-362b19f631c9","available_quantity":999999999,"options":[{"name":"Color","value":"Grey"},{"name":"Size","value":"M"}],"off_ratio":49,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}