${function() {
const variantData = data.variant || {"id":"6e4d7c77-6f79-4464-8487-4867cdd4d454","product_id":"dfa986d9-67cb-4618-98b5-5ba4a643a794","title":"A","weight_unit":"kg","inventory_quantity":1000,"sku":"Four-jaw-Hex-Wrench-A-1pc","barcode":"","position":1,"option1":"A","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/7588733ba024544ae361922a2ba09514.jpg","path":"7588733ba024544ae361922a2ba09514.jpg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":27.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"27.99","retail_price":"0","available":true,"url":"\/products\/four-jaw-hex-wrench?variant=6e4d7c77-6f79-4464-8487-4867cdd4d454","available_quantity":999999999,"options":[{"name":"Type","value":"A"}],"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.