${function() {
const variantData = data.variant || {"id":"fee584a7-789e-4256-8f87-5f56511ee04b","product_id":"0680302a-dd03-4dff-a71d-0340bdf77ebe","title":"green-S","weight_unit":"kg","inventory_quantity":0,"sku":"662303241679-green-S","barcode":"","position":13,"option1":"green","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ed5a0f58b068b2ec56e13743a4ee8fe1.jpeg","path":"ed5a0f58b068b2ec56e13743a4ee8fe1.jpeg","width":800,"height":800,"alt":"New style thin cotton and linen wide-leg trousers","aspect_ratio":1},"wholesale_price":[{"price":37.45,"min_quantity":1}],"weight":"0.3","compare_at_price":"48","price":"37.45","retail_price":"48","available":true,"url":"\/products\/new-style-thin-cotton-and-linen-wide-leg-trousers?variant=fee584a7-789e-4256-8f87-5f56511ee04b","available_quantity":999999999,"options":[{"name":"color","value":"green"},{"name":"Size","value":"S"}],"off_ratio":22,"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.