${function() {
const variantData = data.variant || {"id":"913c1feb-a5d3-4b79-88fb-e24e96d4c6c2","product_id":"bb8e191b-4c9e-46d4-b4b1-d0f5794869e3","title":"pink-s","weight_unit":"kg","inventory_quantity":0,"sku":"Lin21052018-pink-s","barcode":"","position":1,"option1":"pink","option2":"s","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/be1621d643c4b7021efefb9d0349eb79.jpeg","path":"be1621d643c4b7021efefb9d0349eb79.jpeg","width":500,"height":750,"alt":"Sweet Ruffled Sleeves Two-pieces Set","aspect_ratio":0.6666666666666666},"wholesale_price":[{"price":38.2,"min_quantity":1}],"weight":"0","compare_at_price":"47.87","price":"38.2","retail_price":"47.87","available":true,"url":"\/products\/sweet-ruffled-sleeves-two-pieces-set?variant=913c1feb-a5d3-4b79-88fb-e24e96d4c6c2","available_quantity":999999999,"options":[{"name":"color","value":"pink"},{"name":"size","value":"s"}],"off_ratio":20,"flashsale_info":[],"sales":0};
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}
`
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Product was out of stock.
Product is unavailable.