${function() {
const variantData = data.variant || {"id":"169ffa40-7edd-4f9d-b60e-343e006e6486","product_id":"8dd52a1b-359e-4008-a8bc-39e34cd31bf1","title":"Orange-L","weight_unit":"kg","inventory_quantity":998,"sku":"220514432-Orange-L","barcode":"","position":5,"option1":"Orange","option2":"L","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/35b07e4d09c0385ef9ebfecd4edc887d.png","path":"35b07e4d09c0385ef9ebfecd4edc887d.png","width":800,"height":900,"alt":"Casual Loose Shape Short Set","aspect_ratio":0.8888888888888888},"wholesale_price":[{"price":34.75,"min_quantity":1}],"weight":"0","compare_at_price":"53","price":"34.75","retail_price":"53","available":true,"url":"\/products\/casual-loose-shape-short-set-t4kv?variant=169ffa40-7edd-4f9d-b60e-343e006e6486","available_quantity":999999999,"options":[{"name":"COLOR","value":"Orange"},{"name":"Size","value":"L"}],"off_ratio":34,"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.