Sttes Body Butter 05# (Vanilla Orchid Sandalwood) - Fast Absorbing, Lightweight, Non-Greasy, With Active Caffeine, Jojoba Seed Oil, Natural Coconut Oil, 250ml/8.45 fl.oz
${function() {
const variantData = data.variant || {"id":"0449a511-9e37-4e85-86c5-471c6ea99bc3","product_id":"24e297c5-91f6-4fba-af8e-2b75595eddf8","title":"","weight_unit":"kg","inventory_quantity":914,"sku":"05 Body Butter","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":16.8,"min_quantity":1}],"weight":"0","compare_at_price":"50","price":"16.8","retail_price":"50","available":true,"url":"\/products\/sttes-body-butter-05-vanilla-orchid-sandalwood-fast-absorbing-lightweight-non-greasy-with-active-caffeine-jojoba-seed-oil-natural-coconut-oil-250ml-8-45-fl-oz?variant=0449a511-9e37-4e85-86c5-471c6ea99bc3","available_quantity":914,"options":[],"off_ratio":"66","flashsale_info":{"variant_id":"0449a511-9e37-4e85-86c5-471c6ea99bc3","product_id":"","quantity":0,"discount_id":"","limit_time":0,"limit_buy":0,"user_limit_buy":0,"discount_sales":0,"discount_sales_rate":"","discount_stock":0,"ends_at":0,"starts_at":0,"allow_oversold":"","allocation_method":"","price":"16.8","compare_at_price":"","discount_price":"16.8","customary_saved_price":"","customary_off_ratio":"","discount_saved_price":"","discount_off_ratio":"66","use_before_price":false,"before_price":"","title":"","properties":"","color_setting_promotional_copy":"","discount_quantity":0,"is_need_split":false},"sales":86};
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('')}
`;
}()}
${function(){
const variantData = data.variant || {"id":"0449a511-9e37-4e85-86c5-471c6ea99bc3","product_id":"24e297c5-91f6-4fba-af8e-2b75595eddf8","title":"","weight_unit":"kg","inventory_quantity":914,"sku":"05 Body Butter","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":16.8,"min_quantity":1}],"weight":"0","compare_at_price":"50","price":"16.8","retail_price":"50","available":true,"url":"\/products\/sttes-body-butter-05-vanilla-orchid-sandalwood-fast-absorbing-lightweight-non-greasy-with-active-caffeine-jojoba-seed-oil-natural-coconut-oil-250ml-8-45-fl-oz?variant=0449a511-9e37-4e85-86c5-471c6ea99bc3","available_quantity":914,"options":[],"off_ratio":"66","flashsale_info":{"variant_id":"0449a511-9e37-4e85-86c5-471c6ea99bc3","product_id":"","quantity":0,"discount_id":"","limit_time":0,"limit_buy":0,"user_limit_buy":0,"discount_sales":0,"discount_sales_rate":"","discount_stock":0,"ends_at":0,"starts_at":0,"allow_oversold":"","allocation_method":"","price":"16.8","compare_at_price":"","discount_price":"16.8","customary_saved_price":"","customary_off_ratio":"","discount_saved_price":"","discount_off_ratio":"66","use_before_price":false,"before_price":"","title":"","properties":"","color_setting_promotional_copy":"","discount_quantity":0,"is_need_split":false},"sales":86};
return `
Inventory : ${variantData && variantData.available_quantity}
`
}()}
Product was out of stock.
Product does not exist
${function(){
const variantData = data.variant || {"id":"0449a511-9e37-4e85-86c5-471c6ea99bc3","product_id":"24e297c5-91f6-4fba-af8e-2b75595eddf8","title":"","weight_unit":"kg","inventory_quantity":914,"sku":"05 Body Butter","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":16.8,"min_quantity":1}],"weight":"0","compare_at_price":"50","price":"16.8","retail_price":"50","available":true,"url":"\/products\/sttes-body-butter-05-vanilla-orchid-sandalwood-fast-absorbing-lightweight-non-greasy-with-active-caffeine-jojoba-seed-oil-natural-coconut-oil-250ml-8-45-fl-oz?variant=0449a511-9e37-4e85-86c5-471c6ea99bc3","available_quantity":914,"options":[],"off_ratio":"66","flashsale_info":{"variant_id":"0449a511-9e37-4e85-86c5-471c6ea99bc3","product_id":"","quantity":0,"discount_id":"","limit_time":0,"limit_buy":0,"user_limit_buy":0,"discount_sales":0,"discount_sales_rate":"","discount_stock":0,"ends_at":0,"starts_at":0,"allow_oversold":"","allocation_method":"","price":"16.8","compare_at_price":"","discount_price":"16.8","customary_saved_price":"","customary_off_ratio":"","discount_saved_price":"","discount_off_ratio":"66","use_before_price":false,"before_price":"","title":"","properties":"","color_setting_promotional_copy":"","discount_quantity":0,"is_need_split":false},"sales":86};
return `
SKU : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}
${data.discount_code}