${function() {
const variantData = data.variant || {"id":"165d4ade-8b85-4504-95ab-83aa24ae4743","product_id":"662665bf-1428-4ce2-8c2e-abb0b7f54e6a","title":"Red-M","weight_unit":"g","inventory_quantity":503,"sku":"101333670006","barcode":"","position":6,"option1":"Red","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0858df2da8051f9cc4a36967cec128db.jpeg","path":"0858df2da8051f9cc4a36967cec128db.jpeg","width":600,"height":600,"alt":"Fashion Color Matching Breathable Casual Shorts - ","aspect_ratio":1},"wholesale_price":[{"price":27.98,"min_quantity":1}],"weight":"300","compare_at_price":"38.48","price":"27.98","retail_price":"38.48","available":true,"url":"\/products\/fashion-color-matching-breathable-casual-shorts?variant=165d4ade-8b85-4504-95ab-83aa24ae4743","available_quantity":503,"options":[{"name":"Color","value":"Red"},{"name":"Size","value":"M"}],"off_ratio":27,"flashsale_info":[],"sales":12};
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.
${function(){
const variantData = data.variant || {"id":"165d4ade-8b85-4504-95ab-83aa24ae4743","product_id":"662665bf-1428-4ce2-8c2e-abb0b7f54e6a","title":"Red-M","weight_unit":"g","inventory_quantity":503,"sku":"101333670006","barcode":"","position":6,"option1":"Red","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0858df2da8051f9cc4a36967cec128db.jpeg","path":"0858df2da8051f9cc4a36967cec128db.jpeg","width":600,"height":600,"alt":"Fashion Color Matching Breathable Casual Shorts - ","aspect_ratio":1},"wholesale_price":[{"price":27.98,"min_quantity":1}],"weight":"300","compare_at_price":"38.48","price":"27.98","retail_price":"38.48","available":true,"url":"\/products\/fashion-color-matching-breathable-casual-shorts?variant=165d4ade-8b85-4504-95ab-83aa24ae4743","available_quantity":503,"options":[{"name":"Color","value":"Red"},{"name":"Size","value":"M"}],"off_ratio":27,"flashsale_info":[],"sales":12};
return `
`
}()}