${function() {
const variantData = data.variant || {"id":"0c6e8e89-cf5a-4c03-84d9-ef96b66a32b0","product_id":"e3d73e77-a479-47a6-9fef-1b583145d1db","title":"black-S","weight_unit":"kg","inventory_quantity":0,"sku":"662210093032-black-S","barcode":"","position":9,"option1":"black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/dfc8646c6b734d6e7eaec68aa37e9820.jpeg","path":"dfc8646c6b734d6e7eaec68aa37e9820.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=0c6e8e89-cf5a-4c03-84d9-ef96b66a32b0","available_quantity":999999999,"options":[{"name":"color","value":"black"},{"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.