${function() {
const variantData = data.variant || {"id":"fe838a47-40e0-4ef5-b017-0c44f27a1366","product_id":"36090a49-f11c-4f1d-afd1-942516088dc2","title":"Black","weight_unit":"g","inventory_quantity":592,"sku":"SKU102488430002","barcode":"","position":2,"option1":"Black","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/c982900b1758855357397921fcfe0ad6.jpeg","path":"c982900b1758855357397921fcfe0ad6.jpeg","width":1000,"height":1000,"alt":"American Fish Flag Pattern Baseball Cap - cioyinc","aspect_ratio":1},"wholesale_price":[{"price":10.98,"min_quantity":1}],"weight":"100","compare_at_price":"15.98","price":"10.98","retail_price":"15.98","available":true,"url":"\/products\/american-fish-flag-pattern-baseball-cap?variant=fe838a47-40e0-4ef5-b017-0c44f27a1366","available_quantity":592,"options":[{"name":"Color","value":"Black"}],"off_ratio":31,"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}
`
}()}
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"fe838a47-40e0-4ef5-b017-0c44f27a1366","product_id":"36090a49-f11c-4f1d-afd1-942516088dc2","title":"Black","weight_unit":"g","inventory_quantity":592,"sku":"SKU102488430002","barcode":"","position":2,"option1":"Black","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/c982900b1758855357397921fcfe0ad6.jpeg","path":"c982900b1758855357397921fcfe0ad6.jpeg","width":1000,"height":1000,"alt":"American Fish Flag Pattern Baseball Cap - cioyinc","aspect_ratio":1},"wholesale_price":[{"price":10.98,"min_quantity":1}],"weight":"100","compare_at_price":"15.98","price":"10.98","retail_price":"15.98","available":true,"url":"\/products\/american-fish-flag-pattern-baseball-cap?variant=fe838a47-40e0-4ef5-b017-0c44f27a1366","available_quantity":592,"options":[{"name":"Color","value":"Black"}],"off_ratio":31,"flashsale_info":[],"sales":0};
return `
`
}()}