${function() {
const variantData = data.variant || {"id":"a49f4f45-c817-4c29-8a98-a6eaeb1ac986","product_id":"58bd3dc6-5d92-44ec-9288-6fa823ca4ea3","title":"White","weight_unit":"kg","inventory_quantity":100,"sku":"YW00101-White-A0011236","barcode":"","position":1,"option1":"White","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/691b2a47956935b81c30718bf39407f7.jpeg","path":"691b2a47956935b81c30718bf39407f7.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":34.99,"min_quantity":1}],"weight":"0","compare_at_price":"103.99","price":"34.99","retail_price":"103.99","available":true,"url":"\/products\/electric-lint-remover-quickly-and-easily-remove-fuzz-and-lint-from-fabrics?variant=a49f4f45-c817-4c29-8a98-a6eaeb1ac986","available_quantity":100,"options":[{"name":"Color","value":"White"}],"off_ratio":66,"flashsale_info":[],"sales":3000};
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}
`
}()}
Product was out of stock.
Product is unavailable.
Sku : YW00101-White-A0011236
${function(){
const variantData = data.variant || {"id":"a49f4f45-c817-4c29-8a98-a6eaeb1ac986","product_id":"58bd3dc6-5d92-44ec-9288-6fa823ca4ea3","title":"White","weight_unit":"kg","inventory_quantity":100,"sku":"YW00101-White-A0011236","barcode":"","position":1,"option1":"White","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/691b2a47956935b81c30718bf39407f7.jpeg","path":"691b2a47956935b81c30718bf39407f7.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":34.99,"min_quantity":1}],"weight":"0","compare_at_price":"103.99","price":"34.99","retail_price":"103.99","available":true,"url":"\/products\/electric-lint-remover-quickly-and-easily-remove-fuzz-and-lint-from-fabrics?variant=a49f4f45-c817-4c29-8a98-a6eaeb1ac986","available_quantity":100,"options":[{"name":"Color","value":"White"}],"off_ratio":66,"flashsale_info":[],"sales":3000};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}