var breeze_prefetch = {"local_url":"https:\/\/www.xeroom.com","ignore_remote_prefetch":"1","ignore_list":["\/cart\/","\/checkout\/","\/my-account\/","\/my-account\/","\/wp-content\/uploads\/xeroom\/xeroom.zip","\/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 = 'c203f04f0d';
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 = 'cd1e789188';
// var ajaxurl = encodeURIComponent('https://www.xeroom.com/wp-admin/admin-ajax.php?action=log_js_error&_wpnonce=cd1e789188');
var ajaxurl = 'https://www.xeroom.com/wp-admin/admin-ajax.php?action=log_js_error&_wpnonce=cd1e789188';
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);
By default WooCommerce does not create the commonly used SKU’s. SKU stands for Stock Keeping Unit and is a unique product identifier. Instead WooCommerce leaves the SKU field blank and uses the ID which is a unique identifier from the database and is NOT the SKU. To add SKU’s you need to edit each product individually. Just to confuse matters even more there are also UPC (Universal Product Code), MPN (Manufacturers Part Number) codes or GTIN (Global Trade Identification Number) which are all globally unique and verifiable bar codes that are needed for listings on Google and Amazon. These are issued by the manufacturers who purchase them from the global industry players. SKU’s can be created by yourself in whatever format you wish but should not contain any spaces or special characters eg”/\>< ” etc as these will cause problems when used and parsed in WooCommerce, Xero and Xeroom.
Xero Product Item Codes
Any product listed in Xero must have an Item Code. You can use your SKU for this purpose. You need to design an SKU numbering system that is easy to use and remember. The easiest way is to set a numbering scheme that takes 2 letters for the product category, model, colour and size. This can done in a spreadsheet and then uploaded into Xero from a CSV format file. The same codes can also be loaded into WooCommerce using one of the many dataloading plugins that are available but beware most of the free ones are no good and the decent ones you have to buy. If you have an existing install of Xero of WooCommerce then you can download what you have already, modify/correct the codes to be consistent with your number system and then reupload them.
Xeroom Use of Product Codes
When Xeroom posts an invoice to Xero it looks for the product item code for each line in your WooCommerce order. If the code exists then it will pick up the information in Xero for that product (ie price, description, inventory etc) and use it in the invoice or copy across information from WooCommerce depending on the Master setting in Xeroom. If the code does not exist in Xero then Xeroom will create a new code using the product ID from WooCommerce and then go on to complete the invoice creation process. This means that you don’t have synchs failing due to missing codes which can easily happen if you add new products in Xero or WooCommerce and forget to update the other system. Xeroom does this order by order and does not do a full bulk synchronisation which is why it is best, though not essential, to do this as part of the install process.
How We Can Help You
We can assist you with a low fixed-price bulk product upload process and data transfer process by downloading all the existing codes as a spreadsheet for you to edit and then re-uploading the new/revised SKU codes into both Xero and WooCommerce. Order here.
(function() {
var file = ["https:\/\/www.xeroom.com\/wp-content\/et-cache\/573\/et-divi-dynamic-573-late.css"];
var handle = document.getElementById('divi-style-parent-inline-inline-css');
var location = handle.parentNode;if (0===document.querySelectorAll('link[href="' + file + '"]').length) {
var link = document.createElement('link');
link.rel = 'stylesheet';
link.id = 'et-dynamic-late-css';
link.href = file;location.insertBefore(link, handle.nextSibling);
}
})();
(function () {
var c = document.body.className;
c = c.replace(/woocommerce-no-js/, 'woocommerce-js');
document.body.className = c;
})();
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_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":"43c3e9fef9","subscription_failed":"Please, check the fields below to make sure you entered the correct information.","et_ab_log_nonce":"0e564f94bb","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":"573","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 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":"94ab544653","ajaxurl":"https:\/\/www.xeroom.com\/wp-admin\/admin-ajax.php","_wpnonce":"86a17b4b8f","_rest_url":"https:\/\/www.xeroom.com\/wp-json\/shield\/v1\/action\/capture_not_bot?exnonce=94ab544653&_wpnonce=86a17b4b8f"},"not_bot_nonce":{"action":"shield_action","ex":"capture_not_bot_nonce","ajaxurl":"https:\/\/www.xeroom.com\/wp-admin\/admin-ajax.php","_wpnonce":"86a17b4b8f","_rest_url":"https:\/\/www.xeroom.com\/wp-json\/shield\/v1\/action\/capture_not_bot_nonce?_wpnonce=86a17b4b8f"}},"flags":{"required":true}}}};