close ×
Babylove 100% Natural Latex Mattress (70cm x 130cm) + 5 Years of Warranty
Babylove 100% Natural Latex Mattress (70cm x 130cm) + 5 Years of Warranty
Baby Fair | Babylove 100% Natural Latex Mattress (70cm x 130cm) + 5 Years of Warranty
Babylove 100% Natural Latex Mattress (70cm x 130cm) + 5 Years of Warranty
$359.00
$0.00
Available Programs:
Preorder
Bestbuy
Usual Price: $359.00

Product Info

Body support for a baby is very important. Hence, the Babylove Latex Mattress was designed to serve the purpose of providing a solid orthopedic support to your little one. With 6 sizes to choose from, these mattresses come with multiple monosize pinholes that provide a superb air-ventilation which helps ensure your baby to be sleeping on a cool and breathable mattress for comfort.

Made from 100% natural latex, it is safe for babies and adults all alike as it is non-toxic, non-allergenic and anti-dust mite at the same time. Not only that, it is extremely high density giving the maximum body support to your baby. On a side note, cleaning this mattress is headache free as all you need to do is clean it with a damp cloth, but you must never ever expose it under the sun or high heat.

Product features:

  • Breathable Pinholes, prevents suffocation even if your baby ends up lying face down unintentionally.
  • 100% Cotton Dobby, not only it is friendly to the skin but gives a light and soft texture.
  • Rollable and Foldable, easy to store in cupboards and portable for travelling.
  • Quick Rebound and Durable, long lasting firmness that will not deformed in shape overtime.

Materials and Measurement:

  • Filling: 100% Natural Latex
  • Casing: 100% Dobby Cotton

Terms and Conditions

Disclaimer

Babyland reserves the right to change, modify, suspend or discontinue all or any part of this Site without prior notice. The decision of Babyland shall be final. For more information, refer to our Terms of Service

Need Help?

For any questions, just email us at support@babyland.com.sg or call us at ( +65 ) 6812 8077 , Monday through Friday 9am to 6pm

MOST RECOMMENDED
View Other Prices
', 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 = 'aHR0cHM6Ly9iYWJ5bGFuZC5jb20uc2cvY29tcG9uZW50L3N0YXJidXlfc2xhc2gvcHJvZHVjdC8zMjg0LWJhYnlsb3ZlLTEwMC1uYXR1cmFsLWxhdGV4LW1hdHRyZXNzLSg3MGNtLXgtMTMwY20pLSstNS15ZWFycy1vZi13YXJyYW50eS5odG1s'; 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 = 'aHR0cHM6Ly9iYWJ5bGFuZC5jb20uc2cvY29tcG9uZW50L3N0YXJidXlfc2xhc2gvcHJvZHVjdC8zMjg0LWJhYnlsb3ZlLTEwMC1uYXR1cmFsLWxhdGV4LW1hdHRyZXNzLSg3MGNtLXgtMTMwY20pLSstNS15ZWFycy1vZi13YXJyYW50eS5odG1s'; 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 -->