${function() {
const variantData = data.variant || {"id":"ee49ca0f-b2df-4d4d-a0f5-f11a7d76fce3","product_id":"08583e01-b646-40c6-9d56-51b37075b1a3","title":"khaki-S","weight_unit":"kg","inventory_quantity":0,"sku":"66221020431-khaki-S","barcode":"","position":5,"option1":"khaki","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/baf83a56e261216b28c1197f933c2d81.jpeg","path":"baf83a56e261216b28c1197f933c2d81.jpeg","width":800,"height":1000,"alt":"women's high elastic PU leather pants","aspect_ratio":0.8},"wholesale_price":[{"price":39.82,"min_quantity":1}],"weight":"0.5","compare_at_price":"75.13","price":"39.82","retail_price":"75.13","available":true,"url":"\/products\/womens-high-elastic-pu-leather-pants?variant=ee49ca0f-b2df-4d4d-a0f5-f11a7d76fce3","available_quantity":999999999,"options":[{"name":"color","value":"khaki"},{"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.