SkyServers Product Sync for eMAG

By skyservers

0+ active installationsVersion 3.13.1

Sync prices, stock and publish products from WooCommerce to eMAG Marketplace. Margin control, category mapping, and Buy Button tracking.

Description

SkyServers Product Sync for eMAG connects your WooCommerce store to the eMAG Marketplace (Romania, Bulgaria, Hungary) and keeps your offers up to date automatically.

Free Features

  • Margin-based pricing — set a global margin % or override per product. Prices are calculated from your WooCommerce ex-VAT price plus your chosen markup.
  • Min/Max margin protection — block sync if the calculated price falls outside your safety bounds, preventing accidental underselling or eMAG price guard rejections.
  • Stock percentage control — send only a fraction of your WooCommerce stock to eMAG (e.g., 50%). Rounded up, configurable globally and per product.
  • VAT-aware pricing — reads WooCommerce tax classes (11%, 21%, etc.) and sends correct VAT info to eMAG via the cached vat/read API.
  • Scheduled auto-sync — choose from 15 min, 30 min, hourly, 3h, 6h, 12h, or daily via WP-Cron.
  • Manual sync — one-click full sync from the admin panel.
  • Bootstrap import — import your existing eMAG offers, match them to WooCommerce products by SKU, and store offer IDs, VAT rates, and price bounds automatically.
  • Smart Bootstrap (preserve existing eMAG prices) — if you already sell on eMAG, the importer can read each offer’s current sale price and back-calculate the implied margin per product, storing it as an override. Your hand-tuned eMAG prices stay intact when sync starts; you control when to change them. Choose between this mode and the classic “apply global margin to everything” mode in the Setup wizard.
  • Auto-create missing WC products on bootstrap — opt-in toggle that creates a draft simple WooCommerce product for every eMAG offer that does not match an existing WC SKU. Name + SKU + price + 0 stock are taken from the eMAG offer; catalog visibility is set to hidden so a half-built draft does not appear on the storefront. You then enrich each draft with description, images, and attributes in WC admin. Useful when migrating to WooCommerce from an eMAG-only workflow.
  • Per-product controls — enable/disable sync, set custom margin, min/max margin, and stock % per product from a searchable list.
  • Minimum WC Stock buffer — reserve safety stock that won’t be sent to eMAG (send stock 0 to the marketplace when WooCommerce stock drops to your threshold).
  • Activity logs — every sync action is logged with timestamp, product, action, result, and details. Filterable and prunable, with configurable retention from 7 to 365 days.
  • Setup wizard — guided 5-step onboarding that auto-runs on first activation. Connects to eMAG, sets pricing/stock defaults, schedules sync, and bootstraps your existing offers. Can be re-run from the Help page. (Pro adds a 6th step for product publishing defaults.)

Premium Features (requires license)

  • Publish new products from WooCommerce to eMAG — including warranty, resupply days, Dry Run mode, and your choice of which WooCommerce description (long, short or both) goes to eMAG, optionally kept up to date when it changes.
  • Category mapping — map WooCommerce categories to eMAG categories (2,900+ categories imported).
  • Characteristics mapping — auto-fill eMAG product attributes from WooCommerce product data.
  • Family type mapping — assign eMAG family types to your product categories.
  • Buy Button rank tracking — monitor your position (rank 1-4), number of competing offers, and best offer price.
  • Auto Buy Button — on the products you choose, lowers your eMAG price just below the cheapest competitor to win the Buy Button back, never below your minimum price, and raises it again step by step while you hold it. Starts in simulation mode.
  • EAN/Brand auto-detection — scan your products for EAN/GTIN and brand meta keys.
  • Order import (webhook-first) — incoming eMAG orders land in WooCommerce automatically once you register the callback URLs in your eMAG seller account. Manual import-by-id is also available for backfill. Status mapping is configurable. Optional auto-decrement of WC stock with idempotency guard against webhook retries.
  • AWB shipping integration — issue AWB labels directly from the WooCommerce order edit screen. Print in A4, A5, A6, or ZPL with last-used auto-save. Sender/pickup address auto-detected from your eMAG account. Default OFF until you set the sender phone in Settings.
  • Email notifications — per-event email alerts when sync fails, when a new eMAG order arrives, when an AWB is issued, when your Buy Button rank drops from #1 (a competitor takes the top position on a product), and when a competitor undercuts your price below your configured threshold. Per-event subscription controls on a dedicated Notifications page, with throttling so you do not get spammed during a price war.
  • CSV bulk import/export — download a CSV of every eMAG-mapped product (margin, min/max margin, stock %, sync flag), edit offline in Excel or Google Sheets, then re-upload to bulk-apply changes. Includes a dry-run mode that validates every row without writing to the database, plus per-row error reporting on missing or unknown SKUs.
  • Commission-aware pricing — assign an eMAG commission % to each WooCommerce category. The plugin inflates the computed sale_price so your profit after eMAG takes its commission equals your WooCommerce-direct profit at the configured margin. A separate toggle handles VAT on the commission invoice for VAT-exempt sellers (e.g., Romania art.310) — VAT-registered sellers leave the toggle OFF because they recover the input VAT. Local VAT rate auto-suggested per marketplace region (RO 21%, BG 20%, HU 27%). min_sale_price and max_sale_price bounds are adjusted in the same direction so eMAG does not reject the offer for crossing them.
  • Per-category image dimensions — set a target width × height (and crop vs. fit) per WooCommerce category. On publish, the plugin ensures the WC media library has a sized variant at the configured dimensions — generating it from the original via WordPress’s image editor when missing — and sends that variant URL to eMAG. Useful when different eMAG categories work best with different image ratios (square for fashion, portrait for books, landscape for electronics).
  • Real-time stock push — when a WooCommerce stock change occurs (from an order checkout, manual edit, or another plugin updating WC stock), the new value is debounced for 5 seconds and pushed to eMAG via Action Scheduler — new stock arrives at eMAG within seconds without waiting for the next scheduled full sync. Useful when sync schedules are hourly or longer and order-driven stock should reach eMAG immediately.
  • Auto-restore WC stock on eMAG order cancellation — an opt-in companion to the auto-decrement toggle. When the cancelled / refunded / failed status fires for an imported order, the plugin re-credits the line items’ stock to WC. Idempotent: restores once per order across multiple status transitions. Off by default — sellers using SmartBill / Oblio / FGO usually already get stock restoration via their invoicing flow.
  • Auto-updates — receive new versions directly through WordPress, delivered via the licensed update channel.
  • Priority support — direct email support from the development team.
  • Free guided setup — every new Pro customer gets a complimentary 1-2 hour onboarding video call. Email contact@sky-servers.com after activation to book it — we configure your eMAG API credentials, run the initial offer bootstrap, set up category mapping, and walk through your first sync together.

Upgrade to Premium

How It Works

  1. Enter your eMAG API credentials (username + password) in the plugin settings.
  2. Whitelist your server IP in your eMAG seller account.
  3. Run the Bootstrap import to pull in your existing eMAG offers.
  4. Configure your global margin, stock percentage, and sync schedule.
  5. Enable sync per product and let the plugin do the rest.

Requirements

  • WooCommerce 7.0 or higher
  • PHP 7.4 or higher
  • eMAG Marketplace seller account with API access
  • Server IP whitelisted in eMAG seller settings

External services

This plugin connects to two external services to deliver its core functionality. They are documented here as required by the WordPress.org Plugin Directory guidelines.

eMAG Marketplace API

This is the primary service the plugin integrates with. It is the public REST API operated by Dante International SA (the company behind the eMAG marketplace) for sellers to manage their offers, products, orders, and shipping labels programmatically.

  • What it is used for: synchronising prices, stock levels, VAT rates, and product offers from your WooCommerce store to your eMAG seller account; bootstrapping your existing eMAG offer catalog into WooCommerce on first install. With the Premium add-on, also: publishing new products to eMAG, importing eMAG orders into WooCommerce via webhook callbacks, issuing AWB shipping labels, and tracking Buy Button rank.
  • What data is sent: your eMAG API username and password (Basic Auth, transmitted over HTTPS); the product fields you choose to sync (SKU, price, stock, VAT rate, name, description, images, category, characteristics, EAN, brand); the eMAG order id when you receive a webhook callback or trigger a manual import.
  • When data is sent: on the schedule you configure (15 min, 30 min, 1h, 3h, 6h, 12h, or daily); when you manually trigger Sync, Bootstrap, or Test Connection; when WooCommerce events fire (product save, order status change) and the Premium add-on is active; when eMAG fires an order callback to the plugin’s REST endpoint.
  • Privacy and Terms: the eMAG API is the official marketplace integration channel and requires that you have an active seller account and have agreed to the marketplace terms of service before any data flows. The Terms of Service document below is hosted in the seller-facing knowledge base and its full text is gated behind a marketplace login because it is a contractual agreement between eMAG and the seller; the page title and abstract are public.
  • Terms of Service: https://marketplace.emag.ro/infocenter/emag-academy/cerinte-legale/termeni-si-conditii-pentru-utilizarea-api-pe-emag-marketplace/
  • Privacy Policy: https://marketplace.emag.ro/infocenter/politica-de-confidentialitate/

ipify.org

A small, free public service that returns the requesting server’s external IP address as plain text.

  • What it is used for: the Help page has a “Detect server IP” button that calls ipify so you know which IP to whitelist in your eMAG seller account (eMAG requires server IP whitelisting before API calls are accepted). The plugin does not call ipify on any other code path.
  • What data is sent: your server’s IP address as the source of an outbound HTTP request (no payload, no PII, no plugin data). The request goes to https://api.ipify.org with no parameters.
  • When data is sent: only when you explicitly click the “Detect server IP” button on the Help page. The plugin never calls ipify on a schedule, on activation, or in the background.
  • Operating terms and privacy stance: ipify does not publish separate Terms of Service or Privacy Policy documents because it is a free, no-registration, no-authentication service that does not log or store IP queries. The single-page site at https://www.ipify.org/ explicitly states the operating terms (free for unlimited use, no rate limits beyond abuse protection) and the no-logging privacy stance. We disclose this here so users can make an informed decision about whether to use the “Detect server IP” button. The button is opt-in (manual click) and never fires automatically.
  • Documentation: https://www.ipify.org/

Languages

The admin interface is fully translated to:

  • English (en_US) — native, source language
  • Romanian (ro_RO) — full native translation
  • Bulgarian (bg_BG) — full translation
  • Hungarian (hu_HU) — full translation

All ~1,180 admin strings are translated in every locale shipped above. The Bulgarian and Hungarian translations are an initial machine-translated baseline — native speakers are very welcome to refine them at https://translate.wordpress.org/projects/wp-plugins/skyservers-product-sync-for-emag/ — WordPress.org will distribute approved contributions automatically to all users in your locale.

Installation

  1. Upload the plugin folder to /wp-content/plugins/ or install via the WordPress plugin screen.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Go to eMAG Sync → Settings and enter your eMAG API credentials.
  4. Click Test Connection to verify your setup.
  5. Run Import from eMAG to pull existing offers.
  6. Configure margins and enable sync on your products.

FAQ

Does this plugin import orders from eMAG?

Yes — order import is a Premium feature. The plugin registers two REST callback URLs that you paste into your eMAG seller account (Account → Technical details → Settings). Once eMAG fires a callback for a new or cancelled order, the plugin reads the payload, maps it to a WC_Order, and acknowledges it back to eMAG. Manual import-by-id is also provided for backfill. A configurable Dry Run mode lets you UAT the import flow against a live WooCommerce database without creating real orders.

Can the plugin issue AWB shipping labels for eMAG orders?

Yes — AWB issuance and printing are Premium features. Each imported eMAG order gets an “eMAG Shipping” meta box on the WooCommerce order edit screen. Click “Issue AWB” once your sender phone and pickup address are configured (Settings → Orders & AWB), and the plugin will request an AWB from eMAG, attach it to the order, and let you print in A4 / A5 / A6 / ZPL formats. The last-used format auto-saves as your default.

What eMAG API endpoints does the plugin use?

For sync: product_offer/save, product_offer/read, vat/read, category/read, product_offer/count. For orders (Premium): order/read, order/count, order/acknowledge plus the two webhook callback endpoints we expose. For AWB (Premium): courier_accounts/read, addresses/read, awb/save, awb/read. All built against the public eMAG Marketplace API v4.5.1 documentation.

Is my eMAG password stored securely?

Yes. Your API password is encrypted in the database using AES-256-CBC with a key derived from your WordPress AUTH_KEY constant and a freshly random initialization vector for each save. If you rotate AUTH_KEY (via wp-config.php), the plugin detects the resulting decryption failure on the next admin load, clears the corrupted credentials row, and shows you an admin notice asking you to re-enter the password.

Can I sync only specific products?

Yes. Each product has an individual sync toggle. Only products with sync enabled will be synchronised. Unmapped products (without an eMAG offer ID) are always skipped.

Is the plugin compatible with WooCommerce HPOS (High Performance Order Storage)?

Yes. Order lookups use wc_get_orders() so the active data store handles the query — works on both legacy CPT mode and HPOS authoritative-only mode (WC 8.2+). HPOS compatibility is also declared via FeaturesUtil::declare_compatibility('custom_order_tables', __FILE__, true).

Screenshots

Changelog

3.13.1

  • Publish (Premium): a product with no VAT rate in WooCommerce gets the standard rate of your eMAG country (Romania 21%, Bulgaria 20%, Hungary 27%) instead of failing with “vat_id value should not be null” on eMAG Bulgaria and Hungary; the VAT rates of the account are downloaded when a product is published before any import.
  • Settings: “Prices in WooCommerce” says whether your prices include VAT when the shop runs without WooCommerce taxes, so eMAG receives the price without VAT. By default the plugin follows WooCommerce’s own setting, as before.

3.13.0

  • eMAG Data Import runs in the background, one page of 100 offers per job, so large catalogues no longer depend on the web server’s request time limit. Pages are requested the way eMAG applies pagination; a page returned twice ends the read instead of being imported again. Up to 30,000 offers are read (was 5,000), by Buy Button tracking too.
  • Sync: a batch answered by eMAG’s front server instead of eMAG (HTTP 502/503/504) is sent once more after a pause, and the product status shows a short reason instead of the server’s error page. A manual sync whose last batches never report back is ended with a note instead of staying at N%.
  • Products (Premium): the existing-offer repair keeps its verdict with the product status after the next sync; “Repair automatically” runs one repair at a time, 4 products per click; eMAG not answering the EAN lookup is no longer taken as a missing endpoint; the product holding an offer is found even when its SKU differs from the part number by spaces, commas or case; “Allow it again” under a repaired product lets Data Import map the rejected offer back.
  • Orders (Premium): order reads and counts send their filters the way eMAG applies them.

Earlier versions

  • 3.12.3: a batch eMAG rejects because of specific offers is sent again without them; two of your offers rejected on the same eMAG product are reported as a pair (Premium).
  • 3.12.2: only the offer eMAG rejects as a second offer on the same product shows the error; the existing-offer repair with “Repair automatically” (Premium); AWBs use the delivery address, contact and phone (Premium); publish with stock 0.
  • 3.12.1: the handling time of products published from the plugin is corrected (eMAG rejected it at every sync).
  • 3.12.0: choice of the description sent to eMAG and optional resend when it changes; eMAG’s documentation feedback shown under the validation badge; imported orders carry the company’s CUI, trade register number, VAT status and the delivery contact; eMAG orders filter in the Orders list (Premium).
  • 3.11.2: published products are linked and turned on for sync; “Publish All” works through the whole list; the “Enable sync” bulk action works again and sends the products within minutes.
  • 3.11.1: sold-out products are sent to eMAG with stock 0 (“Skip products with 0 stock” keeps them untouched); prices can rise above the maximum eMAG stored; CSV format choice with validation (Premium).
  • 3.11: Auto Buy Button (Premium): lowers your price just below the cheapest competitor to win the Buy Button back, never below your minimum price, with email alerts; off by default, starts in simulation mode.
  • 3.10: CSV import/export, commission-aware pricing (with the VAT of the commission invoice for VAT-exempt sellers), image sizes per category, real-time stock push, stock restore on cancelled eMAG orders (Premium); draft products for unmatched eMAG offers at the initial import.
  • 3.9: Smart Bootstrap keeps your existing eMAG prices during the initial import; “Publish ID offset” setting for accounts that already hold offers from another feed; duplicated products no longer copy their eMAG mapping, with an “Unlink from eMAG” action and a repair tool for duplicate mappings. Tested with WordPress 7.1.
  • 3.8: background sync with a live progress bar and a Cancel button; Romanian, Bulgarian and Hungarian translations of the admin interface.
  • 3.7: every sync schedule, log retention and the minimum stock buffer on every plan. Tested with WordPress 7.0.
  • 3.6: unlimited products on the Free plan.
  • 3.5: HPOS compatibility and stronger encryption for the stored API password.
  • 3.4: setup wizard.
  • 3.3: AWB shipping labels (Premium).
  • 3.0 – 3.2: webhook order import (Premium) and support for Romania, Bulgaria and Hungary.
  • 2.1: category, characteristics and family mapping, Buy Button tracking (Premium).
  • 1.0: price and stock sync, margins, import of existing eMAG offers, activity logs.