var breeze_prefetch = {"local_url":"https:\/\/www.xeroom.com","ignore_remote_prefetch":"1","ignore_list":["\/cart\/","\/checkout\/","\/my-account\/","\/my-account\/","\/wp-admin\/"]};
var jQueryMigrateHelperHasSentDowngrade = false;window.onerror = function( msg, url, line, col, error ) {
// Break out early, do not processing if a downgrade reqeust was already sent.
if ( jQueryMigrateHelperHasSentDowngrade ) {
return true;
}var xhr = new XMLHttpRequest();
var nonce = 'c1f5a5582c';
var jQueryFunctions = [
'andSelf',
'browser',
'live',
'boxModel',
'support.boxModel',
'size',
'swap',
'clean',
'sub',
];
var match_pattern = /\)\.(.+?) is not a function/;
var erroredFunction = msg.match( match_pattern );// If there was no matching functions, do not try to downgrade.
if ( null === erroredFunction || typeof erroredFunction !== 'object' || typeof erroredFunction[1] === "undefined" || -1 === jQueryFunctions.indexOf( erroredFunction[1] ) ) {
return true;
}// Set that we've now attempted a downgrade request.
jQueryMigrateHelperHasSentDowngrade = true;xhr.open( 'POST', 'https://www.xeroom.com/wp-admin/admin-ajax.php' );
xhr.setRequestHeader( 'Content-Type', 'application/x-www-form-urlencoded' );
xhr.onload = function () {
var response,
reload = false;if ( 200 === xhr.status ) {
try {
response = JSON.parse( xhr.response );reload = response.data.reload;
} catch ( e ) {
reload = false;
}
}// Automatically reload the page if a deprecation caused an automatic downgrade, ensure visitors get the best possible experience.
if ( reload ) {
location.reload();
}
};xhr.send( encodeURI( 'action=jquery-migrate-downgrade-version&_wpnonce=' + nonce ) );// Suppress error alerts in older browsers
return true;
}
var errorQueue = [];
var timeout;function isBot() {
const bots = ['bot', 'googlebot', 'bingbot', 'facebook', 'slurp', 'twitter','yahoo']; // Adicione outros bots, se necessário
const userAgent = navigator.userAgent.toLowerCase();
return bots.some(bot => userAgent.includes(bot));
}window.onerror = function(msg, url, line) {
var errorMessage = [
'Message: ' + msg,
'URL: ' + url,
'Line: ' + line
].join(' - ');// Filter bots errors...
if (isBot()) {
return;
}
errorQueue.push(errorMessage);
if (errorQueue.length >= 5) {
sendErrorsToServer();
} else {
clearTimeout(timeout);
timeout = setTimeout(sendErrorsToServer, 5000);
}
}
function sendErrorsToServer() {
if (errorQueue.length > 0) {
var message = errorQueue.join(' | ');
//console.log(message);
var xhr = new XMLHttpRequest();
var nonce = '8af0b5828e';
// var ajaxurl = encodeURIComponent('https://www.xeroom.com/wp-admin/admin-ajax.php?action=log_js_error&_wpnonce=8af0b5828e');
var ajaxurl = 'https://www.xeroom.com/wp-admin/admin-ajax.php?action=log_js_error&_wpnonce=8af0b5828e';
xhr.open('POST', encodeURI(ajaxurl));
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
xhr.onload = function() {
if (200 === xhr.status) {
try {
//console.log(xhr.response);
} catch (e) {
console.log('error xhr not 200!');
}
} else
{
console.log('error 2');
}
};
xhr.send(encodeURI('action=bill_js_error_catched&_wpnonce=' + nonce + '&bill_js_error_catched=' + message));
errorQueue = []; // Clear the error queue after sending
}
}
window.addEventListener('beforeunload', sendErrorsToServer);
Who this service is for – This service is for customers who have already installed and had Xeroom running successfully but now have some issues, errors or things not working correctly. Whilst email support is provided as part of the annual licence fee along with known bugs this doesn’t include logging in to your system and spending time doing detailed investigations and tests to find the cause of the error. Hence we provide this service to do just that. We will NOT meddle with your site in any way or uninstall or install any plugins apart from Xeroom and the test product that we will create.
Troubleshooting – In order to be able to fix something we need to identify the cause which requires investigation and troubleshooting. You can do this yourself if you prefer or we will do it as part of this service. The following checklist should guide you:
1. What messages are showing in the debug screen of Xeroom?
2. Can you replicate the error using a test product entered in the Woo order screen and then sent to Xero manually?
3. Have you checked the Woocommerce installation and Xero account over for anything odd or that might have changed?
4. What other Woocommerce related plugins are you using especially those that work with Woo and Woo orders? Have you tried disabling these and running a test order?
5. If 4 doesn’t resolve the error then try disabling all of the plugins apart from WooCommerce and Xeroom to see if the problem repeats? This can be quickly done in File Manager on the server by renaming the plugin directory.
6. If 4 or 5 do fix the issue then by a process of elimination you can find which plugin is responsible for the conflict.
7. What do the standard hosting, Woocommerce and WordPress error or debug logs give?
8. For GST issues check all of your tax settings end-to-end for the full process, ie from Woo rates, Xero methods, Xeroom mapping, Product tax setting and geographic settings of the shop and customer.
Your data is safe with us! – We agree to keep all your WooCommerce and Xero data and logins secure. We have a standard legal NDA that can be downloaded here if you are in any way concerned by this aspect.
Guarantee – We don’t guarantee that we will fix the issue but we are 95% confident that we will identify the cause. It may require a change of settings in Woo or deactivating a plugin. If we find a bug we will add it to our development list. If the error is very intermittent then the issue is whether we can replicate it and in such situations we don’t promise to do so and will proceed only on a “best endeavours” basis.
Report – We will let you know what we find and if it is due to a bug or not fixable then any possible workarounds.
Refunds – This service is non-refundable.
To proceed – Please order from here and then send me logins to your site and Xero systems using [email protected] and palloyd as the email and user.
var smuzform = {"ajaxurl":"https:\/\/www.xeroom.com\/wp-admin\/admin-ajax.php","errorMessages":{"required":"This field is required.","email":"Please enter a valid email address.","number":"The value you have entered is not a numeric value","url":"URL is not valid."}};
var wc_add_to_cart_variation_params = {"wc_ajax_url":"\/?wc-ajax=%%endpoint%%","i18n_no_matching_variations_text":"Sorry, no products matched your selection. Please choose a different combination.","i18n_make_a_selection_text":"Please select some product options before adding this product to your cart.","i18n_unavailable_text":"Sorry, this product is unavailable. Please choose a different combination."};
var wc_add_to_cart_params = {"ajax_url":"\/wp-admin\/admin-ajax.php","wc_ajax_url":"\/?wc-ajax=%%endpoint%%","i18n_view_cart":"View cart","cart_url":"https:\/\/www.xeroom.com\/cart\/","is_cart":"","cart_redirect_after_add":"yes"};
var wc_single_product_params = {"i18n_required_rating_text":"Please select a rating","review_rating_required":"yes","flexslider":{"rtl":false,"animation":"slide","smoothHeight":true,"directionNav":false,"controlNav":"thumbnails","slideshow":false,"animationSpeed":500,"animationLoop":false,"allowOneSlide":false},"zoom_enabled":"","zoom_options":[],"photoswipe_enabled":"","photoswipe_options":{"shareEl":false,"closeOnScroll":false,"history":false,"hideAnimationDuration":0,"showAnimationDuration":0},"flexslider_enabled":"1"};
var wc_order_attribution = {"params":{"lifetime":1.0e-5,"session":30,"ajaxurl":"https:\/\/www.xeroom.com\/wp-admin\/admin-ajax.php","prefix":"wc_order_attribution_","allowTracking":true},"fields":{"source_type":"current.typ","referrer":"current_add.rf","utm_campaign":"current.cmp","utm_source":"current.src","utm_medium":"current.mdm","utm_content":"current.cnt","utm_id":"current.id","utm_term":"current.trm","session_entry":"current_add.ep","session_start_time":"current_add.fd","session_pages":"session.pgs","session_count":"udata.vst","user_agent":"udata.uag"}};
var DIVI = {"item_count":"%d Item","items_count":"%d Items"};
var et_builder_utils_params = {"condition":{"diviTheme":true,"extraTheme":false},"scrollLocations":["app","top"],"builderScrollLocations":{"desktop":"app","tablet":"app","phone":"app"},"onloadScrollLocation":"app","builderType":"fe"};
var et_frontend_scripts = {"builderCssContainerPrefix":"#et-boc","builderCssLayoutPrefix":"#et-boc .et-l"};
var et_pb_custom = {"ajaxurl":"https:\/\/www.xeroom.com\/wp-admin\/admin-ajax.php","images_uri":"https:\/\/www.xeroom.com\/wp-content\/themes\/Divi\/images","builder_images_uri":"https:\/\/www.xeroom.com\/wp-content\/themes\/Divi\/includes\/builder\/images","et_frontend_nonce":"6bd5d717c6","subscription_failed":"Please, check the fields below to make sure you entered the correct information.","et_ab_log_nonce":"7a52fd7351","fill_message":"Please, fill in the following fields:","contact_error_message":"Please, fix the following errors:","invalid":"Invalid email","captcha":"Captcha","prev":"Prev","previous":"Previous","next":"Next","wrong_captcha":"You entered the wrong number in captcha.","wrong_checkbox":"Checkbox","ignore_waypoints":"no","is_divi_theme_used":"1","widget_search_selector":".widget_search","ab_tests":[],"is_ab_testing_active":"","page_id":"8565","unique_test_id":"","ab_bounce_rate":"5","is_cache_plugin_active":"yes","is_shortcode_tracking":"","tinymce_uri":"https:\/\/www.xeroom.com\/wp-content\/themes\/Divi\/includes\/builder\/frontend-builder\/assets\/vendors","accent_color":"#003156","waypoints_options":[]};
var et_pb_box_shadow_elements = [];
var wc_stripe_params = {"title":"Stripe - Pay with card","key":"pk_live_YhG5p7Y056EcoxMNvIg8lZwY","i18n_terms":"Please accept the terms and conditions first","i18n_required_fields":"Please fill in required checkout fields first","updateFailedOrderNonce":"d350822653","updatePaymentIntentNonce":"28f0619c5f","orderId":"0","checkout_url":"\/?wc-ajax=checkout","stripe_locale":"en","no_prepaid_card_msg":"Sorry, we're not accepting prepaid cards at this time. Your credit card has not been charged. Please try with alternative payment method.","no_sepa_owner_msg":"Please enter your IBAN account name.","no_sepa_iban_msg":"Please enter your IBAN account number.","payment_intent_error":"We couldn't initiate the payment. Please try again.","sepa_mandate_notification":"email","allow_prepaid_card":"yes","inline_cc_form":"no","is_checkout":"no","return_url":"https:\/\/www.xeroom.com\/checkout\/order-received\/?utm_nooverride=1","ajaxurl":"\/?wc-ajax=%%endpoint%%","stripe_nonce":"6d0281676b","statement_descriptor":"Xeroom.com","elements_options":[],"sepa_elements_options":{"supportedCountries":["SEPA"],"placeholderCountry":"GB","style":{"base":{"fontSize":"15px"}}},"invalid_owner_name":"Billing First Name and Last Name are required.","is_change_payment_page":"no","is_add_payment_page":"no","is_pay_for_order_page":"no","elements_styling":"","elements_classes":"","add_card_nonce":"08f06ef252","create_payment_intent_nonce":"dfd57c14e1","cpf_cnpj_required_msg":"CPF\/CNPJ is a required field","invalid_number":"The card number is not a valid credit card number.","invalid_expiry_month":"The card's expiration month is invalid.","invalid_expiry_year":"The card's expiration year is invalid.","invalid_cvc":"The card's security code is invalid.","incorrect_number":"The card number is incorrect.","incomplete_number":"The card number is incomplete.","incomplete_cvc":"The card's security code is incomplete.","incomplete_expiry":"The card's expiration date is incomplete.","expired_card":"The card has expired.","incorrect_cvc":"The card's security code is incorrect.","incorrect_zip":"The card's zip code failed validation.","postal_code_invalid":"Invalid zip code, please correct and try again","invalid_expiry_year_past":"The card's expiration year is in the past","card_declined":"The card was declined.","missing":"There is no card on a customer that is being charged.","processing_error":"An error occurred while processing the card.","invalid_sofort_country":"The billing country is not accepted by Sofort. Please try another country.","email_invalid":"Invalid email address, please correct and try again.","invalid_request_error":"Unable to process this payment, please try again or use alternative method.","amount_too_large":"The order total is too high for this payment method","amount_too_small":"The order total is too low for this payment method","country_code_invalid":"Invalid country code, please try again with a valid country code","tax_id_invalid":"Invalid Tax Id, please try again with a valid tax id"};
var shield_vars_notbot = {"strings":{"select_action":"Please select an action to perform.","are_you_sure":"Are you sure?","absolutely_sure":"Are you absolutely sure?"},"comps":{"notbot":{"ajax":{"not_bot":{"action":"shield_action","ex":"capture_not_bot","exnonce":"7402025e48","ajaxurl":"https:\/\/www.xeroom.com\/wp-admin\/admin-ajax.php","_wpnonce":"9b418a85b8","_rest_url":"https:\/\/www.xeroom.com\/wp-json\/shield\/v1\/action\/capture_not_bot?exnonce=7402025e48&_wpnonce=9b418a85b8"},"not_bot_nonce":{"action":"shield_action","ex":"capture_not_bot_nonce","ajaxurl":"https:\/\/www.xeroom.com\/wp-admin\/admin-ajax.php","_wpnonce":"9b418a85b8","_rest_url":"https:\/\/www.xeroom.com\/wp-json\/shield\/v1\/action\/capture_not_bot_nonce?_wpnonce=9b418a85b8"}},"flags":{"required":true}}}};