${function() {
const variantData = data.variant || {"id":"290ac611-f743-4b88-82fb-404901528f85","product_id":"e3d73e77-a479-47a6-9fef-1b583145d1db","title":"green-S","weight_unit":"kg","inventory_quantity":0,"sku":"662210093032-green-S","barcode":"","position":5,"option1":"green","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/62478e3c06282089beb2c0050c387512.jpeg","path":"62478e3c06282089beb2c0050c387512.jpeg","width":1536,"height":1920,"alt":"Autumn\/Winter Gold Velvet Straight Casual Pants","aspect_ratio":0.8},"wholesale_price":[{"price":34.08,"min_quantity":1}],"weight":"0.4","compare_at_price":"61.25","price":"34.08","retail_price":"61.25","available":true,"url":"\/products\/autumn-winter-gold-velvet-straight-casual-pants?variant=290ac611-f743-4b88-82fb-404901528f85","available_quantity":999999999,"options":[{"name":"color","value":"green"},{"name":"size","value":"S"}],"off_ratio":44,"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.