${function() {
const variantData = data.variant || {"id":"34787f43-56ef-4287-8010-d16a4fe43828","product_id":"83846554-2dae-4455-b18a-da3a041fad6b","title":"White-S","weight_unit":"kg","inventory_quantity":0,"sku":"2212272900-White-S","barcode":"","position":1,"option1":"White","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ae4a7a2823498c3de5c71034e29b36aa.png","path":"ae4a7a2823498c3de5c71034e29b36aa.png","width":1080,"height":1080,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":24.98,"min_quantity":1}],"weight":"0.5","compare_at_price":"35.98","price":"24.98","retail_price":"35.98","available":true,"url":"\/products\/blah-blah-blah-shut-up-sweatshirt?variant=34787f43-56ef-4287-8010-d16a4fe43828","available_quantity":999999999,"options":[{"name":"color","value":"White"},{"name":"size","value":"S"}],"off_ratio":31,"flashsale_info":[],"sales":0};
const saveType = "amount";
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":"34787f43-56ef-4287-8010-d16a4fe43828","product_id":"83846554-2dae-4455-b18a-da3a041fad6b","title":"White-S","weight_unit":"kg","inventory_quantity":0,"sku":"2212272900-White-S","barcode":"","position":1,"option1":"White","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ae4a7a2823498c3de5c71034e29b36aa.png","path":"ae4a7a2823498c3de5c71034e29b36aa.png","width":1080,"height":1080,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":24.98,"min_quantity":1}],"weight":"0.5","compare_at_price":"35.98","price":"24.98","retail_price":"35.98","available":true,"url":"\/products\/blah-blah-blah-shut-up-sweatshirt?variant=34787f43-56ef-4287-8010-d16a4fe43828","available_quantity":999999999,"options":[{"name":"color","value":"White"},{"name":"size","value":"S"}],"off_ratio":31,"flashsale_info":[],"sales":0};
return `
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}