Package DE_EPAGES::Colissimo::API::Tools
This package provides the Colissimo global functionality.
@EXPORT_OK |
Functions
- GetDeliveryBasketData
- GetLabelPath
- GetProductLineItemWeightInGram
- GetTransactionPath
- HasBasketChanged
- IsHomeDelivery
GetDeliveryBasketData
returns values basket required for the redirection
Syntax |
GetDeliveryBasketData( $Basket ); |
Input |
|
Return |
|
GetLabelPath
returns the path for the stored file of a shipping label
Syntax |
$Path = GetLabelPath($ShippingLabel,$FileExtension); |
Example |
my $Path = GetLabelPath($ShippingLabel,'txt'); |
Input |
|
Return |
|
GetProductLineItemWeightInGram
Converts the weight of a given ProductLineItem into gram
Syntax |
GetProductLineItemWeightInGram($LineItem); |
Example |
GetProductLineItemWeightInGram($LineItem); |
Input |
|
Return |
|
GetTransactionPath
returns the path for the exported file of a transaction
Syntax |
$Path = GetTransactionPath($Transaction, $FileExtension); |
Example |
my $Path = GetTransactionPath($Transaction, 'gif'); |
Input |
|
Return |
|
HasBasketChanged
Returns true if the calculated shipping price or weight differs from the Basket values ColissimoCalculationUsedPrice / ColissimoCalculationUsedWeight
Syntax |
HasBasketChanged( $LineItem ); |
Input |
|
Return |
|
IsHomeDelivery
Logs a structure to the communication.log.
Syntax |
IsHomeDelivery($DeliveryMode); |
Example |
IsHomeDelivery('DOM'); |
Input |
|
Return |
|