${function() {
const variantData = data.variant || {"id":"d32da830-ef7e-4abd-b8a9-f3398b3166f6","product_id":"cc02ec5b-4124-4847-a046-c42f541e49cf","title":"Black sesame seeds","weight_unit":"g","inventory_quantity":20,"sku":"","barcode":"","position":1,"option1":"Black sesame seeds","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":20,"min_quantity":1}],"weight":"500","compare_at_price":"25","price":"20","retail_price":"25","available":true,"url":"\/products\/baifenzhi-soybean-milk-powder-since-1989-t81l?variant=d32da830-ef7e-4abd-b8a9-f3398b3166f6","available_quantity":20,"options":[{"name":"Taste","value":"Black sesame seeds"}],"off_ratio":20,"flashsale_info":[],"sales":20};
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}
`
}()}
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"d32da830-ef7e-4abd-b8a9-f3398b3166f6","product_id":"cc02ec5b-4124-4847-a046-c42f541e49cf","title":"Black sesame seeds","weight_unit":"g","inventory_quantity":20,"sku":"","barcode":"","position":1,"option1":"Black sesame seeds","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":20,"min_quantity":1}],"weight":"500","compare_at_price":"25","price":"20","retail_price":"25","available":true,"url":"\/products\/baifenzhi-soybean-milk-powder-since-1989-t81l?variant=d32da830-ef7e-4abd-b8a9-f3398b3166f6","available_quantity":20,"options":[{"name":"Taste","value":"Black sesame seeds"}],"off_ratio":20,"flashsale_info":[],"sales":20};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}