${function() {
const variantData = data.variant || {"id":"2490d258-d287-4e10-972c-5d17bc130285","product_id":"e8a82fb4-5430-48f9-8217-e2bad7d9a11f","title":"Same for photo-S","weight_unit":"kg","inventory_quantity":1000,"sku":"CD9474601","barcode":"","position":1,"option1":"Same for photo","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/3a26384d7b9fcf91a608cea5541047cb.jpeg","path":"3a26384d7b9fcf91a608cea5541047cb.jpeg","width":2000,"height":2000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":26.99,"min_quantity":1}],"weight":"0","compare_at_price":"26.13","price":"26.99","retail_price":"26.13","available":true,"url":"\/products\/mens-cat-carrier-rocket-creative-print-short-sleeved-shirt-hmpg?variant=2490d258-d287-4e10-972c-5d17bc130285","available_quantity":1000,"options":[{"name":"color","value":"Same for photo"},{"name":"size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "amount";
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.