${function() {
const variantData = data.variant || {"id":"cb70a388-1e13-4138-b659-61da14a962f6","product_id":"759b6c9f-4587-42e6-9398-da338c5ba484","title":"BLACK","weight_unit":"kg","inventory_quantity":1000,"sku":"CPTB-BLACK","barcode":"","position":1,"option1":"BLACK","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/29a64541ec11c3fb63d08178ac50fdbc.jpeg","path":"29a64541ec11c3fb63d08178ac50fdbc.jpeg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":99.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"99.99","retail_price":"0","available":true,"url":"\/products\/cage-pet-transport-bag-carrying-for-cats?variant=cb70a388-1e13-4138-b659-61da14a962f6","available_quantity":999999999,"options":[{"name":"Color","value":"BLACK"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
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.