${function() {
const variantData = data.variant || {"id":"bd426a12-2ed4-4a01-a01b-a1f4ad8b71b1","product_id":"776e4580-95a7-41c5-8680-1ce50996786b","title":"black-S","weight_unit":"kg","inventory_quantity":0,"sku":"66221020439-black-S","barcode":"","position":1,"option1":"black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e4b412a26f7212b71191efbd9b8a5d3f.jpeg","path":"e4b412a26f7212b71191efbd9b8a5d3f.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=bd426a12-2ed4-4a01-a01b-a1f4ad8b71b1","available_quantity":999999999,"options":[{"name":"color","value":"black"},{"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.