OrderTrackingService

This service class contains functionality related to order tracking.
All public functions are available in the Twig template renderer.

Namespace

IO\Services

Properties
Type Name Description

OrderRepositoryContract

$orderRepo

ParcelServicePresetRepositoryContract

$parcelServicePresetRepo

string

$pluginNamespace

Methods
public __construct($orderRepo, $parcelServicePresetRepo)

OrderTrackingService constructor.

Parameters

Type

Name

Description

OrderRepositoryContract

$orderRepo

ParcelServicePresetRepositoryContract

$parcelServicePresetRepo

public getTrackingURL($order, $lang):string

Get the tracking URL for a specific order

Parameters

Type

Name

Description

Order

$order

The order to get the tracking URL for

string

$lang

The desired language of the tracking URL (ISO-639-1)