${function() {
const variantData = data.variant || {"id":"53b1de90-2ebe-47bc-bb46-35c5f4d86fb3","product_id":"5ddea275-069c-43de-8442-12453a3fabf1","title":"Same as Picture-US2","weight_unit":"kg","inventory_quantity":100,"sku":"","barcode":"","position":1,"option1":"Same as Picture","option2":"US2","option3":"","note":"","image":null,"wholesale_price":[{"price":209.99,"min_quantity":1}],"weight":"1","compare_at_price":"209.99","price":"209.99","retail_price":"209.99","available":true,"url":"\/products\/dresseswow-elegant-long-wedding-dress-with-v-neck-tulle?variant=53b1de90-2ebe-47bc-bb46-35c5f4d86fb3","available_quantity":999999999,"options":[{"name":"Color","value":"Same as Picture"},{"name":"Size","value":"US2"}],"off_ratio":0,"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}
`
}()}