${function() {
const variantData = data.variant || {"id":"8be0a8dc-28f1-4a66-a70e-f1fa7f236d69","product_id":"c750959a-9a0c-466d-b265-96cdae8af105","title":"black-S","weight_unit":"kg","inventory_quantity":0,"sku":"66221028941-black-S","barcode":"","position":1,"option1":"black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/60c168fd0019c4d441e25d51251f7b6c.jpeg","path":"60c168fd0019c4d441e25d51251f7b6c.jpeg","width":600,"height":750,"alt":"Christmas Tree Vintage Casual Jeans","aspect_ratio":0.8},"wholesale_price":[{"price":46.85,"min_quantity":1}],"weight":"0.55","compare_at_price":"79.41","price":"46.85","retail_price":"79.41","available":true,"url":"\/products\/christmas-tree-vintage-casual-jeans?variant=8be0a8dc-28f1-4a66-a70e-f1fa7f236d69","available_quantity":999999999,"options":[{"name":"color","value":"black"},{"name":"size","value":"S"}],"off_ratio":41,"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}
`
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Product was out of stock.
Product is unavailable.