Cookies on sparcley.co.uk

We use necessary cookies to make this site work. With your consent, we would also use Google Analytics cookies to see how the site is used; they stay off unless you accept. See our Cookie Policy.

Warehouse shelving stacked with cardboard boxes and yellow crates – supplier stock that an OpenCart supplier import keeps in sync

Published · Updated · 10 min read

OpenCart supplier import: XML feeds, stock sync and pricing

Supplier Import is a $69 OpenCart 3.0.x module that turns supplier XML feeds into products and keeps their price, stock and status in sync by cron. It downloads each feed once a day, a cron job – usually every 15 minutes – processes it in parts, and exactly one markup rule sets each selling price.

CategoryOpenCart
TopicOpenCart supplier import
Read Time10 min
Article#08 / 15

Key takeaways

  • Supplier Import costs $69 on the OpenCart Marketplace, includes 12 months of free support and runs on OpenCart 3.0.x with PHP 7.4 or newer.
  • Each supplier feed is downloaded once a day, and a cron job, usually every 15 minutes, continues the import from its saved position.
  • Exactly one pricing rule sets each price; markup rules use base × (1 + % / 100) + a fixed amount, with the feed price without VAT as the base.
  • If a run would disable more than 10 products or 20% of a supplier's enabled products, whichever is larger, nothing is disabled.
  • Products that leave the feed are disabled, never deleted, and get price, stock and status back when they return.
01

What is the OpenCart supplier import module?

An OpenCart supplier import module is an extension that turns supplier XML feeds into OpenCart products and keeps their price, stock and status in sync on a schedule. Supplier Import is our module of this kind for OpenCart 3.0.x: it costs $69 on the OpenCart Marketplace and is built for shops that resell or dropship from several distributors and no longer want to update prices and quantities by hand.

In practice it is an OpenCart product importer and a sync job in one. You map each supplier's feed once and approve the supplier categories that may create new products. From then on the module imports products from suppliers, updates what has changed and disables what has disappeared. Pricing rules turn the supplier's price into your selling price, and a daily health check emails you when something needs attention. For example, before: a supplier item arrives with quantity 0 and is created as a disabled product. After: a later feed shows stock above 0, and the same product is enabled again without a manual edit.

Sparcley published Supplier Import on the OpenCart Marketplace in October 2026; our DPD tracking, XML feed and product video modules are listed there too. Version 2.6 comes with 12 months of free support and full documentation. We built it for a live OpenCart 3 store that imports supplier catalogues every day, so each feature below comes from real catalogue work rather than a wish list. If you would rather have the whole shop built around your suppliers, we also deliver eCommerce websites with supplier integration.

02

How do you add a supplier XML feed to Supplier Import in OpenCart?

You add each supplier in three stages under Catalog > Supplier import – Supplier, Fields and Categories – and Supplier Import expects one product element per item in the feed. A Deduct VAT option handles suppliers whose feed prices include VAT, so pricing starts from the net price.

If a supplier's categories sit far from your own category tree, it pays to fix the tree before the first import rather than map hundreds of mismatched categories by hand.

  1. Create the supplier: enter a Feed URL that the cron downloads, or upload an XML file, then set Deduct VAT and an exclusion list of name phrases to skip.
  2. Map the fields from the first product in the feed: product name, meta title, product code (model) and category are required, while SKU, price, weight, quantity, description, EAN, image, manufacturer and purchase price without VAT are optional. Map the product code to a value that never changes, because it links an item between two feeds.
  3. Map the categories: pick a store category for each supplier category, tick Verify and set a Price % between −100 and 100 as a markup or discount. New products come only from verified categories, while existing products in unverified categories still get stock updates.
  4. Run the first import and review the results before you add the supplier's cron job.
03

How does OpenCart stock and price sync with suppliers work?

OpenCart stock and price sync runs in five steps, from one daily download of each supplier's feed to short updates of changed items.

  1. Add one cron job per supplier, usually running every 15 minutes, so a large feed never has to fit into a single run.
  2. Download each supplier's feed once a day.
  3. Process the next part of the feed on each cron run, continuing an unfinished import from its saved position.
  4. Retry a failed download automatically after 75 seconds, up to three attempts in five minutes, when the supplier's server answers HTTP 503 or times out (command-line runs).
  5. Import every item in full on the first run; after that, the module updates only new and removed items, plus items whose price, quantity, name, category or image changed.

Updating only what changed keeps automatic price and stock updates short even on a big catalogue. Individual products can be excluded from updates or have fields such as price or description locked (in version 2.6 a developer sets this up; it is not yet in the admin). What happens to each item:

  • New products are enabled when quantity is above 0 and created disabled when it is 0.
  • Quantity above 0 re-enables an existing product; quantity 0 keeps its status and shows it as out of stock.
  • Products that leave the feed are disabled, never deleted, and get price, stock and status back when they return.
  • Missing images are downloaded to your server; existing images are kept, and an empty feed description never blanks a filled one.
04

What protects your OpenCart catalogue from a broken supplier feed?

Six guards stop a broken supplier feed from rewriting your OpenCart catalogue. Supplier feeds fail in predictable ways – an empty file, a half-finished export, stock that suddenly reads zero everywhere – and each guard covers one of them:

  • Feed validation: a file that is not XML or has no product elements is rejected before anything changes.
  • Mass-disable guard: if a run would disable more than 10 products or 20% of the supplier's enabled products, whichever is larger, nothing is disabled and an error is logged.
  • Stock guard: if the previous feed had at least 20 items in stock and the new one has 10% of that or less, stock is not zeroed in that run.
  • Run lock: a supplier is never imported by two runs at once.
  • Error isolation: a failing product is logged and skipped while the rest of the feed carries on.
  • Stuck imports: a run with no progress for two hours is flagged, and Reset import position restarts it.
05

How do Supplier Import markup rules set the final price in OpenCart?

Exactly one rule prices each product – rules never add up. Pricing rules live under Catalog > Supplier import > Pricing, per supplier, and are checked in a fixed order: price lock, product rule, brand rule, supplier rule, category rule, pinned discount, category % and no change. Within a level, the rule with more conditions wins, then the higher priority.

Rules match on manufacturer, store category, supplier category and a base price range. The action is a markup formula – base × (1 + % / 100) + a fixed amount, rounded to two decimal places – or a fixed price for single-product rules, with the feed price without VAT as the base. Why this price? explains any product rule by rule.

When the purchase price is mapped, the pricing rules are designed to keep each price at or above cost: the import does not write a lower price, and a daily price check raises anything that slipped under it. The exceptions are a locked price, which is kept and reported, and a cost floor switched off with a setting. Version 2.6 also gives every enabled copy of a duplicated product, matched by GTIN or by manufacturer code and brand, the group's highest price; it runs as a report-only dry run until you switch it on. Changes go live in steps:

  1. Save a new or edited rule as a pending change.
  2. Preview the impact: prices up, down or unchanged, conflicts and the largest changes, with a CSV download.
  3. Confirm the change when it touches over 20% of the supplier's enabled products or moves one price by over 30%.
  4. Apply the change: prices are written in batches of 500, and Sync prices then confirms nothing is left to change.
  5. Check History, which logs every apply; Roll back restores the previous rules and prices of the latest batch.
06

How do you schedule and monitor OpenCart import cron jobs?

OpenCart auto import works through cron: the module does not schedule itself, so each supplier needs its own hosting cron job, usually set to run every 15 minutes.

  1. Copy each supplier's ready-made command from Settings > Cron.
  2. Add it to your hosting as a separate cron job for that supplier, usually every 15 minutes.
  3. Run it through PHP CLI where you can: PHP's command line has no execution time limit by default (max_execution_time 0), unlike a web request.
  4. Use the token-protected HTTP URL with a web cron service only if you have no shell access, as long imports may hit the server time limit.
  5. Check the Cron page for each supplier's schedule, last run, position and last feed download, and the import log for one row per supplier per day with processed, inserted, updated and not-verified counts.
  6. Set a report hour and choose whether the daily health check emails you every day or only when there are errors or new warnings.

The daily health check covers:

  • failed, stuck or missed imports and guard events
  • feeds whose content has not changed for seven days or more
  • enabled products sold below purchase cost, including specials and quantity discounts
  • unmapped categories and the OpenCart error log
  • orders, with a warning after 72 hours without one
  • our XML feed generator and DPD tracking modules, when installed
07

What do you need before installing Supplier Import?

You need OpenCart 3.0.x, PHP 7.4 or newer with cURL, XMLReader, SimpleXML, mbstring and JSON, MySQL or MariaDB with InnoDB, cron access on your hosting and working store mail. English and Lithuanian admin languages are included, and no OpenCart core files are overwritten. Worth knowing about version 2.6:

  • Version 2.6 works with XML feeds only; if a supplier offers just CSV or XLS, send us a sample before you buy.
  • In version 2.6, Deduct VAT uses a fixed 21% rate (prices are divided by 1.21); if your suppliers' prices include a different VAT rate, send us a sample feed before you buy.
  • New products get a fixed default tax class, stock status and store, so check that these match your setup after the first import.
  • On Journal3, import runs can rebuild a theme menu from your top-level categories, so back up the theme settings before the first import.
  • Daily check findings and the report email are currently in Lithuanian.
08

Can Sparcley set it up for your store?

Yes. Send us a sample supplier feed – we reply to every enquiry within 24 business hours – and we will tell you whether it maps cleanly. Supplier XML structures vary, and nested fields, namespaces and variants all behave differently, so a real sample tells us more than a description. We then configure the module on a staging copy of your store before any production import runs.

If you are starting a new shop, an eCommerce website from Sparcley takes about 5 weeks and includes integration with 1 supplier or upload of up to 50 products.

After launch, Complete Digital Care includes 4 hours of work a month, so we can keep watching the import reports for you as part of ongoing store care.

09

OpenCart Supplier Import FAQ

How much does Supplier Import for OpenCart cost?

Supplier Import costs $69 on the OpenCart Marketplace, with 12 months of free support and documentation included. If you want us to install and configure it for your suppliers, setup is quoted separately.

Which OpenCart versions does Supplier Import support?

Version 2.6 is built for OpenCart 3.0.x and needs PHP 7.4 or newer with cURL, XMLReader, SimpleXML, mbstring and JSON.

Can it import CSV or Excel supplier files?

No. In version 2.6 the importer reads XML feeds only, with one product element per item. If your supplier offers only CSV or XLS, send us a sample and we will advise on the options.

How often does supplier stock update in OpenCart?

Each supplier's feed is downloaded once a day. A cron job, usually every 15 minutes, continues any unfinished import, and after the first full import only new, removed and changed products are updated.

Can I use Supplier Import as an OpenCart dropshipping module?

Yes, for the catalogue side: it imports products from your suppliers and keeps their prices, stock and status in sync. If you also need orders passed to a supplier, tell us how that supplier takes orders and we will confirm what fits.

Does the module delete products that disappear from the supplier feed?

No. Products that leave the feed are disabled, not deleted, and get their price, stock and status back when they return. If a run would disable more than 10 products or 20% of the supplier's enabled products, whichever is larger, nothing is disabled and an error is logged.

10

Sources

From concept to live — premium design, real results.