${function() {
const variantData = data.variant || {"id":"0c4ac6d0-5d93-428c-b0d8-186e2555d4fe","product_id":"1f9f6257-363f-4544-965b-de82994b694c","title":"gray-L","weight_unit":"kg","inventory_quantity":0,"sku":"6621111785-gray-L","barcode":"","position":1,"option1":"gray","option2":"L","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/58359f50251271f4301f264e989db76f.jpeg","path":"58359f50251271f4301f264e989db76f.jpeg","width":800,"height":1000,"alt":"Comfortable and leisurely home three-piece set","aspect_ratio":0.8},"wholesale_price":[{"price":49.56,"min_quantity":1}],"weight":"0","compare_at_price":"59.71","price":"49.56","retail_price":"59.71","available":true,"url":"\/products\/comfortable-and-leisurely-home-three-piece-set?variant=0c4ac6d0-5d93-428c-b0d8-186e2555d4fe","available_quantity":999999999,"options":[{"name":"color","value":"gray"},{"name":"size","value":"L"}],"off_ratio":17,"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.