${function() {
const variantData = data.variant || {"id":"6120cb5f-cbda-4641-874d-fc8fe0fd25d1","product_id":"5c0917f9-23da-4a39-ae65-bacd4430ba1e","title":"White-S","weight_unit":"g","inventory_quantity":0,"sku":"Lin4301588227646-White-S","barcode":"","position":1,"option1":"White","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/5be5ae567439e45b27948415cb5f8762.jpeg","path":"5be5ae567439e45b27948415cb5f8762.jpeg","width":1200,"height":1600,"alt":"Hot SaleSummer Linen Casual Solid Pants","aspect_ratio":0.75},"wholesale_price":[{"price":23.65,"min_quantity":1}],"weight":"200","compare_at_price":"44.62","price":"23.65","retail_price":"44.62","available":true,"url":"\/products\/hot-salesummer-linen-casual-solid-pants?variant=6120cb5f-cbda-4641-874d-fc8fe0fd25d1","available_quantity":999999999,"options":[{"name":"Color","value":"White"},{"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.