CASE STUDIES
Integration of EAN with WooCommerce via API
2 min read
WordPress, despite its simplicity, when combined with a number of plugins can become a thriving online store. WooCommerce is one of the most popular plugins that turns the WordPress blogging platform into an online store. However, WooCommerce in its default configuration doesn’t have a field to fill in EAN codes, which limits the ability to import them through the standard WooCommerce API. So how did we solve this problem?
CHALLENGE
what we had to deal with
The basis of Megamo Integrator’s operation is a correct connection through the API. This connection is necessary for communication with the online store, allowing: sending requests, importing data into the store, updating data in the store and receiving responses from the store. If a field is missing from the standard WordPress + WooCommerce setup (it’s not available in the API), we can’t manipulate that field. Many of our customers, due to the integration of online stores with wholesalers, need to store information about EAN codes from wholesalers. They reported their needs, and we undertook to implement a solution that bypasses the standard WooCommerce API.
SOLUTION
what idea we had
To enable the integration of EAN codes, we decided to implement a customized plugin. The process required us to study the plug-in’s technical documentation in detail and apply the appropriate parameters relating to the newly issued field for EAN codes.
IMPLEMENTATION
how we solved the problem
1. We installed and configured the selected plugin on the WordPress platform.
2. We went through the plugin’s technical documentation to understand the data structure and how the plugin exposes new fields in the API.
3. With the API endpoints provided by the plugin, we integrated the new fields for EAN codes into Megamo Integrator. This allowed us to import and update EAN codes in WooCommerce.
4. We ran a series of tests to verify that the integration worked correctly. The tests included importing new products with EAN codes, updating existing products and verifying the correctness of the data through the API.
RESULT
what was the result of implementation
Thanks to the implementation of additional functionality to our Megamo Integrator, all products in the store have gained missing EAN codes. We are therefore able to import and update EAN codes in online stores based on WordPress + WooCommerce technology. This integration significantly simplifies the management of product data and allows our customers to cooperate more effectively with wholesalers.
We have already implemented the data solution for such wholesalers as SpecHurt, Kaliber, Sharg, Activeshop. If a wholesaler provides data on EAN codes of products in its file, we are able to perform implementation for any such wholesaler.
If you also need to put EAN codes in your store, contact us.
CONCLUSIONS
lessons learned while solving the problem
Our approach to integrating EAN codes in WooCommerce shows how flexible the combination of WordPress with the right plugins can be. By carefully analyzing the technical documentation and implementing the right tools, we can meet the specific requirements of our clients, even when the standard WooCommerce API does not offer direct support for certain features.
If you are interested in the topic of EAN codes, you can also read our article addressing at least the question of what purpose products are coded for: Barcodes – what are they?