${function() {
const variantData = data.variant || {"id":"f16c85c5-6348-4530-acbd-0a8671cf42bc","product_id":"0d2f7a05-0bab-4162-adaa-dd21cbe7fec2","title":"black-S","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/468f9b8b9fbb418464b9273eed4fd1fd.jpg","path":"468f9b8b9fbb418464b9273eed4fd1fd.jpg","width":400,"height":600,"alt":"","aspect_ratio":0.6666666666666666},"wholesale_price":[{"price":36.78,"min_quantity":1}],"weight":"0","compare_at_price":"59.77","price":"36.78","retail_price":"59.77","available":true,"url":"\/products\/washed-double-gauze-raw-edge-v-neck-dress?variant=f16c85c5-6348-4530-acbd-0a8671cf42bc","available_quantity":999999999,"options":[{"name":"color","value":"black"},{"name":"size","value":"S"}],"off_ratio":38,"flashsale_info":[],"sales":8};
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":"f16c85c5-6348-4530-acbd-0a8671cf42bc","product_id":"0d2f7a05-0bab-4162-adaa-dd21cbe7fec2","title":"black-S","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/468f9b8b9fbb418464b9273eed4fd1fd.jpg","path":"468f9b8b9fbb418464b9273eed4fd1fd.jpg","width":400,"height":600,"alt":"","aspect_ratio":0.6666666666666666},"wholesale_price":[{"price":36.78,"min_quantity":1}],"weight":"0","compare_at_price":"59.77","price":"36.78","retail_price":"59.77","available":true,"url":"\/products\/washed-double-gauze-raw-edge-v-neck-dress?variant=f16c85c5-6348-4530-acbd-0a8671cf42bc","available_quantity":999999999,"options":[{"name":"color","value":"black"},{"name":"size","value":"S"}],"off_ratio":38,"flashsale_info":[],"sales":8};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}