JTL Connector: How to prevent overwriting during sync!

15.12.2020
by Meike Müller
Shopware
Banner

If you are using Shopware and JTL and have created a free text field in Shopware that you want to configure independently of JTL, it is possible that this attribute will be overwritten by the JTL Connector every time the article is synced and will have the value zero.

On the one hand, this setting makes sense so that data can only be changed and edited in JTL and to have a consistent database. On the other hand, however, it leads to problems if certain fields are to be set directly in Shopware that are not known to JTL. We have a solution for this - do you need more help with Shopware? The EXWE team will be happy to help you - just contact us by e-mail or phone.

The solution

To fix the whole thing or change the behavior, you have to look in the config.json of the JTL Connector plugin. You can find it under

engine/Shopware/Plugins/Community/Frontend/jtlconnector/
config/config.json.

There is a setting "null_undefined_attributes". You must set this to false under product, push to prevent your attributes from being overwritten.

The entry could then look like this, for example:

"product": { "push": { "null_undefined_attributes": false, "article_detail_preselection": false } },

This article was written by our software developer Thomas Walter.


JTL - The free ERP system

The JTL software organizes purchasing, article and offer maintenance, multi-channel sales, order processing, warehouse and shipping organization and sales as well as payments. At the heart of the e-commerce software is the JTL merchandise management system, which is available free of charge. With the JTL Connector, you can connect your Shopware online store to the ERP system and synchronize items, stock and orders. The JTL Connector is also available for Gambio, Shopify, WooCommerce and other providers and can be connected to Ebay or Amazon. With JTL, you can maintain your entire product range, adjust stock levels, enter invoices, reminders and credit notes and process orders.

With JTL POS, you can purchase professional POS software that has been specially developed for stationary retail. The software is also available free of charge and can be used with an Android smartphone or tablet. With JTL POS, you can manage items, use cashier functions, issue receipts, check sales and at the same time guarantee a high level of checkout security through automatic log-out.

Would you like to find out more about JTL? Then take a look at our article "PICKWARE, JTL AND IZETTLE - CONNECTING RETAIL AND ONLINE TRADE". If you have any further questions about your store, we will be happy to assist you and offer you a comprehensive range of online store creation services

Was ist dein Projekt? Wenn du uns darüber erzählen möchtest, rufen wir dich zurück!

 
Meike
Meike
from 15.12.2020

Hello, my name is Meike. I take care of the EXWE back office and am responsible for our social media channels. All of our articles are meant to make your life easier and help you make decisions. Nevertheless, it can happen that something remains unclear, so: If you have questions about this article you can easily reach me at +49 231 93149827.

Du möchtest immer am Zenit der Technik bleiben? Keine News und Blogbeiträge mehr verpassen.
We also have the following interesting posts from our tech blog for you on this topic
Shopware 6: What are dynamic product groups?

What are dynamic product groups in Shopware and what can they be used for? And how can you create them? You can find out all this in our article.

Shopware Performance Guide for professionals

Our Shopware Performance Guide for professionals - tips and tricks to take the performance of your online store to the next level.

Show Shopware Custom Products under variant selection

In this article, we will show you how to place the Custom Products options below the variants by customizing the Shopware theme.