${function() {
const variantData = data.variant || {"id":"b384f99c-e33d-466b-b1ed-523ccb8f7abe","product_id":"b692099f-8669-4b85-84a5-d137462b69ce","title":"blue-S","weight_unit":"kg","inventory_quantity":0,"sku":"662210093045-blue-S","barcode":"","position":1,"option1":"blue","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/3ab3d6e6a8286711b3d0a77943e46c30.jpeg","path":"3ab3d6e6a8286711b3d0a77943e46c30.jpeg","width":750,"height":750,"alt":"Raw edge ripped slim fit jeans","aspect_ratio":1},"wholesale_price":[{"price":39.58,"min_quantity":1}],"weight":"0.5","compare_at_price":"74.68","price":"39.58","retail_price":"74.68","available":true,"url":"\/products\/raw-edge-ripped-slim-fit-jeans?variant=b384f99c-e33d-466b-b1ed-523ccb8f7abe","available_quantity":999999999,"options":[{"name":"color","value":"blue"},{"name":"size","value":"S"}],"off_ratio":47,"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.