people are viewing this right now
${function() {
const variantData = data.variant || {"id":"8db685a1-2488-493e-a883-b7e22a4f0502","product_id":"29746906-6f78-4187-859a-b6ddb9f22a17","title":"A","weight_unit":"lb","inventory_quantity":1000,"sku":"US1345562-\u624b\u6367\u86cb\u5973\u5deb","barcode":"","position":1,"option1":"A","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/2296b2a74d0b838e853d6571301ed53b.jpeg","path":"2296b2a74d0b838e853d6571301ed53b.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":22.99,"min_quantity":1}],"weight":"0","compare_at_price":"32","price":"22.99","retail_price":"32","available":true,"url":"\/products\/nightmare-witch-resin-crafts-halloween-garden-decoration-2?variant=8db685a1-2488-493e-a883-b7e22a4f0502","available_quantity":999999999,"options":[{"name":"Style","value":"A"}],"off_ratio":28,"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}
`
}()}
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"8db685a1-2488-493e-a883-b7e22a4f0502","product_id":"29746906-6f78-4187-859a-b6ddb9f22a17","title":"A","weight_unit":"lb","inventory_quantity":1000,"sku":"US1345562-\u624b\u6367\u86cb\u5973\u5deb","barcode":"","position":1,"option1":"A","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/2296b2a74d0b838e853d6571301ed53b.jpeg","path":"2296b2a74d0b838e853d6571301ed53b.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":22.99,"min_quantity":1}],"weight":"0","compare_at_price":"32","price":"22.99","retail_price":"32","available":true,"url":"\/products\/nightmare-witch-resin-crafts-halloween-garden-decoration-2?variant=8db685a1-2488-493e-a883-b7e22a4f0502","available_quantity":999999999,"options":[{"name":"Style","value":"A"}],"off_ratio":28,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}