${function() {
const variantData = data.variant || {"id":"c8777093-eb6e-44fb-b277-488464b5a21a","product_id":"b4fdfa61-f28d-4955-903a-e7533376364e","title":"red-S","weight_unit":"kg","inventory_quantity":0,"sku":"662307043784-red-S","barcode":"","position":1,"option1":"red","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0b29d5919863cdecec5a1ab142fc1f33.jpeg","path":"0b29d5919863cdecec5a1ab142fc1f33.jpeg","width":800,"height":1000,"alt":"Sun World Casual Two-piece Set","aspect_ratio":0.8},"wholesale_price":[{"price":47.52,"min_quantity":1}],"weight":"0.4","compare_at_price":"58","price":"47.52","retail_price":"58","available":true,"url":"\/products\/sun-world-casual-two-piece-set?variant=c8777093-eb6e-44fb-b277-488464b5a21a","available_quantity":999999999,"options":[{"name":"Color","value":"red"},{"name":"Size","value":"S"}],"off_ratio":18,"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.