luck测试
${function() {
const variantData = data.variant || {"id":"220349d5-2632-4754-a7fe-5b15bcce07d7","product_id":"c8ab535a-d455-498e-bef9-eb6cae27184b","title":"\u7ea2-s","weight_unit":"kg","inventory_quantity":0,"sku":"-\u7ea2-s-A0041082","barcode":"","position":1,"option1":"\u7ea2","option2":"s","option3":"","note":"","image":null,"wholesale_price":[{"price":100,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"100","retail_price":"0","available":true,"url":"\/products\/\u5bb6\u5ead\u5957\u88c5?variant=220349d5-2632-4754-a7fe-5b15bcce07d7","available_quantity":999999999,"options":[{"name":"\u989c\u8272","value":"\u7ea2"},{"name":"\u7238\u7238\u7684\u5c3a\u7801","value":"s"}],"off_ratio":0,"flashsale_info":[],"sales":24};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${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":"220349d5-2632-4754-a7fe-5b15bcce07d7","product_id":"c8ab535a-d455-498e-bef9-eb6cae27184b","title":"\u7ea2-s","weight_unit":"kg","inventory_quantity":0,"sku":"-\u7ea2-s-A0041082","barcode":"","position":1,"option1":"\u7ea2","option2":"s","option3":"","note":"","image":null,"wholesale_price":[{"price":100,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"100","retail_price":"0","available":true,"url":"\/products\/\u5bb6\u5ead\u5957\u88c5?variant=220349d5-2632-4754-a7fe-5b15bcce07d7","available_quantity":999999999,"options":[{"name":"\u989c\u8272","value":"\u7ea2"},{"name":"\u7238\u7238\u7684\u5c3a\u7801","value":"s"}],"off_ratio":0,"flashsale_info":[],"sales":24};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}