${function() {
const variantData = data.variant || {"id":"fa0c65b9-b8e7-45f8-92e9-484b2e8f25be","product_id":"ed15655b-2fd5-40a1-a1ae-7d0422389758","title":"green-S","weight_unit":"kg","inventory_quantity":0,"sku":"662305151254-green-S","barcode":"","position":1,"option1":"green","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/24c295d3afb6efd0f5e380fdda9bd7a5.jpeg","path":"24c295d3afb6efd0f5e380fdda9bd7a5.jpeg","width":800,"height":1000,"alt":"Casual Vacation Fashion Shorts Set","aspect_ratio":0.8},"wholesale_price":[{"price":46.99,"min_quantity":1}],"weight":"0.35","compare_at_price":"58","price":"46.99","retail_price":"58","available":true,"url":"\/products\/casual-vacation-fashion-shorts-set?variant=fa0c65b9-b8e7-45f8-92e9-484b2e8f25be","available_quantity":999999999,"options":[{"name":"color","value":"green"},{"name":"size","value":"S"}],"off_ratio":19,"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.