${function() {
const variantData = data.variant || {"id":"995a5d5b-ec3f-4660-8a14-309980c8a4c1","product_id":"aba913d9-5e73-45d2-be6a-5385a26ffc8b","title":"black-S","weight_unit":"kg","inventory_quantity":0,"sku":"66221020432-black-S","barcode":"","position":1,"option1":"black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/a164ffd50f8c1c0b2a455bbcf4356a0d.jpeg","path":"a164ffd50f8c1c0b2a455bbcf4356a0d.jpeg","width":800,"height":1000,"alt":"Fashion casual PU leather pants","aspect_ratio":0.8},"wholesale_price":[{"price":39.75,"min_quantity":1}],"weight":"0.5","compare_at_price":"72.27","price":"39.75","retail_price":"72.27","available":true,"url":"\/products\/fashion-casual-pu-leather-pants?variant=995a5d5b-ec3f-4660-8a14-309980c8a4c1","available_quantity":999999999,"options":[{"name":"color","value":"black"},{"name":"size","value":"S"}],"off_ratio":45,"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.