${function() {
const variantData = data.variant || {"id":"254f4ca7-6e67-4e7e-acd7-15e4870d9a2c","product_id":"2310ecd5-4d1b-4e33-b168-ad9b15a891a5","title":"black-2xl","weight_unit":"kg","inventory_quantity":0,"sku":"Lin21042306-black-2xl","barcode":"","position":2,"option1":"black","option2":"2xl","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ff9e67b2e492ddfe2fb7e4de83b61577.png","path":"ff9e67b2e492ddfe2fb7e4de83b61577.png","width":1000,"height":1455,"alt":"Summer Backless Stylish Dress","aspect_ratio":0.6872852233676976},"wholesale_price":[{"price":34.85,"min_quantity":1}],"weight":"0","compare_at_price":"65.32","price":"34.85","retail_price":"65.32","available":true,"url":"\/products\/summer-open-back-stylish-midi-dress?variant=254f4ca7-6e67-4e7e-acd7-15e4870d9a2c","available_quantity":999999999,"options":[{"name":"color","value":"black"},{"name":"size","value":"2xl"}],"off_ratio":47,"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.