close ×

Privacy Policy

  1. Introduction

    Babyland (“BL”, “we” or “us”) takes the privacy of your information seriously. This Privacy Policy applies to the babyfair.babyland.com.sg website (the “Website”) and governs data collection, processing and usage in compliance with the Personal Data Protection Act 2012 (No. 26 of 2012) of Singapore (“PDPA”). By using the Website, you consent to the data practices described in this statement. Capitalized terms that are not defined in this Privacy Policy have the meaning given to them in our Terms of Service. By signing up for or using any products, services or campaigns offered by BL, or submitting information to or otherwise communicating with BL, you agree and consent to BL and our related entities, affiliates and subsidiaries, as well as their respective representatives and/or agents collecting, using and disclosing your Personal Data in accordance with this Privacy Policy.

    Affiliate Partners

    I agree that Mead Johnson Nutrition (Singapore) Pte Ltd, Reckitt Benckiser Group PLC or its affiliates (collectively "RB") and/or any contracted partners with RB, may by telephone, mail or other electronic means, market, promote and/or sell RB products to you, and you agree to our Privacy Policy and Terms and Conditions. You may opt not to receive such communications. Contact us for more details

    I agree to the processing of the personal data of my spouse and I by Mummys Market, Cordlife Group Limited and Cordlife Technologies Pte Ltd for marketing and/or research purposes, and I have informed my spouse that I have submitted his/her personal data to be contacted for any products and/or services updates, news, promotions, information via calls, SMS and/or emails.

    Information Collected from All Visitors to our Website

    We will obtain personal data about you when you visit us. When you visit us, we may monitor the use of this Website through the use of cookies and similar tracking devices. For example, we may monitor the number of times you visit our Website or which pages you go to. This information helps us to build a profile of our users. Some of this data will be aggregated or statistical, which means that we will not be able to identify you individually.

    This Privacy Policy applies to all visitors to our Website.

    Additional Personal Information that May be Collected

    BL may collect and process:

    1. Personally identifiable information, such as:
      1. Your e-mail address and name, when you contact us;
      2. Details contained in the relevant document that you key in when you use our Services. These details may include your name, handphone number, email, estimated due date, child’s date of birth, address, the purpose of your query, and details about your will; (“Personal Information”)
    2. Information about your computer hardware and software when you use our Website. The information can include: your IP address, browser type, domain names, access times and referring website addresses. This information is used by BL for the operation of the Services, to maintain quality of the Services, and to provide general statistics regarding use of the babyfair.babyland.com.sg Website.

    3. Links to information about your credit card or PayPal account (only if you choose to save these during payment). We do not save actual credit card information or PayPal account logins on our system; just links to this information are saved.
    4. Links to your social logins (Facebook) only if you choose to link them. Please note that we do not save Facebook login information on our site; only the links that allow you to check in quickly using social credentials are stored.
    5. List of products you are interested to buy in the future (only if you choose to add them to wishlist/ favorites)

    The purpose for the information we gather

    The information collected are required for us to better understand your needs and provide you with better service, and in particular for the following reasons:

    1. Billing address is used for payment processing
    2. Shipping address and contact information will be required to deliver your orders
    3. (Optional) Wishlist & Favorites are used for your convenience to help you remember which items you are interested to purchase later
    4. (Optional) PayPal/ Credit Card links are used to allow faster checkout without having to re-enter credit card or paypal login information
    5. (Optional) Social Login Links are used to enable faster login without requiring to re-enter username and password
    6. We may also gather your feedback from time to time to improve our products and services.
    7. From time to time, we may send promotional emails about special offers, new products, or other information which we think you may be interested in using the email address which you have provided.

    Use of Personal Information

    BL uses the collected information:

    1. To operate the Website and deliver the Services;
    2. To process, and where necessary, respond to your application, enquiry or request;
    3. To gather customer feedback;
    4. To inform or update you of other products or services available from BL and its affiliates, where you have consented to be contacted for such purposes;
    5. To monitor, improve and administer the Website and Services, and to provide general statistics regarding user of the Website;
    6. To update you on changes to the Website and Services.

    Non-disclosure

    BL does not sell, rent, lease, or release your Personal Information to third parties. BL may, from time to time, contact you on behalf of external business partners about a particular offering that may be of interest to you. In those cases, your unique Personal Information is not transferred to the third party without your explicit consent. In addition, BL may share data with trusted partners to help us perform statistical analysis, send you email or provide customer support. All such third parties are prohibited from using your personal information except to provide these services to BL, and they are required to maintain the confidentiality of your Personal Information.

    Disclosure of Personal Information

    BL will disclose or share your Personal Information, without notice, only if required to do so by law or in the good faith belief that any such action is necessary to: (a) comply with any legal requirements or comply with legal process served on BL or the Website; (b) protect and defend the rights or property of BL; and (c) act under exigent circumstances to protect the personal safety of users of BL, or the general public.

    We may disclose your personal information to third parties: (a) in the event that we sell or buy any business or assets, in which case we may disclose your personal data to the prospective seller or buyer of such business or assets; and (b) if BL or substantially all of its assets are acquired by a third party, in which case personal data held by it about its customers will be one of the transferred assets.

    How to request for deletion for information we gather from you

    Please contact us at info@babyland.com.sg if you would like to completely delete your Mummy Market account.

    Our team will process the deletion of all information we collected from you.

    There is also an option to request for partial deletion of your information stored, such as:

    1. Contact information
    2. Shipping/Billing addresses
    3. PayPal & credit card information
    4. Social Logins
    5. Wishlist items

    Please highlight the respective sections to our support team, and we will process your deletion request accordingly.

    Use Of Cookies

    The Website uses “cookies” to help you personalize your online experience. A cookie is a text file that is placed on your hard drive by a web page server. Cookies cannot be used to run programs or deliver viruses to your computer. Cookies are uniquely assigned to you, and can only be read by a web server in the domain that issued the cookie to you.

    Cookies on the Website may be used to ensure a smooth user experience, perform analytics, and for showing relevant advertisements. Please note that third parties (such as analytics software) may also use cookies, over which we have no control. These cookies are likely to be analytical/performance cookies or targeting cookies.

    The Website uses Google Analytics. Please refer to  http://www.google.com/policies/privacy/partners to find out more about how Google uses data when you use our website and how to control the information sent to Google.

    Most Web browsers automatically accept cookies, but you can usually modify your browser setting to decline cookies if you prefer. If you choose to decline cookies, you may not be able to access all or parts of our Website or to fully experience the interactive features of the BL services or websites you visit.

    Security Of Your Personal Information

    We strive to maintain the safety of your Personal Information. Any payment transactions will be encrypted using SSL technology. Unfortunately, no internet-based service is completely secure. Although we will do our best to protect your personal data, we cannot guarantee the security of your data transmitted to our site; any transmission is at your own risk. Once we have received your information, we will use strict procedures and security features to try to prevent unauthorised access.

    Access to, Updating, and Non-Use of Your Personal Information

    Subject to the exceptions referred to in section 21(2) of PDPA, you have the right to request a copy of the information that we hold about you. If you would like a copy of some or all of your personal information, please send an email to info@babyland.com.sg. We may make a small charge for this service.

    We want to ensure that your Personal Information is accurate and up to date. If any of the information that you have provided to BL changes, for example if you change your email address, name or contact number, please let us know the correct details by sending an email to info@babyland.com.sg. You may ask us, or we may ask you, to correct information you or we think is inaccurate, and you may also ask us to remove information which is inaccurate.

    You have the right to ask us not to collect, use, process, or disclose your Personal Information in any of the manner described herein. We will usually inform you (before collecting your Personal Information) if we intend to use your Personal Information for such purposes or if we intend to disclose your Personal Information to any third party for such purposes. You can give us notice of your intention to halt the collection, use, processing, or disclosure of your Personal Information at any time by contacting us at info@babyland.com.sg.

    Links to Other Websites

    Our Website may contain links to other websites. This Privacy Policy only applies to this website so when you link to other websites you should read their own privacy policies.

    Changes To This Statement

    BL will occasionally update this Privacy Policy to reflect customer feedback. BL encourages you to periodically review this Privacy Policy to be informed of how BL is protecting your information.

    Contact Information

    Babyland welcomes your comments regarding this Privacy Policy. If you believe that info@babyland.com.sg has not adhered to this Privacy Policy, please contact us at info@babyland.com.sg.

', data_id); if (data_from == 'Redeemed') { setTimeout(function() { jQuery('.jquery-modal').find('.mmsignup-col2').find( '.blockover-form').css({ 'visibility': 'visible', 'height': '100vh' }); }, 400); } else { setTimeout(function() { jQuery('.jquery-modal').find('.mmsignup-col2').find( '.blockover-form').css({ 'visibility': 'hidden', 'height': '100vh' }); }, 400); } }); jQuery('body').on('click', '.form_box', function() { jQuery('.jquery-modal').find('.pp_msg_box').removeClass('pop_error'); jQuery('.jquery-modal').find('.pp_msg_box').removeClass('pop_success'); jQuery('.jquery-modal').find('.pp_msg_box').html(''); //var form_count = jQuery('.popform_container').find('.form_box').length; var form_count = jQuery('.jquery-modal').find('.popform_container').find( '.form_box').length; jQuery('.form_box').removeClass('active'); jQuery(this).addClass('active'); var active_tab = jQuery(this).attr('id'); var curr_tab = active_tab.replace('form_box', ''); var active_id = jQuery(this).attr('data-id'); pp_signup_form(active_id) jQuery('.popnav').attr('data-val', curr_tab); if (curr_tab == 1) { jQuery('.popnav-left').removeClass('active'); jQuery('.popnav-right').addClass('active'); } else if (curr_tab == form_count) { jQuery('.popnav-left').addClass('active'); jQuery('.popnav-right').removeClass('active'); } else { jQuery('.popnav-left').addClass('active'); jQuery('.popnav-right').addClass('active'); } var form_html = jQuery(this).html(); form_html += '
'; jQuery('.top_form_box').html(form_html); jQuery(".mmsignup-box").animate({ "backgroundColor": "#FFF" }, "slow"); jQuery(".mmsignup-col1").animate({ "backgroundColor": "#EFF1F2" }, "slow"); jQuery(".popmobform_container").css({ "display": "none" }).fadeOut("slow"); jQuery(".top_form_box").attr('data-action', 'open'); var block_form = jQuery(this).attr('data-form'); if (block_form == 'Redeemed') { setTimeout(function() { jQuery('.jquery-modal').find('.mmsignup-col2').find( '.blockover-form').css({ 'visibility': 'visible', 'height': '100vh' }); }, 400); } else { setTimeout(function() { jQuery('.jquery-modal').find('.mmsignup-col2').find( '.blockover-form').css({ 'visibility': 'hidden', 'height': '100vh' }); }, 400); } }); jQuery('body').on('click', '.top_form_box', function() { var data_action = jQuery(this).attr('data-action'); jQuery('.popform_container').addClass('popmobform_container'); if (data_action == 'open') { jQuery(".mmsignup-box").animate({ "backgroundColor": "rgba(0, 0, 0, 0.5)" }, "slow"); jQuery(".mmsignup-col1").animate({ "backgroundColor": "rgba(130, 130, 130, 0.5)" }, "slow"); jQuery(".popmobform_container").css({ "display": "block" }).fadeIn("slow"); jQuery('#pp_nav_icon').html( ''); jQuery(this).attr('data-action', 'close'); } else { jQuery(".mmsignup-box").animate({ "backgroundColor": "#FFF" }, "slow"); jQuery(".mmsignup-col1").animate({ "backgroundColor": "#EFF1F2" }, "slow"); jQuery(".popmobform_container").css({ "display": "none" }).fadeOut("slow"); jQuery('#pp_nav_icon').html( ''); jQuery(this).attr('data-action', 'open'); } }); jQuery('body').on('click', '.pp_input_box', function() { var pp_chk_count = jQuery('.jquery-modal').find('.pp_chk').length; var pp_chked_count = jQuery('.jquery-modal').find('.pp_chk').filter(':checked') .length; if (pp_chk_count == pp_chked_count) { jQuery('.jquery-modal').find('.pp_submit_btn').removeClass('pp_btn_disable'); jQuery('.jquery-modal').find('.pp_submit_btn').prop('disabled', false);; } else { jQuery('.jquery-modal').find('.pp_submit_btn').addClass('pp_btn_disable'); jQuery('.jquery-modal').find('.pp_submit_btn').prop('disabled', true);; } }); $('#mmsingup_forms').click(function(event) { event.preventDefault(); this.blur(); // Manually remove focus from clicked link. $.get(this.href, function(html) { $(html).appendTo('body').modal({ fadeDuration: 500, fadeDelay: 0.3 }); }); setTimeout(function() { if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i .test(navigator.userAgent)) { jQuery('.popform_container').addClass('popmobform_container'); } }, 300); }); $('#mmsingup_inner_forms').click(function(event) { event.preventDefault(); this.blur(); // Manually remove focus from clicked link. $.get(this.href, function(html) { $(html).appendTo('body').modal({ fadeDuration: 500, fadeDelay: 0.3 }); }); setTimeout(function() { if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i .test(navigator.userAgent)) { jQuery('.popform_container').addClass('popmobform_container'); } }, 300); }); // $('.expo_pgb_signup').on('click', function() { // $('#mmsingup_inner_forms').click(); // setTimeout(function() { // jQuery(".datepicker_pp").datepicker({ // changeMonth: true, // changeYear: true, // dateFormat: "yy-mm-dd", // minDate: new Date(), // maxDate: '+9M' // }); // }, 500); // }); $('.expo_pgb_signup').on('click', function() { location.href = 'https://babyland.com.sg/free-goodie-bag'; }); $('.expo_magaz_signup').on('click', function() { location.href = 'https://babyland.com.sg/shopping-magazine'; }); $('.expo_redeem_signup').on('click', function() { location.href = 'https://babyland.com.sg/shop-redeem.html'; }); /*Quick Buy Start*/ $('.quick_prod_buy').click(function(event) { event.preventDefault(); this.blur(); // Manually remove focus from clicked link. $.get(this.href, function(html) { $(html).appendTo('body').modal({ fadeDuration: 300, fadeDelay: 0.1 }); }); $('.ld_gen_icon_box').css('z-index', 1); $('.menu-floating-bottom').css('z-index', 1); $('.mob_sticky').css('z-index', 1); $('.sticky').css('z-index', 1); setTimeout(function() { if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i .test(navigator.userAgent)) { jQuery('.popform_container').addClass('popmobform_container'); } pp_timer_tigger(); $(".tool_tip_log").click(function(event) { //jQuery('body').on('click','.tool_tip_log',function(event){ event.stopImmediatePropagation(); return false; }); }, 650); }); jQuery('body').on('click', '.close-modal', function() { $('.ld_gen_icon_box').css('z-index', 2); $('.menu-floating-bottom').css('z-index', 2); $('.mob_sticky').css('z-index', 2); $('.sticky').css('z-index', 2); }); function pp_timer_tigger() { var myDate = new Date('July 24 2024 23:59:59 GMT+0800'); jQuery(".expo_pp_countdown").countdown(myDate, function(event) { $(this).html( event.strftime( '
%D
days
%H
:
%M
:
%S
left
' ) ); }); } jQuery('body').on('click', '.imgprod_change', function() { var path = jQuery(this).attr("data-id"); jQuery(".mainprod_image").attr("src", path); }); jQuery('body').on('click', '.pp_price_expand', function(e) { var action = jQuery(this).attr('data-action'); setTimeout(function() { pp_timer_tigger(); }, 650); if (action == 'open') { jQuery('body').find('.pp_prod_price_listing').css({ "display": "block" }).fadeIn("slow"); jQuery('body').find('.pd_mob_prod_price_listing').css({ "display": "block" }).fadeIn("slow"); jQuery(this).attr('data-action', 'close'); jQuery(this).find('.view_more_buy').html( 'Collapse' ); jQuery('body').find('.pp_top_price_prod').css({ "display": "none" }).fadeOut("slow"); } else { jQuery('body').find('.pp_prod_price_listing').css({ "display": "none" }).fadeOut("slow"); jQuery('body').find('.pd_mob_prod_price_listing').css({ "display": "none" }).fadeOut("slow"); jQuery('body').find('.pp_top_price_prod').css({ "display": "block" }).fadeIn("slow"); jQuery(this).attr('data-action', 'open'); jQuery(this).find('.view_more_buy').html( 'View Other Prices' ); } }); //$('#pre-attr-selection').change(function(){ jQuery('body').on('change', '.prod-attr-selection', function() { var attr_id = jQuery('.jquery-modal').find('.prod-attr-selection option:selected') .val(); if (typeof attr_id === 'undefined' || attr_id === null) { attr_id = jQuery('.slt_product_attr').find( '.prod-attr-selection option:selected').val(); } let url = path + "index.php?option=com_starbuy_slash&view=get_pattr_info&format=raw&a_id=" + attr_id; $('.starbuy_cta').attr('data-attr', attr_id); $('.buynow_cta').attr('data-attr', attr_id); $('.preorder_cta').attr('data-attr', attr_id); $('#ea_attr_id').val(attr_id); $.ajax({ url: url, cache: false, success: function(result) { let json = JSON.parse(result); //console.log(json); //console.log('--->',json.tag_type) let data = json.data; // console.log('===>',data.amount_retail); return false; var r_price = data.amount_retail; var s_price = data.attr_amount; var m_image = data.image; var preorder_price = data.preorder_price; var starbuy_price = data.starbuy_price; var starbuy_gift = data.starbuy_gift; var preorder_gift = data.preorder_gift; var eb_price = data.earlybird_price; var best_price = data.best_price; if (json.tag_type == 'preorder') { jQuery('body').find('.preorder_left').find('.pp_sold') .remove(); if (json.pre_qty == 'available' && preorder_price > 0) { jQuery('body').find('.preorder_left').addClass( 'preorder_shop_bdr_left'); jQuery('body').find('.preorder_right').addClass( 'preorder_shop_bdr_right'); jQuery('body').find('.preorder_action').addClass( 'preorder_cta'); jQuery('body').find('.preorder_left').removeClass( 'soldout_shop_bdr_left'); jQuery('body').find('.preorder_right').removeClass( 'soldout_shop_bdr_right'); jQuery('body').find('.preorder_gift_right').removeClass( 'quick_gift_sold'); jQuery('body').find('.preorder_gift_right').addClass( 'preorder_gift_bdr'); } else { jQuery('body').find('.preorder_left').addClass( 'soldout_shop_bdr_left'); jQuery('body').find('.preorder_right').addClass( 'soldout_shop_bdr_right'); jQuery('body').find('.preorder_left').append( ' Sold Out '); jQuery('body').find('.preorder_left').removeClass( 'preorder_shop_bdr_left'); jQuery('body').find('.preorder_right').removeClass( 'preorder_shop_bdr_right'); jQuery('body').find('.preorder_action').removeClass( 'preorder_cta'); jQuery('body').find('.preorder_gift_right').removeClass( 'preorder_gift_bdr'); jQuery('body').find('.preorder_gift_right').addClass( 'quick_gift_sold'); } if (preorder_gift != '') { jQuery('body').find('.preorder_gift_right').removeClass( 'disp_none'); jQuery('body').find('.preorder_gift_right').addClass( 'disp_flx'); jQuery('body').find('.preorder_left').addClass( 'btn_bdr_left'); jQuery('body').find('.preorder_right').addClass( 'btn_bdr_right'); jQuery('body').find('.preorder_gift_txt').text( preorder_gift); } else { jQuery('body').find('.preorder_gift_right').removeClass( 'disp_flx'); jQuery('body').find('.preorder_gift_right').addClass( 'disp_none'); jQuery('body').find('.preorder_left').removeClass( 'btn_bdr_left'); jQuery('body').find('.preorder_right').removeClass( 'btn_bdr_right'); } /*if(parseInt(eb_price)==0) { jQuery('body').find('.early_bird_right').html(''); }*/ } else if (json.tag_type == 'preorder_starbuy') { jQuery('body').find('.preorder_left').find('.pp_sold') .remove(); jQuery('body').find('.online_left').find('.pp_sold') .remove(); if (json.pre_qty == 'available' && preorder_price > 0) { jQuery('body').find('.preorder_left').addClass( 'preorder_shop_bdr_left'); jQuery('body').find('.preorder_right').addClass( 'preorder_shop_bdr_right'); jQuery('body').find('.preorder_action').addClass( 'preorder_cta'); jQuery('body').find('.preorder_left').removeClass( 'soldout_shop_bdr_left'); jQuery('body').find('.preorder_right').removeClass( 'soldout_shop_bdr_right'); jQuery('body').find('.preorder_gift_right').removeClass( 'quick_gift_sold'); jQuery('body').find('.preorder_gift_right').addClass( 'preorder_gift_bdr'); } else { jQuery('body').find('.preorder_left').addClass( 'soldout_shop_bdr_left'); jQuery('body').find('.preorder_right').addClass( 'soldout_shop_bdr_right'); jQuery('body').find('.preorder_left').append( ' Sold Out '); jQuery('body').find('.preorder_left').removeClass( 'preorder_shop_bdr_left'); jQuery('body').find('.preorder_right').removeClass( 'preorder_shop_bdr_right'); jQuery('body').find('.preorder_action').removeClass( 'preorder_cta'); jQuery('body').find('.preorder_gift_right').removeClass( 'preorder_gift_bdr'); jQuery('body').find('.preorder_gift_right').addClass( 'quick_gift_sold'); } jQuery('body').find('.starbuy_left').find('.pp_sold') .remove(); if (json.star_price == 'available' && starbuy_price > 0) { jQuery('body').find('.starbuy_left').addClass( 'starbuy_shop_bdr_left'); jQuery('body').find('.starbuy_right').addClass( 'starbuy_shop_bdr_right'); jQuery('body').find('.starbuy_action').addClass( 'starbuy_cta'); jQuery('body').find('.starbuy_left').removeClass( 'soldout_shop_bdr_left'); jQuery('body').find('.starbuy_right').removeClass( 'soldout_shop_bdr_right'); jQuery('body').find('.starbuy_gift_right').addClass( 'starbuy_gift_bdr'); jQuery('body').find('.starbuy_gift_right').removeClass( 'quick_gift_sold'); } else { jQuery('body').find('.starbuy_left').addClass( 'soldout_shop_bdr_left'); jQuery('body').find('.starbuy_right').addClass( 'soldout_shop_bdr_right'); jQuery('body').find('.starbuy_left').append( ' Sold Out '); jQuery('body').find('.starbuy_left').removeClass( 'starbuy_shop_bdr_left'); jQuery('body').find('.starbuy_right').removeClass( 'starbuy_shop_bdr_right'); jQuery('body').find('.starbuy_action').removeClass( 'starbuy_cta'); jQuery('body').find('.starbuy_gift_right').removeClass( 'starbuy_gift_bdr'); jQuery('body').find('.starbuy_gift_right').addClass( 'quick_gift_sold'); } if (starbuy_gift != '') { jQuery('body').find('.starbuy_gift_right').removeClass( 'disp_none'); jQuery('body').find('.starbuy_gift_right').addClass( 'disp_flx'); jQuery('body').find('.starbuy_left').addClass( 'btn_bdr_left'); jQuery('body').find('.starbuy_right').addClass( 'btn_bdr_right'); jQuery('body').find('.starbuy_gift_txt').text( starbuy_gift); }else if (preorder_gift != '') { jQuery('body').find('.preorder_gift_right').removeClass( 'disp_none'); jQuery('body').find('.preorder_gift_right').addClass( 'disp_flx'); jQuery('body').find('.preorder_left').addClass( 'btn_bdr_left'); jQuery('body').find('.preorder_right').addClass( 'btn_bdr_right'); jQuery('body').find('.preorder_gift_txt').text( preorder_gift); } else { jQuery('body').find('.starbuy_gift_right').removeClass( 'disp_flx'); jQuery('body').find('.starbuy_gift_right').addClass( 'disp_none'); jQuery('body').find('.starbuy_left').removeClass( 'btn_bdr_left'); jQuery('body').find('.starbuy_right').removeClass( 'btn_bdr_right'); } /*if(parseInt(eb_price)==0) { jQuery('body').find('.early_bird_right').html(''); }*/ } else if (json.tag_type == 'starbuy') { jQuery('body').find('.starbuy_left').find('.pp_sold') .remove(); if (json.star_price == 'available' && starbuy_price > 0) { jQuery('body').find('.starbuy_left').addClass('starbuy_shop_bdr_left'); jQuery('body').find('.starbuy_right').addClass('starbuy_shop_bdr_right'); jQuery('body').find('.starbuy_action').addClass('starbuy_cta'); jQuery('body').find('.starbuy_left').removeClass('soldout_shop_bdr_left'); jQuery('body').find('.starbuy_right').removeClass('soldout_shop_bdr_right'); jQuery('body').find('.starbuy_gift_right').addClass('starbuy_gift_bdr'); jQuery('body').find('.starbuy_gift_right').removeClass('quick_gift_sold'); } else { jQuery('body').find('.starbuy_left').addClass('soldout_shop_bdr_left'); jQuery('body').find('.starbuy_right').addClass('soldout_shop_bdr_right'); jQuery('body').find('.starbuy_left').append(' Sold Out '); jQuery('body').find('.starbuy_left').removeClass('starbuy_shop_bdr_left'); jQuery('body').find('.starbuy_right').removeClass('starbuy_shop_bdr_right'); jQuery('body').find('.starbuy_action').removeClass('starbuy_cta'); jQuery('body').find('.starbuy_gift_right').removeClass('starbuy_gift_bdr'); jQuery('body').find('.starbuy_gift_right').addClass('quick_gift_sold'); } if (starbuy_gift != '') { jQuery('body').find('.starbuy_gift_right').removeClass('disp_none'); jQuery('body').find('.starbuy_gift_right').addClass('disp_flx'); jQuery('body').find('.starbuy_left').addClass('btn_bdr_left'); jQuery('body').find('.starbuy_right').addClass('btn_bdr_right'); jQuery('body').find('.starbuy_gift_txt').text(starbuy_gift); } else { jQuery('body').find('.starbuy_gift_right').removeClass('disp_flx'); jQuery('body').find('.starbuy_gift_right').addClass('disp_none'); jQuery('body').find('.starbuy_left').removeClass('btn_bdr_left'); jQuery('body').find('.starbuy_right').removeClass('btn_bdr_right'); } /*if(parseInt(eb_price)==0) { jQuery('body').find('.early_bird_right').html(''); }*/ } else if (json.tag_type == 'online_starbuy') { jQuery('body').find('.starbuy_left').find('.pp_sold') .remove(); jQuery('body').find('.online_left').find('.pp_sold') .remove(); if (json.star_price == 'available' && starbuy_price > 0) { jQuery('body').find('.starbuy_left').addClass( 'starbuy_shop_bdr_left'); jQuery('body').find('.starbuy_right').addClass( 'starbuy_shop_bdr_right'); jQuery('body').find('.starbuy_action').addClass( 'starbuy_cta'); jQuery('body').find('.starbuy_left').removeClass( 'soldout_shop_bdr_left'); jQuery('body').find('.starbuy_right').removeClass( 'soldout_shop_bdr_right'); jQuery('body').find('.starbuy_gift_right').addClass( 'starbuy_gift_bdr'); jQuery('body').find('.starbuy_gift_right').removeClass( 'quick_gift_sold'); } else { jQuery('body').find('.starbuy_left').addClass( 'soldout_shop_bdr_left'); jQuery('body').find('.starbuy_right').addClass( 'soldout_shop_bdr_right'); jQuery('body').find('.starbuy_left').append( ' Sold Out '); jQuery('body').find('.starbuy_left').removeClass( 'starbuy_shop_bdr_left'); jQuery('body').find('.starbuy_right').removeClass( 'starbuy_shop_bdr_right'); jQuery('body').find('.starbuy_action').removeClass( 'starbuy_cta'); jQuery('body').find('.starbuy_gift_right').removeClass( 'starbuy_gift_bdr'); jQuery('body').find('.starbuy_gift_right').addClass( 'quick_gift_sold'); } if (json.qty == 'available' && s_price > 0) { jQuery('body').find('.online_left').addClass( 'online_shop_bdr_left'); jQuery('body').find('.online_right').addClass( 'online_shop_bdr_right'); jQuery('body').find('.online_action').addClass( 'buynow_cta'); jQuery('body').find('.online_left').removeClass( 'soldout_shop_bdr_left'); jQuery('body').find('.online_right').removeClass( 'soldout_shop_bdr_right'); jQuery('body').find('.online_gift_right').addClass( 'online_gift_bdr'); jQuery('body').find('.online_gift_right').removeClass( 'quick_gift_sold'); } else { jQuery('body').find('.online_left').addClass( 'soldout_shop_bdr_left'); jQuery('body').find('.online_right').addClass( 'soldout_shop_bdr_right'); jQuery('body').find('.online_left').append( ' Sold Out '); jQuery('body').find('.online_left').removeClass( 'online_shop_bdr_left'); jQuery('body').find('.online_right').removeClass( 'online_shop_bdr_right'); jQuery('body').find('.online_action').removeClass( 'buynow_cta'); jQuery('body').find('.online_gift_right').removeClass( 'online_gift_bdr'); jQuery('body').find('.online_gift_right').addClass( 'quick_gift_sold'); } /*if(parseInt(eb_price)==0) { jQuery('body').find('.early_bird_right').html(''); }*/ } else if (json.tag_type == 'online') { jQuery('body').find('.online_left').find('.pp_sold') .remove(); if (json.qty == 'available' && s_price > 0) { jQuery('body').find('.online_left').addClass( 'online_shop_bdr_left'); jQuery('body').find('.online_right').addClass( 'online_shop_bdr_right'); jQuery('body').find('.online_action').addClass( 'buynow_cta'); jQuery('body').find('.online_left').removeClass( 'soldout_shop_bdr_left'); jQuery('body').find('.online_right').removeClass( 'soldout_shop_bdr_right'); jQuery('body').find('.online_gift_right').addClass( 'online_gift_bdr'); jQuery('body').find('.online_gift_right').removeClass( 'quick_gift_sold'); } else { jQuery('body').find('.online_left').addClass( 'soldout_shop_bdr_left'); jQuery('body').find('.online_right').addClass( 'soldout_shop_bdr_right'); jQuery('body').find('.online_left').append( ' Sold Out '); jQuery('body').find('.online_left').removeClass( 'online_shop_bdr_left'); jQuery('body').find('.online_right').removeClass( 'online_shop_bdr_right'); jQuery('body').find('.online_action').removeClass( 'buynow_cta'); jQuery('body').find('.online_gift_right').removeClass( 'online_gift_bdr'); jQuery('body').find('.online_gift_right').addClass( 'quick_gift_sold'); } } if (best_price == 0) { if (json.tag_type == 'preorder' || json.tag_type == 'online_preorder') { if (preorder_price != 0) { jQuery('body').find('.quick_best_price').text('$' + preorder_price); } else { jQuery('body').find('.quick_best_price').text('$' + s_price); } } else if (json.tag_type == 'starbuy' || json.tag_type == 'online_starbuy') { if (starbuy_price != 0) { jQuery('body').find('.quick_best_price').text('$' + starbuy_price); } else { jQuery('body').find('.quick_best_price').text('$' + s_price); } } else { jQuery('body').find('.quick_best_price').text('$' + s_price); } } else { jQuery('body').find('.quick_best_price').text('$' + best_price); } if (parseInt(r_price) > 0 && parseInt(r_price) > parseInt(preorder_price)) { jQuery('body').find('.quick_u_price').text('$' + r_price); jQuery('body').find('.mm_pdm_u_price').text('$' + r_price); } if (json.tag_type == 'preorder' || json.tag_type == 'online_preorder') { jQuery('body').find('.preorder_cta').attr('data-sell-price', preorder_price); jQuery('body').find('.buynow_cta').attr('data-sell-price', s_price); } else if (json.tag_type == 'starbuy' || json.tag_type == 'online_starbuy') { jQuery('body').find('.starbuy_cta').attr('data-sell-price', starbuy_price); jQuery('body').find('.buynow_cta').attr('data-sell-price', s_price); } else { jQuery('body').find('.buynow_cta').attr('data-sell-price', s_price); } jQuery('body').find('.preorder_right').text('$' + preorder_price); jQuery('body').find('.online_right').text('$' + s_price); jQuery('body').find('.starbuy_right').text('$' + starbuy_price); if (parseInt(eb_price) > 0) { jQuery('body').find('.early_bird_right').text('$' + eb_price); } if (m_image != null && m_image != '') { let i_path = 'https://babyland.com.sg/' + 'images/slash/' + m_image; jQuery('body').find('.mainprod_image').attr("src", i_path); } }, error: function(response) { console.log('Ajax error.'); } }); }); jQuery('body').on('click', '.promo_code_cpy', function() { var dcode = jQuery(this).attr('data-code'); if (dcode != '') { var $temp = jQuery(""); jQuery("body").append($temp); $temp.val(dcode).select(); document.execCommand("copy"); $temp.remove(); jQuery.amaran({ 'theme': 'awesome ok', 'content': { title: dcode, message: 'Copied', icon: 'fa fa-copy', info: '' }, 'position': 'top right', 'outEffect': 'slideTop' }); } }); jQuery('body').on('click', '.pd_promo_code_cpy', function() { var dcode = jQuery(this).attr('data-code'); if (dcode != '') { var $temp = jQuery(""); jQuery("body").append($temp); $temp.val(dcode).select(); document.execCommand("copy"); $temp.remove(); jQuery.amaran({ 'theme': 'awesome ok', 'content': { title: dcode, message: 'Copied', icon: 'fa fa-copy', info: '' }, 'position': 'top right', 'outEffect': 'slideTop' }); } }); jQuery('body').on('click', '.early_bird_cta', function() { jQuery('.eb_register').modal({ closeExisting: false }); var ea_first_name = sessionStorage.getItem("ea_first_name"); var ea_last_name = sessionStorage.getItem("ea_last_name"); var ea_phone = sessionStorage.getItem("ea_phone"); var ea_email = sessionStorage.getItem("ea_email"); var ea_edd = sessionStorage.getItem("ea_edd"); if (ea_first_name != '') { jQuery('input[name=ea_email]').val(ea_email); jQuery('input[name=ea_first_name]').val(ea_first_name); jQuery('input[name=ea_last_name]').val(ea_last_name); jQuery('input[name=ea_edd]').val(ea_edd); jQuery('input[name=ea_phone]').val(ea_phone); } }); jQuery('body').on('click', '#btn_earlybird', function() { event.preventDefault(); var email = jQuery('input[name=ea_email]').val(); var first_name = jQuery('input[name=ea_first_name]').val(); var last_name = jQuery('input[name=ea_last_name]').val(); var edd = jQuery('input[name=ea_edd]').val(); var phone = jQuery('input[name=ea_phone]').val(); var attr = jQuery('.jquery-modal').find('.prod-attr-selection').val(); var p_name = jQuery('.jquery-modal').find(".prod-attr-selection option:selected") .text(); if (typeof attr === 'undefined' || attr === null) { attr = jQuery('.slt_product_attr').find('.prod-attr-selection option:selected') .val(); p_name = jQuery('.slt_product_attr').find( '.prod-attr-selection option:selected').text(); } var p_id = jQuery(this).attr('data-pid'); var m_id = jQuery(this).attr('data-mid'); p_name = p_name.replace(/'/g, ""); var sell_price = jQuery(this).attr('data-sell-price'); var eb_data = { ea_attr_id: attr, ea_p_id: p_id, m_id: m_id, ea_prod_name: p_name, ea_price: sell_price, ea_free_gift: '', ea_email: email, ea_first_name: first_name, ea_last_name: last_name, ea_edd: edd, ea_phone: phone }; sessionStorage.setItem("ea_first_name", first_name); sessionStorage.setItem("ea_last_name", last_name); sessionStorage.setItem("ea_phone", phone); sessionStorage.setItem("ea_email", email); sessionStorage.setItem("ea_edd", edd); if (jQuery.trim(first_name) == '') { alert("Please enter your first name."); return false; } if (jQuery.trim(last_name) == '') { alert("Please enter your last name."); return false; } if (phone.length != 8) { alert("Please enter your 8 digit mobile number."); return false; } if (phone.charAt(0) != 8 && phone.charAt(0) != 9) { alert("Please enter valid 8 digit mobile number."); return false; } if (jQuery.trim(edd) == '') { alert("Please enter your edd."); return false; } var hospital = jQuery('select[name=hospital] option').filter(':selected').val(); if (hospital == '') { alert("Please select hospital name."); return false; } if (!ValidateEmail(jQuery('input[name=ea_email]').val())) { alert(email + " is Invalid email address."); } else { jQuery.ajax({ type: "POST", url: "https://babyland.com.sg/index.php?option=com_brand&view=earlybird_register&format=raw", data: eb_data, success: function(data) { if (data == 'success') { alert( 'Thank you, expect an email from us for all the Earlybird deals closer to the event date!' ) } else if (data == 'error') { alert('Something went wrong. Please try later.') } else if (data == 'invalid_email') { alert('Invalid email address.') } else if (data == 'exist') { alert('Already added to your Early Bird cart.') } else { alert('Sorry! Please contact administrator.') } jQuery('.remodal-close').click(); } }); } }); jQuery('body').on('click', '.buynow_cta', function() { var attr = jQuery('.jquery-modal').find('.prod-attr-selection').val(); var p_name = jQuery('.jquery-modal').find(".prod-attr-selection option:selected") .text(); if (typeof attr === 'undefined' || attr === null) { attr = jQuery('.slt_product_attr').find('.prod-attr-selection option:selected') .val(); p_name = jQuery('.slt_product_attr').find( '.prod-attr-selection option:selected').text(); } var p_id = jQuery(this).attr('data-pid'); var m_id = jQuery(this).attr('data-mid'); p_name = p_name.replace(/'/g, ""); var sell_price = jQuery(this).attr('data-sell-price'); var order_data = { attr: attr, p_id: p_id, m_id: m_id, p_name: p_name, sell_price: sell_price, cart_type: 0 }; quick_cart(order_data); }); jQuery('body').on('click', '.cart_buynow_cta', function() { var order_data = { attr: 39806, p_id: 18723, m_id: 123, p_name: 'Seminar Ticket - Couple', sell_price: 5.00, cart_type: 0 }; quick_cart(order_data); setTimeout(function() { location.reload(); }, 300); }); jQuery('body').on('click', '.preorder_cta', function() { var attr = jQuery('.jquery-modal').find('.prod-attr-selection option:selected') .val(); var p_name = jQuery('.jquery-modal').find(".prod-attr-selection option:selected") .text(); if (typeof attr === 'undefined' || attr === null) { attr = jQuery('.slt_product_attr').find('.prod-attr-selection option:selected') .val(); p_name = jQuery('.slt_product_attr').find( '.prod-attr-selection option:selected').text(); } var p_id = jQuery(this).attr('data-pid'); var m_id = jQuery(this).attr('data-mid'); p_name = p_name.replace(/'/g, ""); var sell_price = jQuery(this).attr('data-sell-price'); var order_data = { attr: attr, p_id: p_id, m_id: m_id, p_name: p_name, sell_price: sell_price, cart_type: 4 }; quick_cart(order_data); }); jQuery('body').on('click', '.starbuy_cta', function() { var attr = jQuery('.jquery-modal').find('.prod-attr-selection option:selected') .val(); var p_name = jQuery('.jquery-modal').find(".prod-attr-selection option:selected") .text(); if (typeof attr === 'undefined' || attr === null) { attr = jQuery('.slt_product_attr').find('.prod-attr-selection option:selected') .val(); p_name = jQuery('.slt_product_attr').find( '.prod-attr-selection option:selected').text(); } var p_id = jQuery(this).attr('data-pid'); var m_id = jQuery(this).attr('data-mid'); p_name = p_name.replace(/'/g, ""); var sell_price = jQuery(this).attr('data-sell-price'); var order_data = { attr: attr, p_id: p_id, m_id: m_id, p_name: p_name, sell_price: sell_price }; quick_starbuy_cart(order_data); }); function quick_starbuy_cart(od) { var currurl = 'aHR0cHM6Ly9iYWJ5bGFuZC5jb20uc2cvcHJpdmF0ZS1wb2xpY3k='; var checklog = '0'; if (checklog == 0) { var return_link = jQuery(location).attr('href'); location.href = "https://babyland.com.sg/index.php?option=com_users&view=login&Itemid=107&return=" + currurl; return false; } var nocache = new Date().getTime(); var attr = od.attr; var p_id = od.p_id; var m_id = od.m_id; var p_name = od.p_name; var p_amount = od.sell_price; fbq('track', 'AddToStarbuy', { content_type: 'product', content_ids: ['MM-' + p_id], content_name: p_name, value: p_amount, currency: 'SGD' }); jQuery.ajax({ url: path + "index.php?option=com_starbuy_slash&view=add_to_star_buy_item&format=raw&p_id=" + p_id + "&attr_id=" + attr + "&m_id=" + m_id + "&timex=" + nocache, cache: false, beforeSend: function() {}, success: function(result) { var data = JSON.parse(result); jQuery('.starbuy_count').text(data.cart_total); if (data.status == 'added') { var status = 'starbuy'; var title = 'Wishlist Item Added'; var product = p_name; var qty = '1'; var icon = 'fa fa-heart-o'; notify(status, title, product, qty, icon); } else if (data.status == 'update') { var status = 'starbuy'; var title = 'Item Already Added'; var product = p_name; var qty = 1; var icon = 'fa fa-heart-o'; notify(status, title, product, qty, icon); } else if (data.status == 'error') { var status = 'error'; var title = 'Something Wrong'; var product = data.msg; var qty = 0; var icon = 'fa fa-bug'; notify(status, title, product, qty, icon); } else { var status = 'error'; var title = 'Oops!'; var product = data.msg; var qty = 0; notify(status, title, product, qty, icon); } } }); } function quick_cart(od) { var checklog = '0'; var currurl = 'aHR0cHM6Ly9iYWJ5bGFuZC5jb20uc2cvcHJpdmF0ZS1wb2xpY3k='; var c_type = od.cart_type; if (checklog == 0 && od.c_type == 3) { location.href = "https://babyland.com.sg/index.php?option=com_users&view=login&Itemid=107&return=" + currurl; return false; } var nocache = new Date().getTime(); var attr = od.attr; var p_id = od.p_id; var m_id = od.m_id; var p_name = od.p_name; var sell_price = od.sell_price; var tracking = 'AddToCart'; if (c_type == 3) { tracking = 'AddToWishlist'; } if (c_type == 4) { tracking = 'preorder'; } fbq('track', tracking, { content_type: 'product', content_ids: ['MM-' + p_id], content_name: prod_name, value: sell_price, currency: 'SGD' }); jQuery.ajax({ url: path + "index.php?option=com_starbuy_slash&view=add_group_buy_item&format=raw&p_id=" + p_id + "&attr_id=" + attr + "&m_id=" + m_id + "&c_type=" + c_type + "&timex=" + nocache, cache: false, beforeSend: function() {}, success: function(result) { var data = JSON.parse(result); var status_txt = 'ok'; var data_msg = data.msg; if (c_type == 4) { status_txt = 'preorder'; if (data.qty == 1) { data_msg = 'Cart Added! (Pre-order)'; } else { data_msg = 'Cart Update! (Pre-order)'; } } jQuery('.bl_cart_count').text(data.cart_total); if (data.status == 'added') { var status = status_txt; var title = data_msg; var product = p_name; var qty = '1'; var icon = 'fa fa-cart-plus'; notify(status, title, product, qty, icon); } else if (data.status == 'update') { var status = status_txt; var title = data_msg; var product = p_name; var qty = data.qty; var icon = 'fa fa-cart-plus'; notify(status, title, product, qty, icon); } else if (data.status == 'error') { var status = 'error'; var title = 'Something Wrong'; var product = data.msg; var qty = 0; var icon = 'fa fa-bug'; notify(status, title, product, qty, icon); } else { var status = 'error'; var title = 'Oops!'; var product = data.msg; var qty = 0; notify(status, title, product, qty, icon); } } }); } /*Quick Buy End */ function pp_signup_form(form_id) { jQuery.ajax({ url: "https://babyland.com.sg/index.php?option=com_brand&view=pp_signup_form&format=raw&form_number=" + form_id, cache: false, beforeSend: function() {}, success: function(result) { //jQuery('.mm_signup').html(result).fadeIn('slow'); jQuery('.mmsignup-col2').hide().html(result).fadeIn('slow'); setTimeout(function() { jQuery(".datepicker_pp").datepicker({ changeMonth: true, changeYear: true, dateFormat: "yy-mm-dd", minDate: new Date(), maxDate: '+9M' }); jQuery(".datepicker_dob_pp").datepicker({ changeMonth: true, changeYear: true, dateFormat: "yy-mm-dd", minDate: new Date('2015/01/01'), maxDate: '-1D' }); }, 300); } }); } jQuery('body').on('click', '.pp_chk', function() { var pp_chk_count = jQuery('.jquery-modal').find('.pp_chk').length; var pp_chked_count = jQuery('.jquery-modal').find('.pp_chk').filter(':checked') .length if (pp_chk_count == pp_chked_count) { jQuery('.jquery-modal').find('.pp_submit_btn').removeClass('pp_btn_disable'); jQuery('.jquery-modal').find('.pp_submit_btn').prop('disabled', false);; } else { jQuery('.jquery-modal').find('.pp_submit_btn').addClass('pp_btn_disable'); jQuery('.jquery-modal').find('.pp_submit_btn').prop('disabled', true);; } }); jQuery('body').on('click', '.pp_submit_btn', function(e) { e.preventDefault(); var form = jQuery('.jquery-modal').find('.mm_signup'); var valid = []; $.each(form.serializeArray(), function(i, field) { //var input = $('input[name='+field.name+']').val(); field.value = $.trim(field.value); //console.log('===>',field.name); switch (field.name) { case "first_name": if (field.value == '') { $('input[name=' + field.name + ']').css({ "border": "1px solid #e90606" }); valid.push('no'); } else { $('input[name=' + field.name + ']').css({ "border": "1px solid #767677" }); valid.push('yes'); } break; case "last_name": if (field.value == '') { $('input[name=' + field.name + ']').css({ "border": "1px solid #e90606" }); valid.push('no'); } else { $('input[name=' + field.name + ']').css({ "border": "1px solid #767677" }); valid.push('yes'); } break; case "email": if (!ValidateEmail(field.value)) { $('input[name=' + field.name + ']').css({ "border": "1px solid #e90606" }); valid.push('no'); } else { $('input[name=' + field.name + ']').css({ "border": "1px solid #767677" }); valid.push('yes'); } break; case "phone": if (field.value.charAt(0) != 8 && field.value.charAt(0) != 9) { $('input[name=' + field.name + ']').css({ "border": "1px solid #e90606" }); valid.push('no'); } else { $('input[name=' + field.name + ']').css({ "border": "1px solid #767677" }); valid.push('yes'); } break; case "edd": if (field.value == '') { $('input[name=' + field.name + ']').css({ "border": "1px solid #e90606" }); valid.push('no'); } else { $('input[name=' + field.name + ']').css({ "border": "1px solid #767677" }); valid.push('yes'); } break; case "nric": if (field.value == '') { $('input[name=' + field.name + ']').css({ "border": "1px solid #e90606" }); valid.push('no'); } else { $('input[name=' + field.name + ']').css({ "border": "1px solid #767677" }); valid.push('yes'); } break; case "hospital": if (field.value == '') { $('select[name=' + field.name + ']').css({ "border": "1px solid #e90606" }); valid.push('no'); } else { $('select[name=' + field.name + ']').css({ "border": "1px solid #767677" }); valid.push('yes'); } break; case "postal_code": if (field.value == '') { $('input[name=' + field.name + ']').css({ "border": "1px solid #e90606" }); valid.push('no'); } else { $('input[name=' + field.name + ']').css({ "border": "1px solid #767677" }); valid.push('yes'); } break; case "street_addr": if (field.value == '') { $('input[name=' + field.name + ']').css({ "border": "1px solid #e90606" }); valid.push('no'); } else { $('input[name=' + field.name + ']').css({ "border": "1px solid #767677" }); valid.push('yes'); } break; case "unit_number": if (field.value == '') { $('input[name=' + field.name + ']').css({ "border": "1px solid #e90606" }); valid.push('no'); } else { $('input[name=' + field.name + ']').css({ "border": "1px solid #767677" }); valid.push('yes'); } break; case "qiren_box": if (field.value == '') { $('input[name=' + field.name + ']').css({ "border": "1px solid #e90606" }); valid.push('no'); } else { $('input[name=' + field.name + ']').css({ "border": "1px solid #767677" }); valid.push('yes'); } break; } }); if (jQuery.inArray("no", valid) !== -1) { var form_msg = ' Fill Required Inputs'; jQuery('.jquery-modal').find('.pp_msg_box').addClass('pop_error'); jQuery('.jquery-modal').find('.pp_msg_box').html(form_msg); } else { jQuery('.jquery-modal').find('.pp_submit_btn').addClass('pp_btn_disable'); jQuery('.jquery-modal').find('.pp_submit_btn').prop('disabled', true); jQuery.ajax({ type: "POST", url: "https://babyland.com.sg/index.php?option=com_brand&view=pp_ba_registration_form&format=raw", data: form.serializeArray(), dataType: 'json', success: function(res) { console.log(res); let { status, msg } = res; if (status == 'success') { var form_msg = ' ' + msg; jQuery('.jquery-modal').find('.pp_msg_box').removeClass( 'pop_error'); jQuery('.jquery-modal').find('.pp_msg_box').addClass( 'pop_success'); jQuery('.jquery-modal').find('.pp_msg_box').html( form_msg); var data_id = jQuery('.jquery-modal').find( '.popform_container').find('.active').attr('id'); jQuery('.jquery-modal').find('#' + data_id).find( '.pp_form_info').addClass('mm_green'); jQuery('.jquery-modal').find('#' + data_id).find( '.pp_form_info').text('Redeemed'); } else { var form_msg = ' ' + msg; jQuery('.jquery-modal').find('.pp_msg_box').addClass( 'pop_error'); jQuery('.jquery-modal').find('.pp_msg_box').html( form_msg); } } }); /*jQuery('.jquery-modal').find('.pp_msg_box').removeClass('pop_error'); jQuery('.jquery-modal').find('.pp_msg_box').addClass('pop_success'); jQuery('.jquery-modal').find('.pp_msg_box').html(' Subscribed successfully.');*/ } }); }); //Document ready end -->