${function() {
const variantData = data.variant || {"id":"7caa3388-54ba-4fc5-a136-11c93579fa24","product_id":"ea73cf68-b2e7-4273-b9aa-d598432d01d6","title":"blue-S","weight_unit":"kg","inventory_quantity":1000,"sku":"PT11019-C008-S00S","barcode":"","position":3,"option1":"blue","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/8aaee80f56fb8ae03c6e4dd84c039700.jpeg","path":"8aaee80f56fb8ae03c6e4dd84c039700.jpeg","width":590,"height":590,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":19.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"19.99","retail_price":"0","available":true,"url":"\/products\/cat-vest-harness-and-leash-set-to-outdoor-walking?variant=7caa3388-54ba-4fc5-a136-11c93579fa24","available_quantity":999999999,"options":[{"name":"Color","value":"blue"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "amount";
const saveText = "Save {{saved_amount}}";
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.