${function() {
const variantData = data.variant || {"id":"d5db5f69-e5ff-4a98-bde0-a939e8cdb70d","product_id":"907edc1d-7930-4f78-b14b-d36e45c55969","title":"2 pc","weight_unit":"kg","inventory_quantity":1000,"sku":"CP49307-E002","barcode":"","position":1,"option1":"2 pc","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":7.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"7.99","retail_price":"0","available":true,"url":"\/products\/drywall-fitting-tool?variant=d5db5f69-e5ff-4a98-bde0-a939e8cdb70d","available_quantity":999999999,"options":[{"name":"Qty","value":"2 pc"}],"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.