${function() {
const variantData = data.variant || {"id":"8e493b7e-8b61-4503-ba85-6016e24b8a20","product_id":"776e4580-95a7-41c5-8680-1ce50996786b","title":"coffee-S","weight_unit":"kg","inventory_quantity":0,"sku":"66221020439-coffee-S","barcode":"","position":5,"option1":"coffee","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/1ecedf082cfbe41c62c0531695944ba3.jpeg","path":"1ecedf082cfbe41c62c0531695944ba3.jpeg","width":1080,"height":1440,"alt":"Casual pocket long PU leather pants","aspect_ratio":0.75},"wholesale_price":[{"price":38.97,"min_quantity":1}],"weight":"0.35","compare_at_price":"73.53","price":"38.97","retail_price":"73.53","available":true,"url":"\/products\/casual-pocket-long-pu-leather-pants?variant=8e493b7e-8b61-4503-ba85-6016e24b8a20","available_quantity":999999999,"options":[{"name":"color","value":"coffee"},{"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.