${function() {
const variantData = data.variant || {"id":"bd65a39b-d587-47f2-8343-6e62fe7b4385","product_id":"cfd753dd-d4e1-4036-8372-96b9b4d0f0d1","title":"pink","weight_unit":"kg","inventory_quantity":1000,"sku":"PT16558-C009","barcode":"","position":1,"option1":"pink","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/fde116a2863c8c5d1c6b1c0c0d3d0972.jpeg","path":"fde116a2863c8c5d1c6b1c0c0d3d0972.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":12.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"12.99","retail_price":"0","available":true,"url":"\/products\/adjustable-car-dog-leash?variant=bd65a39b-d587-47f2-8343-6e62fe7b4385","available_quantity":999999999,"options":[{"name":"Color","value":"pink"}],"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.