-1 && window.location.href.indexOf(‘/es/’) < 0) { function getParameterByName( name ){ name = name.replace(/[[]/,"\[").replace(/[]]/,"\]"); var regexS = "[\?&]"+name+"=([^&#]*)"; var regex = new RegExp( regexS ); var results = regex.exec( window.location.href ); if( results == null ) return ""; else return decodeURIComponent(results[1]); } function setPrice(totalPrice, monthlyPrice, prdDeferredMonth) { if(window.innerWidth ‘; $(startFromDom).insertBefore(‘.s-snav-button’); } else { $(‘.ma-floating-nav__utility-list’).append(‘
‘); } } var setnavTitle = function(title) { $(‘.ma-floating-nav__headline-link’).text(title); }; if(getParameterByName(‘modelCode’)) { var sku = getParameterByName(‘modelCode’); window.COUNTRY_SHOP_URL = window.COUNTRY_SHOP_URL.split(‘?’)[0]+ ‘?modelCode=’ + getParameterByName(‘modelCode’); $(‘.s-snav-button’).attr(‘href’, $(‘.s-snav-button’).attr(‘href’).split(‘?’)[0]+’?modelCode=’ + getParameterByName(‘modelCode’)); if(window.Cookies(‘tppid’)) { // epp user var requestData = { referralUrl: document.referrer, planId: $.cookie(‘tppid’), modelCodes: sku, accessToken: $.cookie(‘DR_SESSION_TOKEN’) }; var eppLink = ‘/us/shop/price.us’; $.ajax({ url: eppLink, data: requestData, type: ‘POST’, dataType: ‘json’, error: function() { console.log(‘error loading /us/shop/price.us.’); } }).success(function(succ){ var totalPriceEpp = succ[0].prdPromoPriceInf || succ[0].prdPriceInf var totalPrice = (Number(totalPriceEpp.slice(1).replace(‘,’, ”)) – Number(succ[0].tradeDiscountPrice)).toFixed(2); var monthlyPrice = (totalPrice / 36).toFixed(2); var prdDeferredMonth = succ[0].prdDeferredMonth; if(totalPrice && monthlyPrice && prdDeferredMonth && !isNaN(prdDeferredMonth)) { setPrice(totalPrice, monthlyPrice, prdDeferredMonth); } }); // $.ajax({ // url: ‘/us/api/consumer/product-info/?tradeFlag=Y&modelCode=’ + getParameterByName(‘modelCode’), // type: ‘POST’, // error: function() { // console.log(‘error loading /us/api/consumer/product-info/’); // }, // success: function(productObj) { // setnavTitle(productObj.info.productName); // } // }); } else { $.ajax({ url: ‘/us/api/consumer/product-info/?tradeFlag=Y&modelCode=’ + getParameterByName(‘modelCode’), type: ‘POST’, error: function() { console.log(‘error loading /us/api/consumer/product-info/’); }, success: function(productObj) { var totalPrice = productObj.info.samsungPrice; var monthlyPrice = productObj.info.monthlyPrice; var noOfMonths = parseInt(productObj.info.deferredMonth); if(totalPrice && monthlyPrice) { setPrice(totalPrice, monthlyPrice, noOfMonths); } // setnavTitle(productObj.info.productName); } }); } } else { setPrice(‘249.99’, ‘10.42’, ’24’); } } 0 ? $footer_left.children() : ”, $footer_disclaimer_p_content = $footer_disclaimer_p.length > 0 ? $footer_disclaimer_p.children() : ”, $footer_disclaimer_li_content = $footer_disclaimer_li.length > 0 ? $footer_disclaimer_li.children() : ”; var prepare = function() { var formatElement = function (root, content, li) { if(!content) return; var li = li || false; var len = content.length; // var height = oneRowHeight || 20; var newContent = ”; _.forEach(content, function (item) { var html = $(item).html(); if(html.indexOf(‘ -1 && html.indexOf(‘<a') <= 80) { if (li) { html = '
‘; if (spanish) { html = ”; } else { html = ”; } } if (li) { html = ‘
‘ } newContent += html; }); root.html(newContent); }; var setDataDefault = function() { var $disclaimer__singles = $(‘.m_dotcom_footer article .disclaimer__single’); if($disclaimer__singles.length > 0) { _.forEach($disclaimer__singles, function (single) { if($(single).attr(‘data-default’).length === 0) { var html = $(single).html(); $(single).attr(‘data-default’, html); } $(single).attr(‘disable-Shorten’, false); }); } }; formatElement($footer_left, $footer_left_content); formatElement($footer_disclaimer_p, $footer_disclaimer_p_content); formatElement($footer_disclaimer_li, $footer_disclaimer_li_content, true); setDataDefault(); }; var init = function() { var $disclaimer = $(‘.disclaimer__row’), $disclaimer_single = $(‘.m_dotcom_footer article .disclaimer__single’), rowWidth = 0; var formatDisclaimer = function ($item, resize, idx) { var resize = resize || false, idx = idx || 0; if($item.attr(‘disable-Shorten’) === “true”) return; var strings = $item.text(), htmlStrings = $item.attr(‘data-default’).length > $item.html().length ? $item.attr(‘data-default’) : $item.html(), shortString = ”, charsWidth = -1, stringLength = 0, limitLength = $($disclaimer[idx]).length > 0 ? $($disclaimer[idx]).width() : $disclaimer.width(); if (strings.length > 0) { var temp = $item.html(); $item.text(‘Abcd efgh ‘); charsWidth = $item.width(); rowWidth = rowWidth || $disclaimer.width(); stringLength = Math.floor(((limitLength – charsWidth) / charsWidth)) * 10 + superscriptLength(htmlStrings) – 5; var newLength = htmlStrings.indexOf(‘. ‘) + 1; if(newLength === 0) { $item.html(htmlStrings); $item.attr(‘disable-Shorten’, “true”); $item.siblings(‘.disclaimer__hide__single’).hide(); $item.siblings(‘.disclaimer__show__single’).hide(); return; } shortString = htmlStrings.slice(0, stringLength); var lastSpace = shortString.lastIndexOf(‘ ‘); shortString = shortString.slice(0, lastSpace) + ‘…’; var newString = htmlStrings.substr(0, newLength) + ‘ ‘; if(resize) { $item.attr(‘data-default’, newString); $item.html(temp); } else $item.html(newString); } }; var superscriptLength = function (string) { var len = 0, sup = string.substring(0,50).split(” 0) { _.forEach($disclaimer_single, function (item, idx) { if($(item).height() -1) { spanish = true; } if($footer_left_content.length > 0 || $footer_disclaimer_p_content.length > 0 || $footer_disclaimer_li_content.length > 0) { prepare(); init(); } } catch (e) { console.log(“shorten disclaimer feature error”, e); } }); 0 && $(‘#page-path’).attr(‘data-value’) + ‘_CTA’; tiggerFirebase(event, url); window.location.href = $(this).attr(“href”) + window.location.search; }) var init = function () { var url = window.location.href; var event = $(‘#page-path’) && $(‘#page-path’).length > 0 && $(‘#page-path’).attr(‘data-value’); var page_view = ‘PAGEVIEW_’; tiggerFirebase(page_view + event, url); } if ($(‘.ma-floating-nav .s-snav-button’).eq(0) && $(‘.ma-floating-nav .s-snav-button’).eq(0).text()) { $(‘.order-button.custom’).text($(‘.ma-floating-nav .s-snav-button’).eq(0).text()); } else { $(‘.order-button.custom’).hide(); } init(); if (window && typeof EcommAndroidClient !== ‘undefined’) { // Set title window.EcommAndroidClient.setTitle(‘Galaxy S20 5G’); // Back button should close webview window.onPressBack = function () { window.EcommAndroidClient.close(); }; window.EcommAndroidClient.configureBackV2(false, false, false, ‘onPressBack’); } } catch (e) { console.log(e, “app analytic error”); } }) ]]>
‘; } var prod = ”; if($(this).hasClass(‘c_btn_hubble-type2’)) { prod = $(this).attr(‘title’) ? ‘>’ + $(this).attr(‘title’) : ”; } window.utag && window.utag.link({ link_cat: text.trim(), link_id: $(‘#page-path’).data(‘value’) + ‘_’ + text.trim(), link_meta: ‘link_name:’ + target + ‘ ‘ + text.trim(), link_position: pagePath + prod, }); }); $(‘body’).on(‘click’, ‘.hubble.models.layer-models button’, function(e) { var pagePath = $(‘#page-path’).data(‘value’); window.utag && window.utag.link({ link_cat: ‘close’, link_id: $(‘#page-path’).data(‘value’) + ‘_’ + ‘compare close’, link_meta: ‘link_name:’ + ‘compare close’, link_position: pagePath, }); }); $(‘body’).on(‘click’,’.o_swap-toggle.s_pop’,function(e) { var pagePath = $(‘#page-path’).data(‘value’); var text = $(this).text(); window.utag && window.utag.link({ link_cat: text, link_id: $(‘#page-path’).data(‘value’) + ‘_’ + text, link_meta: ‘link_name:’ + text, link_position: pagePath, }); }); $(‘.m_jump_controls a’).on(‘click’, function(e) { var text = $(this).find(‘.text’).text(); var pagePath = $(‘#page-path’).data(‘value’); window.utag && window.utag.link({ link_cat: text, link_id: ‘product_explore_’ + text, link_meta: ‘link_name:’ + text, link_position: pagePath + ‘>bottom nav’ }); }); $(‘.m_goto_banner .bisiness a’).on(‘click’, function(e) { window.utag && window.utag.link({ link_cat: ‘go to samsung business’, link_id: ‘go to samsung business’, link_meta: ‘link_name:’ + ‘go to samsung business’, link_position: ‘samsung business’, }); }); $(‘.m_dotcom_footer’).on(‘click’, ‘.disclaimer__show__single’, function(e) { var pagePath = $(‘#page-path’).data(‘value’); window.utag && window.utag.link({ link_cat: ‘show disclaimer’, link_id: $(‘#page-path’).data(‘value’) + ‘_’ + ‘show disclaimer’, link_meta: ‘link_name:’ + ‘show disclaimer’, link_position: pagePath, }); }); $(‘.m_dotcom_footer’).on(‘click’, ‘.disclaimer__hide__single’, function(e) { var pagePath = $(‘#page-path’).data(‘value’); window.utag && window.utag.link({ link_cat: ‘hide disclaimer’, link_id: $(‘#page-path’).data(‘value’) + ‘_’ + ‘hide disclaimer’, link_meta: ‘link_name:’ + ‘hide disclaimer’, link_position: pagePath, }); }); $(‘.models-lnb a’).on(‘click’, function(e) { var pagePath = $(‘#page-path’).data(‘value’); window.utag && window.utag.link({ link_cat: ‘go to ‘ + $(this).text(), link_id: $(‘#page-path’).data(‘value’) + ‘_’ + $(this).text(), link_meta: ‘link_name:’ + $(this).text(), link_position: pagePath, }); }); console.log(“us tagging registered”); } catch (e) { console.log(“us tagging error”, e); } }); ]]>
<!– –>
Talk now with a live sales expert
All video calls are one way. You’ll be able to see your expert, but they can’t see you.
<!– –>
Video or text chat with product expert