${function() {
const variantData = data.variant || {"id":"b06e30fd-78d2-4f15-8d5d-7bf1cd1be88a","product_id":"4dbbd496-2e1e-4ce0-ac67-67f0f1db346e","title":"Yellow-M","weight_unit":"kg","inventory_quantity":1000,"sku":"YP24101135839-Yellow-M","barcode":"","position":1,"option1":"Yellow","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/68debe59a0cd1e6f4582a080f2f885bd.jpeg","path":"68debe59a0cd1e6f4582a080f2f885bd.jpeg","width":1142,"height":1428,"alt":"","aspect_ratio":0.7997198879551821},"wholesale_price":[{"price":55.95,"min_quantity":1}],"weight":"0","compare_at_price":"55.95","price":"55.95","retail_price":"55.95","available":true,"url":"\/products\/mens-simple-colorblock-round-neck-casual-sports-set-0186?variant=b06e30fd-78d2-4f15-8d5d-7bf1cd1be88a","available_quantity":999999999,"options":[{"name":"Color","value":"Yellow"},{"name":"Size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":1};
const saveType = "amount";
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}
`
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Product was out of stock.
Product is unavailable.