people are viewing this right now
${function() {
const variantData = data.variant || {"id":"8c30c175-697f-4301-8d77-6916f0c0ba87","product_id":"15fa2ddd-483c-4e69-9d11-11e968c01bfe","title":"A-S","weight_unit":"kg","inventory_quantity":998,"sku":"","barcode":"","position":1,"option1":"A","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/efabbef3ba3ac784445ec904b438ffda.png","path":"efabbef3ba3ac784445ec904b438ffda.png","width":2876,"height":4320,"alt":"","aspect_ratio":0.6657407407407407},"wholesale_price":[{"price":59.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"59.99","retail_price":"0","available":true,"url":"\/products\/dressfashion-printed-slit-dressdress?variant=8c30c175-697f-4301-8d77-6916f0c0ba87","available_quantity":999999999,"options":[{"name":"style","value":"A"},{"name":"size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":23};
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":"8c30c175-697f-4301-8d77-6916f0c0ba87","product_id":"15fa2ddd-483c-4e69-9d11-11e968c01bfe","title":"A-S","weight_unit":"kg","inventory_quantity":998,"sku":"","barcode":"","position":1,"option1":"A","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/efabbef3ba3ac784445ec904b438ffda.png","path":"efabbef3ba3ac784445ec904b438ffda.png","width":2876,"height":4320,"alt":"","aspect_ratio":0.6657407407407407},"wholesale_price":[{"price":59.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"59.99","retail_price":"0","available":true,"url":"\/products\/dressfashion-printed-slit-dressdress?variant=8c30c175-697f-4301-8d77-6916f0c0ba87","available_quantity":999999999,"options":[{"name":"style","value":"A"},{"name":"size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":23};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}