ShippingService

This service class contains functions related to shipping profiles.
All public functions are available in the Twig template renderer.

Namespace

IO\Services

Properties
Type Name Description

Checkout

$checkout

string

$pluginNamespace

Methods
public __construct($checkout)

ShippingService constructor.

Parameters

Type

Name

Description

Checkout

$checkout

public setShippingProfileId($shippingProfileId)

Set the id of the current shipping profile

Parameters

Type

Name

Description

int

$shippingProfileId

A shipping profile id

public getMaxDeliveryDays():array

Return an array of shipping profile ids as keys and max delivery days as values