${function() {
const variantData = data.variant || {"id":"fe8edaba-941f-49ab-b67d-b28f1f673d50","product_id":"55d264a0-61f2-4003-a7a6-efc80648138d","title":"Black-S","weight_unit":"kg","inventory_quantity":0,"sku":"2212122510-Black-S","barcode":"","position":7,"option1":"Black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/9d594b2ae0aa283873a536e5b23a781b.png","path":"9d594b2ae0aa283873a536e5b23a781b.png","width":600,"height":800,"alt":"Casual Crew Neck Sweatshirt","aspect_ratio":0.75},"wholesale_price":[{"price":25.99,"min_quantity":1}],"weight":"0.4","compare_at_price":"30","price":"25.99","retail_price":"30","available":true,"url":"\/products\/casual-crew-neck-sweatshirt?variant=fe8edaba-941f-49ab-b67d-b28f1f673d50","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"S"}],"off_ratio":13,"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.