screen protector for FM-215HDR
${function() {
const variantData = data.variant || {"id":"8371a7fa-708d-4b32-bad8-6e4a14422a10","product_id":"20f7319c-2780-4c78-8b0f-19af40d20e1b","title":"","weight_unit":"kg","inventory_quantity":0,"sku":"screen protector","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":52.8,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"52.8","retail_price":"0","available":true,"url":"\/products\/screen-protector-for-fm-215hdr?variant=8371a7fa-708d-4b32-bad8-6e4a14422a10","available_quantity":999999999,"options":[],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
const map = {
B: ``,
C: ``,
A: `
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `-`
}
`
}
const price_group_arr = ["B","C","A"];
const price_str_arr = price_group_arr.map(type => map[type]);
return `
-
${price_str_arr.join('')}
`;
}()}
Product was out of stock.
Product does not exist
${function(){
const variantData = data.variant || {"id":"8371a7fa-708d-4b32-bad8-6e4a14422a10","product_id":"20f7319c-2780-4c78-8b0f-19af40d20e1b","title":"","weight_unit":"kg","inventory_quantity":0,"sku":"screen protector","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":52.8,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"52.8","retail_price":"0","available":true,"url":"\/products\/screen-protector-for-fm-215hdr?variant=8371a7fa-708d-4b32-bad8-6e4a14422a10","available_quantity":999999999,"options":[],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
SKU : ${variantData && variantData.sku}
`
}()}