BG Couriers for WooCommerce

Përshkrim

BG Couriers puts Bulgaria’s couriers inside WooCommerce: your customer chooses where the parcel goes and sees what that delivery costs, and you print the label and follow the parcel without leaving WordPress.

At the checkout every courier you switch on shows its own price for the basket, live from that courier’s API. Your customer picks how the parcel is delivered – to an office, to an address, or to a locker/APS – and finds the office by typing the town, or by pointing at it on one map that carries every courier’s offices and lockers at once, each with its own price. The map can also say which pickup point is closest to them.

In the admin one click issues the waybill and the label – one order, or fifty of them into a single PDF (A6 labels or an A4 sheet). The plugin then keeps each shipment’s status up to date by itself, and your customer sees the waybill and a tracking link on their order and in the e-mails you already send them.

It is free, GPL, and stays that way: every courier, every feature, no paid tier. Deliveries are within Bulgaria.

Couriers

  • Speedy – office / address / APS. Live rates, labels, tracking.
  • Econt – office / address / Econtomat. Live rates, labels, tracking, and cash on delivery (наложен платеж) with an itemised packing list.
  • Pigeon Express – office / address / locker. Live rates, labels, tracking.
  • Sameday – office / address / easyBox. Live rates, labels, tracking.
  • BOX NOW – lockers (APM) only, picked on BOX NOW’s own map. Flat rate.

Setting it up

You need your own account with each courier you want to offer: the prices your customers see and the labels you print are your own contract’s, and nothing is resold through this plugin. Once you have the API credentials, a courier takes a couple of minutes:

  1. Paste the credentials on that courier’s tab and switch the courier on – it checks them with the courier there and then, and says so plainly if they are refused.
  2. Sync its towns and offices – one button.
  3. Add it to your Bulgaria shipping zone – and to the zone of any other country you deliver to.

Everything else already has a working default: the prices, the map, the checkout fields and the label size all work as they ship.

Also included

  • Cash on delivery (наложен платеж), with the choice of who pays the delivery – and the amount to collect follows that choice.
  • Free-shipping thresholds, per courier and per delivery type.
  • Several parcels in one shipment, and insurance for a value you set (Speedy, Sameday).
  • A delivery estimate on the cart page, before the customer reaches the checkout.
  • Works on both the classic and the block checkout.
  • Fully translated to Bulgarian.

External services

The plugin uses the online API of each courier you enable, to price a delivery, to create a label and to track a parcel. Nothing is sent to a courier you have not configured.

What is sent, and when

  • Price quote (cart / checkout) – the parcel weight, the destination town or office, and the delivery type. When the customer views the shipping options.
  • Label (admin) – the recipient’s name, phone, e-mail, the chosen address or office/locker, the parcel weight, and, with cash on delivery, the amount to collect and the item list. When you generate the label.
  • Tracking – the waybill number. When tracking is opened or refreshed.

Courier APIs

  • Speedy – api.speedy.bg. Terms: https://www.speedy.bg/en/terms-and-conditions · Privacy: https://www.speedy.bg/en/privacy-policy
  • Econt – ee.econt.com. Terms: https://www.econt.com/en/terms · Privacy: https://www.econt.com/en/privacy-policy
  • Pigeon Express – api.pigeonexpress.com (api-demo.pigeonexpress.com in test mode). Terms: https://pigeonexpress.com/terms · Privacy: https://pigeonexpress.com/privacy
  • Sameday – api.sameday.bg (sameday-api-bg.demo.zitec.com in test mode). Terms: https://sameday.bg/terms-and-conditions-delivery-courier-services-bg/ · Privacy: https://sameday.bg/politika-za-poveritelnost/
  • BOX NOW – api-production.boxnow.bg (api-stage.boxnow.bg in test mode), plus its locker-picker widget map.boxnow.bg, loaded in an iframe when the customer opens that picker. Terms: https://boxnow.bg/terms-of-use-for-shipping-services · Privacy: https://boxnow.bg/personal-data-processing-notice

Maps and address lookup

  • OpenStreetMap tiles – tile.openstreetmap.org. Map tiles only, loaded when the customer opens a map. Tile policy: https://operations.osmfoundation.org/policies/tiles/ · Privacy: https://wiki.osmfoundation.org/wiki/Privacy_Policy
  • OpenStreetMap Nominatim – nominatim.openstreetmap.org. One set of coordinates, turned into an address or a town name. It happens in two cases only: the customer drops a pin on the address map picker (a setting, off by default), or presses “find me” on the map before naming a town, so the town can be filled in for them. Nominatim policy: https://operations.osmfoundation.org/policies/nominatim/ · Privacy: https://wiki.osmfoundation.org/wiki/Privacy_Policy
  • Google Maps Geocoding – maps.googleapis.com. Takes over those same lookups, and only if you set a Google Maps API key in the settings (optional; OpenStreetMap is used if the key is empty or Google does not answer). It receives the coordinates and nothing else. Terms: https://cloud.google.com/maps-platform/terms · Privacy: https://policies.google.com/privacy

The map’s “closest to you” (on by default, switchable off) works out the distances in the customer’s own browser. Their position is never stored on the site and is forgotten when the page is closed.

No data is sent to any service you have not configured, and the plugin sends nothing to its author.

Contributing

The plugin is developed in the open. Bugs, ideas and pull requests are welcome:
https://github.com/dangoriaynov/bg-couriers/issues

Foto ekrani

Instalim

  1. Upload the plugin to /wp-content/plugins/bg-couriers (or install via the Plugins screen) and activate it. WooCommerce must be active.
  2. Go to WooCommerce Settings BG Couriers.
  3. Open a courier’s tab, enter its API credentials, click Validate, then Sync its cities/offices.
  4. Add the courier’s shipping method to your Bulgaria shipping zone (WooCommerce Settings Shipping), and to the zone of any other country you deliver to.

PBR

Which countries are supported?

Bulgaria, by five Bulgarian networks: Speedy, Econt, Pigeon Express and Sameday deliver to an office, to a street address or to a locker, and BOX NOW delivers to its lockers (APM). Delivery outside Bulgaria is not offered.

How can I support the development?

The plugin is free, GPL, and stays that way – every courier, every feature, no paid tier. If it has saved you work and you would like to put something behind it: https://revolut.me/danq6lus. It is entirely voluntary and changes nothing about the support you get. Reporting a bug in the support forum, or leaving a review, helps just as much.

Do I need an account with the couriers?

Yes. Each courier requires its own API credentials, obtained from that courier. Enter them on the courier’s settings tab.

How are prices calculated?

Live from each courier’s API for the parcel weight and destination. If the API is briefly unreachable, a daily reference price (or your configured default) is used. BOX NOW uses a flat rate you set (it has no rate API).

Does it bundle any third-party libraries?

Yes, and all are GPL-compatible and shipped with their source: FPDF (permissive) and FPDI (MIT) to compose label PDFs, and Leaflet (BSD-2-Clause) with OpenStreetMap tiles for the map picker. The courier and courier brand names are used only to identify the services the plugin integrates with; this plugin is not affiliated with or endorsed by any of them.

Shqyrtime

Për këtë shtojcë s’ka shqyrtime.

Kontribues & Zhvillues

“BG Couriers for WooCommerce” është software me burim të hapur. Në këtë shtojcë kanë dhënë ndihmesë personat vijues.

Kontribues

Regjistër ndryshimesh

0.3.8

  • New: the checkout can insist on an e-mail address – a setting, off by default. The plugin makes the field optional (a waybill is built with the phone number), and until now a shop that needed the address had to edit its theme.
  • Fixed: a Pigeon Express parcel that came back never moved the order. The journey home travels under a second waybill the order was never told about.
  • Fixed: “Request a courier” now names every ticked order it leaves out, instead of quietly shrinking the list you are about to confirm.
  • Fixed: an address the shop cannot deliver to now says so, and offers the way back – it used to end in WooCommerce’s “check your address” about an address with nothing wrong with it.
  • Changed: the map’s town field opens its whole list when you press it; it used to answer only to typing.

0.3.7

  • New: Request a courier – tick the orders, pick a day, the courier comes for those parcels (Speedy, Econt).
  • New: Pigeon Express can collect from your address instead of you dropping parcels at its office.
  • Fixed: cancelling an already-cancelled Sameday shipment reported a failure and left the waybill on the order.
  • Changed: BOX NOW is no longer told what a prepaid parcel is worth, unless you turn it on.

0.3.6

  • Fixed: cash on delivery was never priced. The courier’s fee for collecting the money was missing from every quote – on 50 EUR: Econt +0.78, Pigeon +0.75, Sameday +0.50, Speedy +0.40.
  • Fixed: deleting the plugin now removes its settings, tables and label PDFs.
  • Fixed: a Speedy cancel could report failure when the courier had cancelled.
  • New: Econt partial delivery (частична доставка), off by default.

0.3.5

  • Fixed: delivery was quoted about 20% high until a town was chosen – the pre-town price carried its VAT and was then taxed again.
  • Fixed: the interactive map and the checkout could show different prices for the same office.

Older entries: https://github.com/dangoriaynov/bg-couriers/blob/main/docs/CHANGELOG.md