Trunkrs Same-Day Delivery v2

Beschrijving

Trunkrs Same-Day Delivery v2 connects your store to the Trunkrs Shipping Portal. Your customers see live Trunkrs delivery options at checkout, orders are announced to Trunkrs automatically, and you print labels straight from the WooCommerce admin.

This is the second generation of the Trunkrs plugin, rebuilt from the ground up. It is a separate plugin from the original “Trunkrs for WooCommerce”, which remains available. See the FAQ on how to switch.

Main features

  • One-click connection with your Trunkrs account, no API keys to copy.
  • Live shipping rates at checkout, based on cart value, country and postal code, straight from your Trunkrs pricing.
  • Delivery date picker with available timeslots, for both the classic and the block-based checkout.
  • Automatic announcements: orders are announced to Trunkrs when they are placed or reach a paid status. Cancelling or restoring an order is handled for you.
  • Labels: print PDF labels per order, or in bulk as one PDF from the order list.
  • Live shipment status: Trunkrs pushes shipment updates to your store, shown as a status badge in the order list and optionally mapped to WooCommerce order statuses.
  • Track & Trace links in order emails and in the customer’s My Account page.
  • Order routing rules: announce only the orders that match your conditions, such as country, cart value, product category or order status.
  • Service levels for same-day delivery, fresh food and frozen food, limited to what your Trunkrs plan includes. Set them per product or per category; a mixed order ships under the strictest level any of its products needs.
  • Compatible with HPOS, WooCommerce Subscriptions, WooCommerce Shipment Tracking, and the Order Delivery Date (Tyche) and YITH delivery date plugins.

Requirements

  • Een Trunkrs account. Nog geen klant? Bezoek trunkrs.nl om te beginnen.
  • WordPress 6.5 or higher and WooCommerce 9.0 or higher.
  • PHP 8.1 or higher.

Source code and build

This plugin is developed and maintained by Trunkrs B.V.

The JavaScript and CSS in the build/ folder are compiled from the human-readable TypeScript, React and SCSS source in the assets/ folder, which ships with the plugin together with the build configuration (package.json, yarn.lock, webpack.config.js, tsconfig.json, tsconfig.base.json).

To rebuild the compiled files:

  1. Node.js 20 en Yarn 1 installeren.
  2. Run yarn install --frozen-lockfile in the plugin folder.
  3. Run yarn build. This runs @wordpress/scripts (webpack) and writes build/admin.js, build/checkout.js and their stylesheets.

Third-party libraries bundled in build/admin.js and build/checkout.js, all installed from npm with the versions pinned in yarn.lock: auth0-js (MIT), Formik (Apache-2.0), Yup (MIT), Axios (MIT) and clsx (MIT). The embedded captcha module of auth0-js is replaced by a stub at build time (assets/shared/auth0-captcha-stub.js), so the plugin never loads captcha scripts from third-party servers.

External services

This plugin connects to services operated by Trunkrs to provide delivery. It does not work without a Trunkrs account.

  • Trunkrs verzending portal (shipping.trunkrs.app, portal.trunkrs.app): gebruikt om je winkel te verbinden, verzendtarieven op te halen bij het afrekenen en instellingen updates te ontvangen. Verzonden: de waarde van de winkelwagen, het land van bestemming en de postcode wanneer tarieven worden aangevraagd, en de hostnaam van je winkel bij het verbinden.
  • Trunkrs API (api.trunkrs.nl): gebruikt om zendingen aan te kondigen en te annuleren, leverings tijdvakken op te halen, servicegebieden te controleren, labels te downloaden en webhooks te registreren. Verzonden wanneer een bestelling wordt aangekondigd: de naam van de ontvanger, de bedrijfsnaam, het adres, het e-mailadres en telefoonnummer, de bestelreferentie, de productnamen, aantallen en het gewicht, en de bestelnotitie van de klant.
  • Trunkrs login (trunkrs.eu.auth0.com, aangeboden door Auth0 by Okta): wordt alleen gebruikt wanneer je op “Verbinden met Trunkrs” klikt om in te loggen op je Trunkrs account. Verzonden: je login referenties, rechtstreeks naar de login pagina.
  • Trunkrs Track & Trace (parcel.trunkrs.nl): alleen gelinkt vanuit e-mails en Mijn account wanneer je Track & Trace links inschakelt. Er worden geen gegevens verzonden door de plugin.

Trunkrs terms and conditions and privacy policy. Auth0 terms of service and privacy policy.

Schermafbeeldingen

Installatie

  1. In your WordPress admin, go to Plugins > Add New, search for “Trunkrs Same-Day Delivery” and click Install Now, then Activate.
  2. Go to WooCommerce > Trunkrs and click Connect with Trunkrs.
  3. Log in with your Trunkrs account. The plugin retrieves your integration details, service level and plan automatically.
  4. Voeg de Trunkrs verzendmethode toe aan je verzendzone onder WooCommerce > Instellingen > Verzending.

FAQ

What do I need to get started?

Een Trunkrs account. Neem contact op via trunkrs.nl of neem contact op met je accountmanager voor een uitnodiging.

I use the original “Trunkrs for WooCommerce” plugin. Do I need to switch?

No. The original plugin keeps working and you can stay on it. Switch when you want the new features.

How do I switch from the original plugin?

Deactivate “Trunkrs for WooCommerce” first, then install and activate this plugin and connect your Trunkrs account again. Both plugins cannot run at the same time: while the original plugin is active, this plugin pauses itself and shows a notice. Your existing orders and shipping zones stay intact.

I installed a pre-release v2 ZIP. How do I move to this version?

Deactivate and delete the old ZIP version first, then install this plugin. If you upload this version over the old one instead, WordPress deactivates the plugin because its main file was renamed: simply activate it again.

What happens when I delete the plugin?

De instellingen, in de cache opgeslagen gegevens en logtabel worden verwijderd, en de webhooks worden bij Trunkrs uitgeschreven. Bestellingsgegevens en verzenddetails in je bestellingen worden behouden. Als de originele “Trunkrs for WooCommerce” plugin nog steeds geïnstalleerd is, worden de gedeelde instellingen behouden zodat die plugin blijft werken.

Why is the Trunkrs shipping option not showing at checkout?

Check that the plugin is connected (WooCommerce > Trunkrs), that the customer’s postal code is in the Trunkrs service area, and that the Trunkrs shipping method is added to the shipping zone.

Kan ik mijn eigen plugin voor leverdatum gebruiken?

Yes. Turn off the built-in picker in the plugin settings. Delivery dates from the Order Delivery Date (Tyche) and YITH plugins are picked up automatically. Developers can also supply a date with the trunkrs_delivery_date filter.

How do I print labels in bulk?

Select the orders in WooCommerce > Orders, open Bulk actions and choose the Trunkrs labels action. A single PDF with all labels opens.

What happens when an order is cancelled?

The Trunkrs shipment is cancelled automatically. If the order is restored from the trash, the shipment is announced again.

Beoordelingen

Er zijn geen beoordelingen voor deze plugin.

Bijdragers & ontwikkelaars

“Trunkrs Same-Day Delivery v2” is open source software. De volgende personen hebben bijgedragen aan deze plugin.

Bijdragers

“Trunkrs Same-Day Delivery v2” is vertaald in 1 locale. Dank voor de vertalers voor hun bijdragen.

Vertaal “Trunkrs Same-Day Delivery v2” in je eigen taal.

Interesse in ontwikkeling?

Bekijk de code, haal de SVN repository op, of abonneer je op het ontwikkellog via RSS.

Changelog

2.0.0

  • First release of the rebuilt Trunkrs plugin, published next to the original “Trunkrs for WooCommerce”.
  • One-click connection with the Trunkrs Shipping Portal.
  • Live shipping rates and a delivery date picker for classic and block checkout.
  • Live shipment status badges, configurable order status mapping and Track & Trace links.
  • Bulk labelafdrukken en in bulk annuleren vanuit de bestellijst.
  • Order routing rules, including re-evaluation when an order reaches a paid status.
  • Support for HPOS, WooCommerce Subscriptions, WooCommerce Shipment Tracking, Tyche and YITH delivery dates.