${function() {
const variantData = data.variant || {"id":"b53195c2-3254-4c97-a0c0-2ee754a11406","product_id":"719de49e-1969-4b45-a233-31d4e4b74959","title":"Heart-Style1","weight_unit":"kg","inventory_quantity":1000,"sku":"CP36295-X27257","barcode":"","position":1,"option1":"Heart","option2":"Style1","option3":"","note":"","image":null,"wholesale_price":[{"price":10.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"10.99","retail_price":"0","available":true,"url":"\/products\/funny-tokens?variant=b53195c2-3254-4c97-a0c0-2ee754a11406","available_quantity":999999999,"options":[{"name":"Shape","value":"Heart"},{"name":"Style","value":"Style1"}],"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.