${function() {
const variantData = data.variant || {"id":"16419a68-8062-4f27-b96b-4b58017f7204","product_id":"6ae3ce50-224b-4857-bf61-62c51b003269","title":"Green-S","weight_unit":"g","inventory_quantity":1000,"sku":"","barcode":"","position":1,"option1":"Green","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/5a8fcf3477e3bfa0ff6d0a07a50e4340.jpg","path":"5a8fcf3477e3bfa0ff6d0a07a50e4340.jpg","width":720,"height":1280,"alt":"","aspect_ratio":0.5625},"wholesale_price":[{"price":36.99,"min_quantity":1}],"weight":"400","compare_at_price":"49.99","price":"36.99","retail_price":"49.99","available":true,"url":"\/products\/frilly-sleeve-leaf-print-dress?variant=16419a68-8062-4f27-b96b-4b58017f7204","available_quantity":999999999,"options":[{"name":"Color","value":"Green"},{"name":"Size","value":"S"}],"off_ratio":26,"flashsale_info":[],"sales":2};
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":"16419a68-8062-4f27-b96b-4b58017f7204","product_id":"6ae3ce50-224b-4857-bf61-62c51b003269","title":"Green-S","weight_unit":"g","inventory_quantity":1000,"sku":"","barcode":"","position":1,"option1":"Green","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/5a8fcf3477e3bfa0ff6d0a07a50e4340.jpg","path":"5a8fcf3477e3bfa0ff6d0a07a50e4340.jpg","width":720,"height":1280,"alt":"","aspect_ratio":0.5625},"wholesale_price":[{"price":36.99,"min_quantity":1}],"weight":"400","compare_at_price":"49.99","price":"36.99","retail_price":"49.99","available":true,"url":"\/products\/frilly-sleeve-leaf-print-dress?variant=16419a68-8062-4f27-b96b-4b58017f7204","available_quantity":999999999,"options":[{"name":"Color","value":"Green"},{"name":"Size","value":"S"}],"off_ratio":26,"flashsale_info":[],"sales":2};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}