ePages 6.17.35 - DE_EPAGES/ShippingTypes/API/Object/ShippingMethodFree.pm

Package DE_EPAGES::ShippingTypes::API::Object::ShippingMethodFree

This module is object package for free shipping methods.

Base
DE_EPAGES::Order::API::Object::ContainerShippingMethod

Functions

hasSettings
lineItem
price

hasSettings

Returns true if the shipping method has any settings, i.e. if the tab page "Settings" should be displayed. Free shipping methods normally don't have settings, except if they have a shipping fulfilment method.

Syntax
$HasSettings = $Object->hasSettings;
Return
$HasSettings (boolean)
true if the shipping method has any settings

lineItem

Returns lineItem for container, adds LineItemPrice = 0.

Syntax
my $hInfo = $ShippingMethod->lineItem($Container);
Input
$Container (object)
container
Return
$hInfo (ref.hash)
line item info

price

Returns the shipping price by the given requirements. Here the shipping price is always 0.

Syntax
$ShippingPrice = $Object->price( $hVars );
Input
$hVars (ref.hash)
  • CurrencyID - alpha currency code (ISO 4217) - char(3)
  • TaxModel - gross or net price - int
  • ShippingElements
    • Element - e.g. Products - object
    • Quantity - quantity of element - float
    | ref.array.hash
Return
$ShippingPrice (money)
price of shipping