Menu
Your Cart
Take a look at the references of more than 60 OpenCart webshops we have completed so far!

myGLS API – label printing and tracking sync for OpenCart 3

myGLS API – label printing and tracking sync for OpenCart 3
myGLS API – label printing and tracking sync for OpenCart 3
myGLS API – label printing and tracking sync for OpenCart 3
New
myGLS API – label printing and tracking sync for OpenCart 3
myGLS API – label printing and tracking sync for OpenCart 3
myGLS API – label printing and tracking sync for OpenCart 3
myGLS API – label printing and tracking sync for OpenCart 3
$59.63
Ex Tax: $59.63
  • Model: mygls-oc3
  • Opencart version: 3.x.x.x

Available Options

Create GLS Shipping Labels Directly from OpenCart

The ShopShine myGLS API – OpenCart 3 connects your online store orders directly to the myGLS system. Your daily shipping workflow remains within the familiar OpenCart order list: you can select one or multiple orders and generate their shipping labels in a single, printable PDF file.

Less Manual Data Entry, Faster Shipping

  • manual, bulk, or automatic label creation based on order status;
  • A4 2×2 and additional myGLS printing formats;
  • automatic COD amount transfer for selected payment methods;
  • PSD handling for GLS ParcelShop and Parcel Locker orders;
  • FDS email and optional FSS SMS notifications;
  • multistore support with separate settings for each store.

GLS Statuses Directly in the OpenCart Order List

Using a cron job, the module regularly retrieves GLS parcel tracking events. The current status, event time, and parcel number are displayed directly next to each order. Detected GLS statuses can be mapped to any OpenCart order status.

Safe Bulk Processing

Per-order locking and myGLS-side reference checks help prevent duplicate labels. The module can restore data for existing shipments, detect labels that have been deleted and subsequently recreated, and safely associate manually created GLS parcel numbers with orders.

Clear Configuration and Testing

The modern card-based admin interface provides separate sections for API connection settings, pickup address, labels and services, and status synchronization. The built-in Test Center helps you verify configuration data and manage test labels.

Compatibility and Requirements

  • OpenCart 3.x and PHP 7.0+;
  • PHP cURL and JSON extensions;
  • an active GLS contract and myGLS API access;
  • cron access for automatic status updates.

Important: this module is an admin-side shipping label creation and status synchronization solution. For map-based GLS pickup point selection during checkout, the separate ShopShine GLS ParcelShop Pro module is available.

The GLS name and logo are trademarks of their respective owner. The ShopShine product does not claim official approval or endorsement by GLS.

Informations
Opencart version 3.x.x.x

ShopShine myGLS API 1.0.0 – OpenCart 3 documentation

1. Purpose

The extension creates myGLS shipments and GLS labels from OpenCart orders, stores Parcel IDs and parcel numbers, and periodically downloads GLS tracking events. Daily operation takes place on the native Sales → Orders page.

2. Requirements

  • OpenCart 3.x
  • PHP 7.0+
  • PHP cURL and JSON extensions
  • HTTPS is recommended
  • active GLS contract, myGLS username, password and Client Number
  • hosting cron access for automatic tracking synchronisation

The extension does not provide a GLS contract or API account. Available services and limits are determined by the merchant's GLS agreement.

3. Installation and updates

  1. Back up the store files and database.
  2. Open Extensions → Installer.
  3. Upload shopshine_mygls_api_oc3_v1.0.0.ocmod.zip.
  4. Open Extensions → Modifications and refresh the OCMOD cache.
  5. Under Extensions → Extensions → Modules, install ShopShine myGLS API.
  6. Open the extension from its direct side-menu item or the module list.

For updates, do not uninstall the module or delete its tables. Upload the new package, then refresh OCMOD and theme caches.

4. API connection

On the API connection tab configure the test or live environment, country, myGLS username and password, GLS Client Number and module status. Save first, then use Test connection. Test and live credentials may be different.

5. Pickup address

Enter the sender name, country, postcode, city, street, house number, contact, telephone and e-mail. These values are printed as the pickup address on shipments.

6. Labels and services

Configure the printer type, starting label position, optional automatic dispatch order status, COD payment methods, ParcelShop/Locker shipping methods, FDS e-mail, optional FSS SMS and label content. The extension opens PDF output directly, so the selected myGLS printer type must return PDF. Automatic dispatch is triggered immediately by an order-status change and does not require cron.

7. Manual and bulk labels

Select one or more orders on Sales → Orders, then use Create / print myGLS labels. The extension creates the shipments and opens one combined PDF. With A4 2×2, four selected orders can occupy the four positions of one A4 sheet.

Orders from multiple stores can share one PDF when the stores use identical myGLS account, Client Number, environment and printer settings.

8. Cash on delivery

COD methods are selected by their visible payment-method names. For matching orders, the OpenCart total and currency are sent to myGLS with the COD service. Verify the selection with a test order before live use.

9. ParcelShop and Locker delivery

Select the shipping methods that represent GLS ParcelShop or Locker delivery. The extension sends the PSD service with the GLS delivery-point identifier stored in the order. Unselected methods are treated as home delivery.

The extension itself does not add a checkout map. A separate point-selector extension, such as ShopShine GLS ParcelPoint Pro, is required for map-based checkout selection.

10. Tracking synchronisation and cron

Enable tracking on the GLS statuses tab, set the tracking window, save and copy the per-store Cron URL. Recommended execution every 15–30 minutes:

/usr/bin/curl -fsS -L --max-time 120 "CRON_URL_SHOWN_IN_ADMIN" > /dev/null 2>&1

Each run processes up to 50 parcels, prioritising never-checked and then least-recently checked records. Multi-store installations require one Cron URL per store.

After the first successful sync, discovered GLS statuses can be mapped to OpenCart order statuses. Unmapped events remain informational. Terminal statuses can be marked as closed to stop further polling.

11. Duplicate protection and recovery

Per-order MySQL locks and the OC-{order_id} remote reference check prevent concurrent or duplicate creation. Existing remote shipments are recovered instead of recreated. Deleted and recreated myGLS parcels can also be detected, with strict fallback matching when the reference is unavailable.

For a parcel created manually in myGLS, choose Attach existing GLS parcel number from the order action menu. The extension verifies the parcel in the configured account and rejects mismatching reference, e-mail or postcode data before saving its Parcel ID and enabling tracking.

12. Test centre

In test API mode, validate a real order, create a test shipment, open its PDF and delete it. A controlled live test is also available when test credentials are unavailable: it creates a zero-COD shipment and immediately requests deletion. Contractual or billing consequences of live test labels must be confirmed with GLS.

13. Logs and troubleshooting

Operational logs are written to:

storage/logs/shopshine_mygls.log

Passwords and cron secrets are not logged. For errors, verify credentials and Client Number, recipient address and ISO country, selected COD methods, PSD delivery-point ID, OCMOD/theme caches and the per-store cron URL.

14. Limitations

  • One GLS shipment is created per OpenCart order.
  • Weight and dimensions are not sent. They are optional myGLS data for Hungary and actual weight may be recorded by GLS during physical processing.
  • Label deletion and dispatch cancellation during normal operation are performed in myGLS.
  • Custom modifications of the OpenCart administration may require a compatibility check.

Write a review

Please login or register to review
We use cookies and other similar technologies to improve your browsing experience and the functionality of our site. Privacy Policy.