people are viewing this right now
${function() {
const variantData = data.variant || {"id":"87a78b3a-f2d6-46e6-b2a4-15d94b9a61ac","product_id":"5181e662-968e-48c6-8bf5-e136f2284faf","title":"black-XS","weight_unit":"kg","inventory_quantity":999,"sku":"","barcode":"","position":1,"option1":"black","option2":"XS","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e99f1002244ea7604b3a2880617d0f37.png","path":"e99f1002244ea7604b3a2880617d0f37.png","width":1190,"height":1785,"alt":"","aspect_ratio":0.6666666666666666},"wholesale_price":[{"price":65.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"65.99","retail_price":"0","available":true,"url":"\/products\/dressfashionable-slim-fitting-evening-dress-with-full-skirtdress?variant=87a78b3a-f2d6-46e6-b2a4-15d94b9a61ac","available_quantity":999999999,"options":[{"name":"color","value":"black"},{"name":"size","value":"XS"}],"off_ratio":0,"flashsale_info":[],"sales":78};
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":"87a78b3a-f2d6-46e6-b2a4-15d94b9a61ac","product_id":"5181e662-968e-48c6-8bf5-e136f2284faf","title":"black-XS","weight_unit":"kg","inventory_quantity":999,"sku":"","barcode":"","position":1,"option1":"black","option2":"XS","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e99f1002244ea7604b3a2880617d0f37.png","path":"e99f1002244ea7604b3a2880617d0f37.png","width":1190,"height":1785,"alt":"","aspect_ratio":0.6666666666666666},"wholesale_price":[{"price":65.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"65.99","retail_price":"0","available":true,"url":"\/products\/dressfashionable-slim-fitting-evening-dress-with-full-skirtdress?variant=87a78b3a-f2d6-46e6-b2a4-15d94b9a61ac","available_quantity":999999999,"options":[{"name":"color","value":"black"},{"name":"size","value":"XS"}],"off_ratio":0,"flashsale_info":[],"sales":78};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}