eMAG.ro XML Feed for WooCommerce
Set up and license the eMAG integration. Learn how its two feeds handle EANs, prices excluding VAT and product variations, then schedule updates with cron and troubleshoot common issues.
Applies to v1.1.0 (15 Nov 2026) · WooCommerce 7.1+ · WordPress 6.0+ · PHP 7.4+
1. Overview and guide
What eMAG.ro XML Feed does for WooCommerce, which two files it produces, what you need to sell to eMAG and all the configuration guides.
What the plugin does#
The eMAG.ro XML Feed for WooCommerce (in WordPress) OBS Emag.ro XML) produces from your products two XML files for eMAG Marketplace:
- Full feed (
emagro.xml): all product elements for the registration and translation of the products. - Feed information (
emagro_update.xml): code, EAN, price without VAT and stock, for frequent price updating and availability.
The two files are updated together, with the frequency you choose.
Who's it for?#
For Greek WooCommerce stores that sell or want to sell at Romania's eMAG Marketplace.
Pre-conditions#
- Sales account at eMAG Marketplace and contact your account manager.
- Valid EAN (GS1) in all products, stored in a WooCommerce field.
- Brand for every product, categories and images in public HTTPS address.
- Good tax arrangements at WooCommerce, because prices are exported without VAT.
- PHP memory of at least 256M for large catalogues.
Documentation#
2. Installation and activation
How to download the eMAG.ro XML Feed ZIP from your OBS account, how to install it on WordPress and where you find the settings.
Installation#
- Log in to your OBS Technologies account and open them downloadsDownload the plugin's ZIP (
obs-emagro-xml) without decompressing it. - In WordPress go Plugins → Add Add Add Add (page opens with title Add Plugins) and press Transhipment Plugin.
- Select ZIP and press Install Now.

Transhipment of ZIP from Plugins → Add new → Upload plugin. - Press Enable. WooCommerce must already be active.

The ‘Activation’ link under the name of the plugin. - Open WooCommerce → OBS Emagro XMLThat's where all the arrangements are.

Settings open from WooCommerce → OBS Emagro XML.
What happens when triggering#
An hourly background work is planned, which produces both feeds with the frequency you set in the settings. Until the first export files do not exist.
If ZIP is empty#
If the file you downloaded is empty or WordPress does not accept it, contact us. We will send you the current version. The installation and setting by OBS is free: open a ticket and we will ask you for access to an administrator in a secure manner. Do not send codes to a simple email.
Next step: Import License key.
3. Import license
Where License key enters eMAG.ro XML Feed, how it is activated for your domain and what you do to change domain or transfer the site.
Enable License key#
- Find License key on licenses of your account or in the order email.
- Open WooCommerce → OBS Emagro XML. Above the tabs the box appears Activate OBS Emagro XML for Update.
- Paste key in field Enter Validation Key, no blanks.

The key is attached to the field and activated with "Activate" (a sample is shown in the photograph). - Press Activate. The result appears in an emerging message.
- Renew the page. With valid key the box no longer appears.
Domain and updates#
- Key is enabled for your site address. A License key corresponds to one e-shop.
- With active key the new versions appear on the page Plugins by WordPress.
Change domain#
To transfer the store to a new domain the activation box is shown again. If the key is not activated, Send us old and new domain to transfer the license. More on page licence assistance.
4. Connect to eMAG Marketplace
What you need from eMAG, how you give the two feeds URLs to account manager and where the matching categories are made on the eMAG platform.
What you need from eMAG#
- Approved seller account at eMAG Marketplace.
- The account manager or the technical department of the eMAG, that will read your feeds.
The plugin does not need API codes. It creates two public XML files and the eMAG reads them from their address.
Connect Steps#
- Configure EAN and brand and press Generate Feed.
- Open the two files in the browser:
https://το-site-σας/wp-content/uploads/obs-xml-export/emagro.xmlhttps://το-site-σας/wp-content/uploads/obs-xml-export/emagro_update.xml

The full feed ( emagro.xml) opens as XML.
Information feed ( emagro_update.xml) has only id, ean, price and stock. - Send both URLs to eMAG: the complete for product registration and update feed for prices and stock.
- Make the matching categories on the eMAG platform. The plugin sends the full route of the WooCommerce class (e.g. Clothing > Women > Dresses) and there you match it to the eMAG category.
- Wait for confirmation of the eMAG that the products have been read, and correct what they point to you (EAN, brand, photos, descriptions).
Access from abroad#
eMAG reads the files from servers outside Greece. If you use Cloudflare, firewall, geographic blockade or bot protection, allow access to the route /wp-content/uploads/obs-xml-export/. Otherwise eMAG sees error or control page instead of XML.
5. Plugin Settings
All fields of the OBS page Emmanuel XML per tab: Required Setup, Availability, Filters, Overrides, Advanced, and how they affect the two feeds.
Settings are in WooCommerce → OBS Emagro XMLEach tab has its own. Save. The same arrangements apply to both feeds. In Greek management the fields of the tabs Required Setup and Filters appear in Greek, while the names of the tabs Advanced and Availability English is left. Here the Greek labels are written, with English in brackets where different.

Overview#
State of last export (Up to date, Needs update etc.), Feed URL of full feed (card writes Use this URL in your Skroutz / BestPrice merchant panel., common text of all feeds), buttons Generate feed now and Quick test export, card Scheduling with server cron command and card PHP Memory Limit.
Required Setup#
- Update Frequency: Early, twice a day or a day.
- Status (Mode): Massive (Bulk), Cron or Semester (Chunk). With Cron the export is done in the background.
- Colour properties / Size Properties (Color Attributes / Size Attributes): determine how variants are grouped and what is written in the color and size fields.
- Default Manufacturer / Manufacturer Properties (Default Brand / Brand Attribute): the brand (manufacturer field).
- Product description (Product Description): Brief description (default) or Full description. If your short descriptions are empty, choose Full description.
- Observance of products out of stock / Skip Backordered Products.
- Product Name Author (Product Name Compositer): title from name and variants attributes.
Availability#
In Stock / Out Of Stock / Backorder Taxonomy and Default In-Stock / Out-of-Stock / Backorder Availability: the text of the availability field at full feed.
Filters (Filters)#
Includes category (Include Categories), Exception of categories (Exclude Categories) and, with some Manufacturer Properties, Includes manufacturer (Include Brands) and Exception of manufacturer (Exclude Brands).

Overrides#
Fields Custom Meta Field for ... (Custom Meta field for) for EAN, MPN, Barcode, Brand, Availability and Weight, as well as Custom Meta field for Product ID, who stays English. The Custom Meta Field for AN it is written in Greek, so if you look for it on the Latin page EAN You won't find it. Meta Product Description is the Greek translation of Skip product meta.

Advanced#
Test Export Product Limit, Test Export SKU Filter and the list Available Filters with the hooks for developers. Tab section has the header Bulk Streaming.

Advice: after Generate Feed or Test Export re-open the page from the menu WooCommerce → OBS Emagro XML before changing settings, so the tabs can load properly.
6. Full feed and update feed
What emagno.xml contains and what emagro_update.xml, which fields each sends to eMAG and why you have to declare both.
Full feed: emagro.xml#
It is used for the first registration and translation of the products by eMAG. Each product (data item) is used for the first entry and translation of the products by eMAG. product) contains:
| Field | Where it comes from |
|---|---|
id, newid | Product ID or variant; newid groupes variants by color |
name, description | Title and description, without HTML |
link, image, additional_imageurl | Product page, main image, gallery |
category | Full WooCommerce Class Route |
manufacturer | Brand |
price | Price excluding VAT |
availability, instock, quantity | Availability text, Y/N, quantity |
mpn, ean | Manufacturer code, barcode |
color, size, weight | Attributes color and size, weight |

Feed update: emagro_update.xml#
Light file for frequent price and stock update. Each product has only id, ean, price (excluding VAT) and stock (quantity).

Why do they need both#
- The eMAG uses the full feed to create alerts and update feed to keep prices and stock properly.
- The two files are always produced together, with the same filters and the same settings.
- If you only declare the full feed, eMAG can ask you for a separate file with clean values and numerical stock. This is the
emagro_update.xml.
The plugin page shows in Feed URL only the full feed. Update feed is in the same folder, named emagro_update.xml.
7. EAN, brand and codes
How to show on the plugin where EAN, brand and MPN are stored, so that eMAG can identify your products, and what codes are sent.
EMAG recognizes products from EAN, so EAN is the most important setting. It must be really barcodes GS1.
EAN#
- Find out where barcodes are stored in your store: in a WooCommerce field, in another plugin field (e.g. an XML feed for Skroutz) or in SKU.
- In Tab Overrides, field Custom Meta Field for AN (Custom Meta field for EAN), write the exact meta key of the field. If the barcodes are in the SKU, write
_sku.
The field "Custom Meta field for EAN" (here with the barcodes meta key). - Press Save and test out products that have barcode.
- Check that in XML
eanhas the barcode and not the SKU or vacuum.
In a variant without its own EAN, the parent's EAN is used. If the field is left empty, the ean The field accepts meta key, not attribute. If you don't know the meta key, ask us to find it.
Brand#
- Manufacturer Properties (Brand Attribute, tab) Required Setup): the manufacturer's attribute or taxonomy.
- Custom Meta Field for Brand (Custom Meta field for Brand, tab Overrides): if the brand is in a meta field, it takes priority.
- Default Manufacturer (Default Brand): price for those products that do not have a brand.

Brand written in field manufacturer.
MPN and product codes#
- Custom Meta Field for MPN (Custom Meta field for MPN): if left blank, as MPN the SKU is sent.
- id: the ID of the product or variant in WooCommerce, unless specified Custom Meta field for Product ID. Same in both feeds, so the eMAG fits the updates.
- newid: the parent product ID, plus the color for variable products. Update eMAG which one will use as a code.
Do not change the product code after connection. The eMAG will see the products as new.
8. Prices without VAT and stock
How to calculate the VAT-free prices in the eMAG feeds, how to send the stock and how to raise the prices only for eMAG by markup.
Prices#
- Both feeds send the price VAT-free, as the eMAG asks. It is calculated by WooCommerce's tax arrangements.
- If the product is on offer, the offer price shall be sent.
- The plugin does not convert currency. If the eMAG needs values in another currency, deal with your account manager.
If the price in XML comes out with VAT or zero, check in WooCommerce → Settings → Tax that the products have a proper tax class and that the prices are registered as you have declared (with or without VAT).
Markup only for eMAG#
There is no setting ready for percentage or fixed amount. The feed value changes with WordPress filters obs_emagro_xml_custom_price (full feed) and obs_emagro_xml_update_custom_price (feed update). Put the same markup on both, otherwise the update feed will restore the original value. Store prices do not change. The adaptation can be done by OBS.
Stock#
- Full feed sends
instock(Y or N) andquantity. The products on preorder count as available. - Update feed sends
stockFor each variant the stock of the variant is sent. - Quantity is only sent when the product has active stock management. Enable Stock management? in tab Stock the product, otherwise the field is missing from the file.

The stock management check on the product 's Reserve' tab.
To prevent eMAG from reaching exhausted products, activate it Observance of products outside of stock (Skip Out-of-Stock Products).
9. Variable products
How variants are exported to eMAG: separate entry per variant or grouping by color and value, depending on the color and size attributes.
For variable products the form depends on the Colour properties (Color Attributes) and Size Properties (Size Attributes) of the tab Required Setup.
One entry per variant#
If no Set Size Properties, or variants are not sized, each available variant is written as a separate product, with its own id, price, stock and EAN. This is usually the form that eMAG asks for, that wants every variant separately.
Group by color and value#
If you set Size Properties, variants with the same color and same value are written as one entry, with all sizes in the field size (e.g. S, M, L). Variations in another color or at another price are written separately.
Configure#
- Understand with eMAG if it wants any variation separately.
- If so, leave empty Size Properties And here are only the Colour properties, so that the color is written.

Only the colour defined and the ‘Size Attributes’ blank: each variant is written separately. - Set EAN in each variant. Without its own EAN, the variant takes the parent's EAN and the eMAG cannot distinguish them.

The EAN field of the variant in the Variations tab. - If you want the color or size in the title, add the attributes to Product Name Author (Product Name Composer).
- Press Save and do Test export with a variable product.
Stock filters#
With the Observance of products outside of stock or the Receipt of product order the corresponding variations are omitted, while the rest of the same product are normally exported.
The newid each entry is the ID of the parent with the color, so all variants of a color share the same newid.
10. Categories and filters
Which category is sent to eMAG, how you choose which categories, brands and products enter the feeds and why products may be missing.
The category in feed#
Field category contains the full route of the WooCommerce class, e.g. Axeswar > Bags > Shoulder. If a product belongs to many, the most specialized, or the main category of Yoast SEO or Rank Math is sent if you have defined it. Comparing the categories of eMAG is done on the eMAG platform, not on the plugin.
Filters#
- In Tab Filters (Filters) select in Includes category (Include Categories) only the categories you want in eMAG, or leave the gap for all.
- The Exception of categories (Exclude Categories) Put as many as you don't want.

Empty inclusion (all categories) and one category in the exception. - For filter per brand, set them first Manufacturer Properties (Brand Attribute) on the tab Required Setup and press Save. Then show them. Includes manufacturer (Include Brands) and Exception of manufacturer (Exclude Brands).
- The Required Setup activate, if you want, the Observance of products outside of stock (Skip Out-of-stock Products) and Receipt of product order (Skip Backordered Products).

Fields of omission of exhausted and preorders. - Press Save and Generate Feed.
Exception of individual product#
In the treatment of the product, in the context of OBS Emagro XML Product VisibilityCheck. Hide from OBS Emagro XML (Hide from OBS Emagro XML) and press Update. The product leaves the full feed. To definitely leave the update feed, exclude its category or use it Meta Product Description (Skip product meta) of the tab Overrides, omitting all products with the price 1 in the meta field you set.

Why are products missing?#
- They are excluded from a category, brand or stock filter.
- It's not published.
- Two products with no size have exactly the same title, so only the first one is written. Give the different titles.
If the file contains only the empty element products, filters exclude all products or export discontinued. common problems.
11. URLs and automatic renewal
Where are the emagro.xml and emagro_update.xml, how do you define the frequency and state of export (Mode).
URLs#
Files are written in folder wp-content/uploads/obs-xml-export/:
- full feed:
…/obs-xml-export/emagro.xml(sees on card) Feed URL, with Copy URL and Open), - update feed:
…/obs-xml-export/emagro_update.xml.
Addresses do not change from export to export, so you enter them in the eMAG once. The card Feed URL writes Use this URL in your Skroutz / BestPrice merchant panel.: the text is common in all OBS feeds, and the URLs of this plugin are given to eMAG, not Skroutz or BestPrice.

Export frequency and condition (Mode)#
- In Tab Required Setup select Upgrade frequency (Update Frequency): Hourly, Twice a Day or Daily. Both files are updated together.
- The Status (Mode) select Massive (Bulk) for a small catalogue; or Cron for large, so that the extraction runs in the background and does not interrupt the page.

The frequency and Mode ("Situation") with Cron also appears the "Default Page Size". - Press SaveThe Default Page Size only appears after saving with a status different from Massive and renew the page. On card XML Feed Export See the Last successful export and if the feed is Up to date.

The XML Feed Export card after successful export.
Server cron#
The hourly work of WordPress runs only when the site has visits. For constant renewal:
- On card Scheduling press Show server cron command and Copy.

The command for server cron on the "Scheduling" card. - Add command to cPanel (Cron Jobs), in Plesk (Scheduled Tasks) or with
crontab -e. The card has instructions for each case. - The command runs the
cron.phpthe plugin, which produces both feeds in each execution. The frequency is defined by the crontab.
If you put a Cron server on it, here it is. Upgrade frequency In Daily, to avoid double exports from WordPress and server.
In a list of tens of thousands of products increase PHP memory to 256M or more (card PHP Memory Limit).
12. Test export and control
How you test eMAG's feed in a few products, what you check on each registration and what you check before sending the URLs to eMAG.
Test export#
- In Tab Advanced, field Test Export SKU Filter, write 5–10 SKU, one per line: a simple product, a variable, one in offer and one without stock management.

The product limit and the SKU of the test export. - Press Save And then... Test Export at the top, or Quick test export on card Actions. Export runs in the background (Action Scheduler) and completes in about 5 seconds, so XML can appear shortly after pressing the button; renew the page and open XML again.

The "Quick test export" on the "Actions" card. - Open them.
emagro.xmlandemagro_update.xmlIn the browser.
The XML of the test export (here is the full feed).
Caution: the test extraction writes in the same files as the eMAG reads. Always use it Test Export SKU Filter, and immediately after checking press Generate Feed to rewrite the entire list.
What are you doing?#
ean: exists in each product and is barcode, not SKU.manufacturer: the right brand.price: excluding VAT. Compare it with the price in your store.quantity/stock: there are, so stock management is active.category,image,description: they are not empty.- Variations: written as agreed with eMAG.
- The
idthe same product is the same in both files.
Before starting#
- Press Generate Feed and wait until it's complete. Full extraction also runs in the background (Action Scheduler) and in the small catalogues lasts a few seconds.
- Open the two URLs from a mobile outside your network: they must open as XML, not as a control page or error.
- Check that date in
created_atIt's today. - Make sure that the automatic renewal is active and send URLs to eMAG.
13. Common problems
Solutions to the most common problems with eMAG XML feed: EAN missing, feed blocked, empty file, VAT, stock, variants, markup and renewal.
eMAG does not see EAN or feed output SKU#
Reason: The Custom Meta Field for AN (Custom Meta field for EAN) is blank, shows on the wrong meta key or is _sku.
Solution: set the meta key where the barcodes are stored and check sample. EAN, brand and codes.
Email ‘Feed blocked’ or read error from eMAG#
Reason: firewall, Cloudflare or geographic blockade blocks eMAG servers, or the file was read while written.
Solution: allow access to /wp-content/uploads/obs-xml-export/ and schedule the renewal at an hour when it does not read the eMAG.
The file only has the item ‘products’, without products#
Reason: filters exclude all products or export stopped from memory or time limit.
Solution: Check them out. Includes category / Exception of categories and the Observance of products outside of stock, increase PHP memory, put Status Cron and re-production.
eMAG requires prices excluding VAT and a numeric stock quantity#
Reason: only the full feed has been declared or the stock management is missing.
Solution: state and declare emagro_update.xml and activate stock management in the products.
eMAG wants every variant separately#
Reason: with the Size Properties (Size Attributes) variants are grouped by color and value.
Solution: leave empty the Size Properties. See variable products.
I want higher values on eMAG#
Solution: markup with price filters in both feeds, without changing the price of the store. prices and stock.
Feed is not renewed daily#
Reason: WP-Cron doesn't run without visitors.
Solution: install a Cron server and check it out Last successful export and the created_at.
On the eMAG platform I can't match categories#
Reason: the matching is done by eMAG after reading the full feed.
Solution: Make sure that the emagro.xml has the column category in each product and ask your account manager to activate the matching.