ePages 7.23.0 - DE_EPAGES/USPS/API/Object/ShippingMethodUSPS.pm

Package DE_EPAGES::USPS::API::Object::ShippingMethodUSPS

Shipping method for shipping price calculation for #PackageName

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

Functions

canAddToBasket

canAddToBasket

Tests if USPS 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