ePages 6.15.1 - DE_EPAGES/ELogistics/API/Object/ShippingMethodELogistics.pm

Package DE_EPAGES::ELogistics::API::Object::ShippingMethodELogistics

Shipping method for shipping price calculation for #PackageName

Base
DE_EPAGES::ShippingTypes::API::Object::ShippingMethodWeightOfBasket

Functions

canAddToBasket
usableAtStorefront

canAddToBasket

Tests if a shipping method can be added to the basket with the country. Overrides function

Syntax
if ($ShippingMethod->canAddToBasket($hVars));
Input
$hVars (ref.hash)
  • CurrencyID - alpha currency code (ISO 4217) - char(3)
  • TaxModel - gross or net price - int
Return
$canAddToBasket (boolean)
true if shipping method can be used for the given currency

usableAtStorefront

Tests if the shipping method is usable in the storefront. overwrites DE_EPAGES::Shipping::API::Object::ShippingMethod.usableAtStorefront

Syntax
$Usable = $ShippingMethod->usableAtStorefront();
Input
---
Return
$Usable (boolean)
true if shipping method is usable in the storefront