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.

Courier handing a cardboard parcel to a customer – the Delivered milestone an OpenCart DPD tracking module reports in its emails

Published · Updated · 9 min read

OpenCart DPD tracking module for DPD Baltics: statuses and emails

Sparcley DPD Tracking & Notifications Pro is a $98 OpenCart 3.0.x module that follows DPD Lithuania, Latvia and Estonia parcels, changes the order status at each delivery milestone and emails the customer in one of four languages. A cron job checks parcels for new DPD events every 15 minutes, and the module works alongside the official DPD OpenCart module, which still holds the API credentials and prints the labels. It is not built for DPD UK accounts or OpenCart 4.

CategoryOpenCart
TopicDPD order tracking
Read Time9 min
Article#07 / 15

Key takeaways

  • Sparcley DPD Tracking & Notifications Pro costs $98 on the OpenCart Marketplace, with 12 months of support included.
  • It needs OpenCart 3.0.x and a DPD Lithuania, Latvia or Estonia account with API access; DPD UK accounts and OpenCart 4 are not supported.
  • A cron job every 15 minutes checks up to 50 due parcels per run and stops tracking a parcel once it is delivered, returned or cancelled.
  • Seven DPD milestones can change the order status, and customer emails go out in Lithuanian, English, Russian or Latvian.
  • Cash on delivery labels need version 1.4, which is still in testing; the Marketplace version 1.3.3 does not create them.
01

What does the OpenCart DPD tracking module do, and who is it for?

An OpenCart DPD tracking module is an extension that follows each DPD parcel through the carrier's tracking API and keeps the store's order status and the customer up to date. Ours, Sparcley DPD Tracking & Notifications Pro, is built for OpenCart 3.0.x stores that ship with DPD Lithuania, Latvia or Estonia. With a 15-minute cron job, it checks every new parcel through the DPD tracking API, changes the order status at each delivery milestone, emails the customer in one of four languages and shows a parcel timeline in My Account. It costs $98 on the OpenCart Marketplace, with 12 months of support included.

The module works on top of the official DPD OpenCart module, which keeps doing its own job: holding your API credentials, creating tracking numbers and printing labels. Our module adds what happens after the label – following the parcel, keeping the order status accurate and telling the customer where the parcel is. Staff no longer copy OpenCart tracking numbers into emails, change order statuses by hand or answer “where is my parcel?” messages one by one.

It is built for DPD Baltics customers: stores that sell in Lithuania, Latvia and Estonia and have a DPD account with API access. It is not built for DPD UK or DPD Local accounts. We developed it as part of our web development work, including custom OpenCart modules, and it is one of four extensions we publish on the OpenCart Marketplace.

02

How does OpenCart order tracking with DPD work?

OpenCart order tracking with DPD runs on a 15-minute cycle started by a cron job. In each sync, the module asks the DPD API for new events on every parcel in its queue and stores each event once. A parcel joins the queue as soon as its DPD label is created – by this module, or by the official DPD module while the tracking module is enabled.

Each run checks up to 50 parcels that are due; a parcel is checked at most every 15 minutes, or every 30 minutes after an error. Tracking stops when a parcel is delivered, returned or cancelled, or after five failed checks in a row. Tracking numbers created before installation are not added. Without cron, storefront page views start the sync in the background at most once every 15 minutes; because this depends on visitors, a real cron job is more reliable.

To set up the sync cycle:

  1. Configure the official DPD OpenCart module with your DPD country and API credentials – the tracking module reads them from there.
  2. Copy the secret CRON URL from the tracking module's admin page and add it to a hosting cron job that runs every 15 minutes.
  3. Create DPD labels as usual, in this module or in the official DPD module, so each new parcel joins the tracking queue.
  4. Press Run Sync Now to start the first sync and see how many parcels were checked and updated, with one line per error.
03

Which DPD milestones change the OpenCart order status?

Seven DPD milestones can change the OpenCart order status, and you decide which status each one sets. On the Status Automation tab, every milestone has its own Update OC Status and Send Email switches, so you can, for example, change the status at Out for Delivery without sending the customer another email. By default, emails are off for Out for Delivery and Delivery Exception.

Each change adds a line to the order history with the DPD status and the tracking number, and nothing changes if the order already has that status. Actions run only when a parcel reaches a new milestone. DPD texts such as “Not delivered” or “Unable to deliver” count as a delivery exception rather than a delivery, so a failed attempt never triggers a Delivered email. The defaults use standard OpenCart statuses:

  • Shipment Created – Shipped; applied only when the module creates the DPD label itself.
  • In Transit – Shipped, with a customer email.
  • Out for Delivery – shares the In Transit status; email off by default.
  • Ready for Pickup – Shipped, with a customer email.
  • Delivered – Complete, with a customer email.
  • Returned – Refunded, with a customer email.
  • Delivery Exception – Failed; email off by default.
04

How do the OpenCart order status emails work?

OpenCart order status emails go out when a parcel reaches a milestone with Send Email switched on. The module then emails the customer in Lithuanian, English, Russian or Latvian, independently of the languages your storefront uses, and each milestone email is sent at most once per order. The language is picked in a fixed order: the language set for the shipping method first, then the one set for the delivery country, then a general default language.

Before anything reaches customers, you can send a test email with sample data to your admin address. The Notification Log then shows whether each email was sent; hovering over a failed entry shows the reason.

Editing a template needs no HTML. Each email has a simple editor with bold, italic, underline, colour, lists and links, plus a row of Insert buttons that add order data as readable fields. Because the fields are filled from the order, one template serves every parcel, and each customer sees their own name, order number and tracking link:

  • [First name], [Last name] and [Full name]
  • [Order no.] and [Date]
  • [Parcel number] and [Tracking link] to the public DPD tracking page
  • [Parcel status], written in the email language
  • [Shop name] and [Shop address]
05

Can the module create DPD labels automatically?

Yes, as an option. With Create DPD label automatically enabled, adding your chosen trigger status (for example Packed) in Sales > Orders > History creates the DPD shipment, saves the tracking number on the order and starts tracking. You then print the label in the official DPD module as usual.

If DPD refuses a shipment, the reason is written to the order history – a missing pickup point, for example – so staff can correct the order and add the trigger status again. Orders that already have a DPD tracking number are skipped.

Cash on delivery (COD) labels are a version 1.4 feature: version 1.4 creates them through DPD's newer API, and the Marketplace version 1.3.3 does not support them. Version 1.4 is still in testing and is not on the Marketplace yet; if your store needs COD labels, get in touch. Automatic labels cover:

  • DPD pickup points and parcel lockers, with the pickup point stored on the order
  • DPD courier delivery (B2C), including Saturday and same-day services, with the order's delivery time frame if one is set
  • An option to treat X-Shipping Pro orders as DPD courier shipments
  • Cash on delivery orders in version 1.4, with the order total as the COD amount
06

What does the customer's order tracking page show?

The customer's order tracking page shows each DPD parcel on a timeline, from handover to the DPD courier to delivery. Logged-in customers get a My Shipments (DPD Tracking) link in My Account, with filters for all, active and completed shipments and a list of the notification emails they have received.

Each shipment opens as a timeline – handover to DPD, in transit, out for delivery, then Delivered, or Delivery Exception or Returned – with a Track button to the public DPD tracking page. The same tracking block appears on the order page in Order History, so customers find it wherever they look. Templates are included for the Default theme and Journal3, and storefront texts are in English and Lithuanian.

If your store runs Journal3, our OpenCart product video module is built for the same theme: it shows YouTube, Vimeo and MP4 videos from the product description as thumbnails under the product title.

07

What do you need to run the OpenCart DPD module, and what does it cost?

The OpenCart DPD module costs $98 on the OpenCart Marketplace, with 12 months of support and documentation included. To run it, you need OpenCart 3.0.x, the official DPD OpenCart module and a DPD Lithuania, Latvia or Estonia account with API access.

Version 1.3.3 is on the Marketplace; version 1.4 is in testing. Upgrades are uploaded over the existing version and keep the settings, tracking history, notification log and saved email texts. Marketplace compatibility is listed from OpenCart 3.0.0.0 to 3.0.5.0; the module is not built for OpenCart 4. The full checklist for a DPD OpenCart 3 setup:

  • OpenCart 3.0.x with OCMOD, and PHP 7.0 or newer with the cURL extension
  • The official DPD OpenCart module installed and configured – the tracking module reads its DPD country, API credentials, tracking numbers and DPD shipping methods
  • A DPD Lithuania, Latvia or Estonia account with API access; the API token is issued automatically
  • Working store mail settings and the default admin folder name (admin)
  • A cron job every 15 minutes (recommended)
08

Need help setting up DPD tracking in OpenCart?

We can install the module, map the DPD milestones to your own order workflow and adjust the email texts in each language. The same team can help with the rest of your online store too.

To see how this work comes together on a real project, look at an OpenCart store we built from a Figma design. If you also update products from suppliers or send product data to Google and price comparison portals, read about our OpenCart supplier import module and our OpenCart XML feed generator.

Send us your OpenCart version and the DPD country you ship from, and we will reply within 24 business hours.

09

OpenCart DPD module FAQ

Does the OpenCart DPD module work with DPD UK?

No. It is built for DPD Lithuania, Latvia and Estonia accounts with API access. DPD UK and DPD Local accounts are not supported.

Does the DPD tracking module work with OpenCart 4?

No. It is built for OpenCart 3.0.x with OCMOD and Twig templates, and the Marketplace listing shows compatibility from OpenCart 3.0.0.0 to 3.0.5.0.

Do I still need the official DPD OpenCart module?

Yes. The tracking module takes the DPD country, API credentials, tracking numbers and shipping methods from the official DPD module, and labels are still printed there.

Will parcels shipped before installation be tracked?

No. Only labels created after installation – by this module or by the official DPD module while the tracking module is enabled – are queued for tracking.

What happens if my hosting has no cron job?

Storefront page views start the sync in the background at most once every 15 minutes. Because this depends on visitors, a real cron job every 15 minutes is more reliable.

How can I check whether a customer received a DPD tracking email?

Open the Notification Log: it shows whether each email was sent, and hovering over a failed entry shows the reason. Each milestone email is sent at most once per order, and you can send yourself a test email before customers receive any.

10

Sources

From concept to live — premium design, real results.