${function() {
const variantData = data.variant || {"id":"25ed587b-7c0a-4e70-9230-a6434bdeb860","product_id":"957f6b56-deae-4d14-aec8-37319dfcfc5f","title":"Black-S","weight_unit":"kg","inventory_quantity":1000,"sku":"T55F-A661-Black-S","barcode":"","position":1,"option1":"Black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/2d8f89072c487be643637ee76beaec47.jpg","path":"2d8f89072c487be643637ee76beaec47.jpg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":14.98,"min_quantity":1}],"weight":"0","compare_at_price":"26.19","price":"14.98","retail_price":"26.19","available":true,"url":"\/products\/dear-life-whatever-motherfxxker-whatever-t-shirt?variant=25ed587b-7c0a-4e70-9230-a6434bdeb860","available_quantity":1000,"options":[{"name":"color","value":"Black"},{"name":"size","value":"S"}],"off_ratio":43,"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":"25ed587b-7c0a-4e70-9230-a6434bdeb860","product_id":"957f6b56-deae-4d14-aec8-37319dfcfc5f","title":"Black-S","weight_unit":"kg","inventory_quantity":1000,"sku":"T55F-A661-Black-S","barcode":"","position":1,"option1":"Black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/2d8f89072c487be643637ee76beaec47.jpg","path":"2d8f89072c487be643637ee76beaec47.jpg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":14.98,"min_quantity":1}],"weight":"0","compare_at_price":"26.19","price":"14.98","retail_price":"26.19","available":true,"url":"\/products\/dear-life-whatever-motherfxxker-whatever-t-shirt?variant=25ed587b-7c0a-4e70-9230-a6434bdeb860","available_quantity":1000,"options":[{"name":"color","value":"Black"},{"name":"size","value":"S"}],"off_ratio":43,"flashsale_info":[],"sales":0};
return `
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}