Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

This module enables you to define custom shipping carriers and configure their unique URL patterns. When a tracking number is entered for an order, the module uses these patterns to generate direct tracking links for the customer.

The Commerce Shipping Carrier module is a simple module that allows you to add your own shipping carriers and configure the URL patterns to create tracking links similar to what was offered in the simple_package_tracking module for D7. This helps especially where flat rate shipping methods don't support tracking urls.

Installation

  1. Install the module.
  2. Go to Configuration >> Shipping >> Carriers, or @ /admin/commerce/config/shipping_carriers to create a carrier.
  3. In the URL pattern, Use [tracking_code] where the tracking number should appear in the URL for that specific carrier.

The carriers you create will be available to select from when you create shipments for an order. They will take the tracking number you provide, and format the number into a tracking link.

You can also add {{ shipment_entity.shipping_carrier.entity.label }} to the commerce-shipment-confirmation.html.twig template file in a custom module to display the shipping carrier in the shipping confirmation email.

Or something like this:

{% if shipment_entity.shipping_carrier.target_id is not null %}
  'Shipping carrier:'
  {{ shipment_entity.shipping_carrier.entity.label }}
{% endif %}

Activity

Total releases
1
First release
Jan 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Release date
1.0.0-alpha3 Pre-release Jan 27, 2025