Pasts Courier & Locker

Description

Pasts Courier & Locker adds official Pasts Expresspasts options to WooCommerce checkout.

Main features:

  • Supports both classic checkout and WooCommerce Checkout Blocks.
  • Supports both WordPress posts order storage and WooCommerce High-performance order storage.
  • Show Pasts parcel lockers, post offices, and courier options at checkout.
  • Supports delivery to Latvia, Lithuania, Estonia, and worldwide.
  • Shipping method pricing rules by country, weight, amount, and box size.
  • Label and manifest generation from the plugin orders.
  • Supports courier pickup as well as shipment drop-off at parcel lockers.
  • Debug logging for request and response troubleshooting.

External services

ExpressPasts API

This plugin connects to the Pasts ExpressPasts API, which is also called Express Mail Customer Information System or EKIS. It is necessary for most of the plugin functions – getting terminal or other location lists, creating shipments, getting labels, creating manifests, calling courier. Refer to the Privacy Policy in Latvian or the Privacy Policy in English and the Terms of Use in Latvian.

Esri ArcGIS

The plugin uses the Esri ArcGIS geocoding service (geocode.arcgis.com) to convert a postcode or address into geographic coordinates. This is required to sort and show the parcel lockers and customer service locations closest to the customer.

The postcode or address is sent to the service each time the customer searches for a pickup location, or the closest location is calculated, both in the classic checkout and in the WooCommerce Checkout block. No other personal data is sent. Refer to the Esri Terms of Use and the Esri Privacy Statement.

Source code and build process

The WooCommerce Checkout block assets in assets/blocks/ (index.js, post-terminals-block.js, post-terminals-block-frontend.js) are compiled bundles. Their human-readable JavaScript (React/JSX) source is included with the plugin in the src/ directory.

The bundles are built with @wordpress/scripts and @woocommerce/dependency-extraction-webpack-plugin. To rebuild them, run the following from the src/ directory (requires Node.js and npm):

npm install
npm run build

Full build instructions are in src/BUILD.md.

Bundled third-party libraries

This plugin bundles the following minified third-party library. Its human-readable, non-minified source is publicly available from the linked upstream project, and the link is also included in the file headers.

  • Datetimepicker for Bootstrap, version 3.1.3, by Jonathan Peterson (Eonasdan), MIT License. Files: assets/js/datetimepicker/bootstrap-datetimepicker.min.js and bootstrap-datetimepicker.min.css. Used for the pickup date/time selector on the courier manifest screen. Source: https://github.com/Eonasdan/bootstrap-datetimepicker

Installation

  1. Upload the plugin folder to /wp-content/plugins/, or install from the WordPress Plugins screen.
  2. Make sure WooCommerce is active.
  3. Activate Pasts Courier & Locker.
  4. Go to WooCommerce > Settings > Shipping > Pasts Courier & Locker.
  5. Enter API credentials and sender information.
  6. Configure shipping methods, pricing, and other settings and save changes.
  7. Go to WooCommerce > Settings > Shipping > Shipping zones.
  8. Add the Pasts courier delivery shipping method to the necessary shipping zones.
  9. Test the checkout.

FAQ

Where to get API credentials?

Reach out to Latvia Post directly for API credentials.

Where do I configure API credentials?

Go to WooCommerce > Settings > Shipping > Pasts Courier & Locker and fill in your API key and sender details.

Is WooCommerce required?

Yes. This plugin extends WooCommerce shipping and requires WooCommerce to be installed and active.

Can I print labels and manifests from WooCommerce?

Yes. Labels and manifests can be generated from the plugin order management workflow in wp-admin.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Pasts Courier & Locker” is open source software. The following people have contributed to this plugin.

Contributors

“Pasts Courier & Locker” has been translated into 1 locale. Thank you to the translators for their contributions.

Translate “Pasts Courier & Locker” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.5.3

  • Renamed the plugin to Pasts Courier & Locker across the plugin name, shipping method title, and admin manifest screen.
  • Updated the plugin description and build documentation to reflect the new name.

1.5.2

  • Improved courier pickup request modal with pickup date and time interval fields.
  • Added frontend and backend validation for courier pickup date and time values.
  • Added dedicated courier call logs in the debug section with masked API key data and 30-day retention.
  • Updated the minimum WordPress requirement to 5.3 and aligned plugin version metadata.

1.5.1

  • Improved destination country resolution for courier shipments, including EMS (international courier), with a clear error message when the country cannot be resolved.
  • Added a configurable automatic data update interval (WP-Cron) for Expresspasts classifier data.
  • Added a “Fetch Expresspasts data now” button to manually refresh countries, parcel terminals, customer service locations, and external parcel terminals without leaving the settings page.
  • Added a data update log viewer to the shipping method settings.

1.5.0

  • Security hardening and for initial release on WordPress.org.