${function() {
const variantData = data.variant || {"id":"dcf487c1-4b3f-4a42-99b3-de795e5fbce2","product_id":"1f7d7a8f-4c29-4751-aeae-03f0ba2e303c","title":"grey-s","weight_unit":"kg","inventory_quantity":0,"sku":"20111741-grey-s","barcode":"","position":1,"option1":"grey","option2":"s","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/3864f90a2ccbe210b75d0820eefc12e9.jpeg","path":"3864f90a2ccbe210b75d0820eefc12e9.jpeg","width":1000,"height":1000,"alt":"Casual Twist Texture V-Neck Sweater Top","aspect_ratio":1},"wholesale_price":[{"price":45.73,"min_quantity":1}],"weight":"0","compare_at_price":"53.11","price":"45.73","retail_price":"53.11","available":true,"url":"\/products\/casual-twist-texture-v-neck-sweater-top?variant=dcf487c1-4b3f-4a42-99b3-de795e5fbce2","available_quantity":999999999,"options":[{"name":"color","value":"grey"},{"name":"size","value":"s"}],"off_ratio":14,"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.