${function() {
const variantData = data.variant || {"id":"d382ab27-3582-448d-8cae-7732a0e0349b","product_id":"05637b84-514a-491b-ada2-79bb72ef763a","title":"yellow-S","weight_unit":"kg","inventory_quantity":0,"sku":"662303241688-yellow-S","barcode":"","position":7,"option1":"yellow","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b9f6590d5124f279cf2dd61a4537b274.jpeg","path":"b9f6590d5124f279cf2dd61a4537b274.jpeg","width":800,"height":800,"alt":"Cotton linen draped semi-elastic lounge pants","aspect_ratio":1},"wholesale_price":[{"price":27.89,"min_quantity":1}],"weight":"0.3","compare_at_price":"38","price":"27.89","retail_price":"38","available":true,"url":"\/products\/cotton-linen-draped-semi-elastic-lounge-pants?variant=d382ab27-3582-448d-8cae-7732a0e0349b","available_quantity":999999999,"options":[{"name":"color","value":"yellow"},{"name":"Size","value":"S"}],"off_ratio":27,"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.