${function() {
const variantData = data.variant || {"id":"954ab6b4-8988-4094-af6d-e2a3398d44c9","product_id":"b628f909-eb32-4566-8512-2a4e6b5273a2","title":"detail-s","weight_unit":"kg","inventory_quantity":1000,"sku":"6796593","barcode":"","position":1,"option1":"detail","option2":"s","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4c9b0c682c6aa8df961daeeee145b5b1.jpeg","path":"4c9b0c682c6aa8df961daeeee145b5b1.jpeg","width":1002,"height":1022,"alt":"","aspect_ratio":0.9804305283757339},"wholesale_price":[{"price":38.9,"min_quantity":1}],"weight":"0","compare_at_price":"128","price":"38.9","retail_price":"128","available":true,"url":"\/products\/463759800b29?variant=954ab6b4-8988-4094-af6d-e2a3398d44c9","available_quantity":999999999,"options":[{"name":"Color","value":"detail"},{"name":"Size","value":"s"}],"off_ratio":70,"flashsale_info":[],"sales":0};
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":"954ab6b4-8988-4094-af6d-e2a3398d44c9","product_id":"b628f909-eb32-4566-8512-2a4e6b5273a2","title":"detail-s","weight_unit":"kg","inventory_quantity":1000,"sku":"6796593","barcode":"","position":1,"option1":"detail","option2":"s","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4c9b0c682c6aa8df961daeeee145b5b1.jpeg","path":"4c9b0c682c6aa8df961daeeee145b5b1.jpeg","width":1002,"height":1022,"alt":"","aspect_ratio":0.9804305283757339},"wholesale_price":[{"price":38.9,"min_quantity":1}],"weight":"0","compare_at_price":"128","price":"38.9","retail_price":"128","available":true,"url":"\/products\/463759800b29?variant=954ab6b4-8988-4094-af6d-e2a3398d44c9","available_quantity":999999999,"options":[{"name":"Color","value":"detail"},{"name":"Size","value":"s"}],"off_ratio":70,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}