Sttes Smell Rio Shower Oil - 02# Irresistible Sunshine: Nourishing Shower Oil with Pistachio, Jasmine & Salted Caramel – Antioxidant-Rich Moisture Lock 155g
${function() {
const variantData = data.variant || {"id":"22f8b651-af41-4e53-b9a3-019e114534e8","product_id":"6db51364-dd47-4ae5-844f-5d170dc92824","title":"","weight_unit":"kg","inventory_quantity":163,"sku":"02 Shower Oil","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":14.99,"min_quantity":1}],"weight":"0","compare_at_price":"40","price":"14.99","retail_price":"40","available":true,"url":"\/products\/sttes-smell-rio-shower-oil-02-irresistible-sunshine-nourishing-shower-oil-with-pistachio-jasmine-salted-caramel-antioxidant-rich-moisture-lock-155g?variant=22f8b651-af41-4e53-b9a3-019e114534e8","available_quantity":163,"options":[],"off_ratio":"63","flashsale_info":{"variant_id":"22f8b651-af41-4e53-b9a3-019e114534e8","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":"14.99","compare_at_price":"","discount_price":"14.99","customary_saved_price":"","customary_off_ratio":"","discount_saved_price":"","discount_off_ratio":"63","use_before_price":false,"before_price":"","title":"","properties":"","color_setting_promotional_copy":"","discount_quantity":0,"is_need_split":false},"sales":122};
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":"22f8b651-af41-4e53-b9a3-019e114534e8","product_id":"6db51364-dd47-4ae5-844f-5d170dc92824","title":"","weight_unit":"kg","inventory_quantity":163,"sku":"02 Shower Oil","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":14.99,"min_quantity":1}],"weight":"0","compare_at_price":"40","price":"14.99","retail_price":"40","available":true,"url":"\/products\/sttes-smell-rio-shower-oil-02-irresistible-sunshine-nourishing-shower-oil-with-pistachio-jasmine-salted-caramel-antioxidant-rich-moisture-lock-155g?variant=22f8b651-af41-4e53-b9a3-019e114534e8","available_quantity":163,"options":[],"off_ratio":"63","flashsale_info":{"variant_id":"22f8b651-af41-4e53-b9a3-019e114534e8","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":"14.99","compare_at_price":"","discount_price":"14.99","customary_saved_price":"","customary_off_ratio":"","discount_saved_price":"","discount_off_ratio":"63","use_before_price":false,"before_price":"","title":"","properties":"","color_setting_promotional_copy":"","discount_quantity":0,"is_need_split":false},"sales":122};
return `
Inventory : ${variantData && variantData.available_quantity}
`
}()}
Product was out of stock.
Product does not exist
${function(){
const variantData = data.variant || {"id":"22f8b651-af41-4e53-b9a3-019e114534e8","product_id":"6db51364-dd47-4ae5-844f-5d170dc92824","title":"","weight_unit":"kg","inventory_quantity":163,"sku":"02 Shower Oil","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":14.99,"min_quantity":1}],"weight":"0","compare_at_price":"40","price":"14.99","retail_price":"40","available":true,"url":"\/products\/sttes-smell-rio-shower-oil-02-irresistible-sunshine-nourishing-shower-oil-with-pistachio-jasmine-salted-caramel-antioxidant-rich-moisture-lock-155g?variant=22f8b651-af41-4e53-b9a3-019e114534e8","available_quantity":163,"options":[],"off_ratio":"63","flashsale_info":{"variant_id":"22f8b651-af41-4e53-b9a3-019e114534e8","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":"14.99","compare_at_price":"","discount_price":"14.99","customary_saved_price":"","customary_off_ratio":"","discount_saved_price":"","discount_off_ratio":"63","use_before_price":false,"before_price":"","title":"","properties":"","color_setting_promotional_copy":"","discount_quantity":0,"is_need_split":false},"sales":122};
return `
SKU : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}
${data.discount_code}
${function(){
switch(data.status || data) {
case 'COUPON_RECEIVE_INSUFFICIENT_POINTS_ERROR': return `
Insufficient
`;
case 'BIRTHDAY_NOT_COME': return `
Your birthday time has not yet come
`;
case 'SHOW_LOGIN_TIP':
case 'UNAUTHORIZED':
return `You have not yet joined as a member or logged into your account`;
case 'COUPON_RECEIVE_NOT_IN_TIME_ERROR':
case 'COUPON_NOT_FOUND_ERROR':
case 'CAMPAIGN_NOT_FOUND_ERROR': return `Points benefit does not exist. Please refresh the page`;
case 'COUPON_RECEIVE_NOT_ELIGIBLE_ERROR':
case 'COUPON_RECEIVE_UPPER_LIMIT_ERROR':
case 'COUPON_RECEIVE_FAILED_ERROR': return `redemption failed. Please refresh the page and try again.`;
case 'COUPON_RECEIVE_NO_STOCK_ERROR': return `The coupon has been redeemed!`;
case 'LOYALTY_SERVER_UNAUTHORIZED': return `Please log in to your account!`;
case 'LOYALTY_SERVER_CUSTOMER_NOT_FOUND_ERROR': return `User error detected. Please refresh the page and try again~`;
case 'INVALID_PHONE_NUMBER_ERROR': return `Please enter a valid phone`;
case 'BENEFIT_UNSUBSCRIBE_FAILED_ERROR': return `Network error. Please try again!`;
case 'INVITE_REFERRAL_COPY_TIP': return `Link copied`;
case 'CAMPAIGN_ALREADY_RECEIVED_ERROR': return `Received the activity`;
case 'CAMPAIGN_IS_EXPIRE_ERROR': return `Event has expired`;
case 'MEMBER_BIRTHDAY_ALREADY_EXIST_ERROR': return `Your birthday has already been set and cannot be changed.`;
case 'REDEEM_SUCCESS_AND_COPY_CODE': return `Redeemed & code copied`;
case 'CLAIM_SUCCESS': return `Claimed successfully`;
case 'JOIN_SUCCESS': return `Congratulations! You have successfully joined the membership!`;
case 'COPY_SUCCESS': return `Copied successfully`;
case 'BENEFIT_NOT_FOUND_ERROR': return `This benefit does not exist. Please refresh the page and try again.`;
case 'WHEEL_SPIN_ERROR': return `Something went wrong. Please try again.`;
case 'WHEEL_CAMPAIGN_ENDED': return `This campaign has ended.`;
case 'WHEEL_CAMPAIGN_PARTICIPATING': return `Your entry is being processed. Please try again in a moment.`;
case 'WHEEL_CAMPAIGN_PARTICIPATED': return `You've already participated in this campaign. Please refresh the page and try again.`;
case 'UPGRADE_BENEFIT_HAD_NO_CODE': return `Does not meet the upgrade benefit distribution rules`;
default: return `The network is abnormal or the system is busy, please refresh the page and try again~`;
}
}()}