ePages 7.1.0 - DE_EPAGES/Shipping/API/Tools.pm

Package DE_EPAGES::Shipping::API::Tools

This module includes some tools ( useful ) functions

@EXPORT_OK
GetShopFromTLE
IsFeatureAvailable
SetLogoToShippingMethod
SetLinkShippingProviderMethod

Functions

GetShopFromTLE
IsFeatureAvailable
SetLinkShippingProviderMethod
SetLogoToShippingMethod

GetShopFromTLE

xxx

Syntax
GetShopFromTLE($Processor)
Input
$Processor (object)
tle processor
Return
$Shop (object)
The associated shop to the TLE call

IsFeatureAvailable

Checks the feature status

Syntax
IsFeatureAvailable($Shop, $Class)
Input
$Shop (object)
shipping method object
$Class (object)
shipping method object
Return
$IsFeatureAvailable (string)
the current feature

SetLinkShippingProviderMethod

Once we have a ShippingMethod and a ShippingProviderMethod the last step is link the second to the first ...

Syntax
SetLinkShippingProviderMethod( $ShippingMethod, $FulfillmentMethod ) ;
Input
$ShippingMethod
(object)
The Servlet object for the request
$ProviderMethod
(object)
The Servlet object for the request

SetLogoToShippingMethod

If the logistic has a logo file like <STORE>/BO/icons/logistics/<LOGISTIC>.png then this image file is assigned as the default logo for the new ShippingMethod

Syntax
SetLogoToShippingMethod( $ShippingMethod, $FulfillmentMethod ) ;
Input
$ShippingMethod
(object)
The new ShippingMethod
$FulfillmentMethod
(object)
The logistic linked to the shipping