${function() {
const variantData = data.variant || {"id":"7ad18b7d-7133-4b99-955c-d64c11dcd7ed","product_id":"9604cab8-bbde-46bc-9d31-537aeab80c91","title":"Red","weight_unit":"kg","inventory_quantity":1000,"sku":"CP47669-C002","barcode":"","position":1,"option1":"Red","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/27d1fd658c3ccde0bbfda1b78f8da169.jpeg","path":"27d1fd658c3ccde0bbfda1b78f8da169.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":8.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"8.99","retail_price":"0","available":true,"url":"\/products\/gear-lever-cover?variant=7ad18b7d-7133-4b99-955c-d64c11dcd7ed","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.