${function() {
const variantData = data.variant || {"id":"4e526ec8-94d0-4b13-8839-e48f3451287b","product_id":"4b2e1695-75db-434f-b1d1-8e7b88c83c6b","title":"4654 Silver","weight_unit":"kg","inventory_quantity":4946,"sku":"211203866-4654 Silver","barcode":"","position":2,"option1":"4654 Silver","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/18cb2ea2e4eb77fc342f58b51abc72cb.jpeg","path":"18cb2ea2e4eb77fc342f58b51abc72cb.jpeg","width":1200,"height":1200,"alt":"Metallic Snake Bone Chain Braided Necklace","aspect_ratio":1},"wholesale_price":[{"price":28.84,"min_quantity":1}],"weight":"0.04","compare_at_price":"57.68","price":"28.84","retail_price":"57.68","available":true,"url":"\/products\/metallic-snake-bone-chain-braided-necklace?variant=4e526ec8-94d0-4b13-8839-e48f3451287b","available_quantity":999999999,"options":[{"name":"Color","value":"4654 Silver"}],"off_ratio":50,"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.