${function() {
const variantData = data.variant || {"id":"3e601221-e410-4774-8a5a-1631640bf800","product_id":"3411a1b7-87ee-4fb2-b19d-4bc432414209","title":"red","weight_unit":"kg","inventory_quantity":1000,"sku":"CA14317-C002","barcode":"","position":1,"option1":"red","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/1a7ca9e84709be353693febe6f0084ba.jpeg","path":"1a7ca9e84709be353693febe6f0084ba.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":21.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"21.99","retail_price":"0","available":true,"url":"\/products\/warm-trapper-windproof-hat?variant=3e601221-e410-4774-8a5a-1631640bf800","available_quantity":999999999,"options":[{"name":"Color","value":"red"}],"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}
`
}()}
Product was out of stock.
Product is unavailable.