Package DE_EPAGES::Order::API::Basket
This package provides the main basket functions.
@EXPORT_OK |
Functions
CheckBasketAddress
Checks if all required address data has been entered according to the particular registration set (non-member or shipping address). Adds a form error for each input field that is not correctly filled in. Used at storefront and from webservice.
Syntax |
my $hAddress = CheckBasketAddress($Form, $Basket, $AddressType, $UsesShipping); |
Input |
|
Return |
|
CreateBasket
Creates a basket for a user and shop.
Syntax |
$Basket = CreateBasket($hInfo); |
Input |
|
Return |
|
GetBasket
Creates a basket for a user if the basket does not exist
else it returns the existing basket.
Syntax |
$Basket = GetBasket($User, $Shop, $hInfo); |
Input |
|
Return |
|
GetExistingBasket
Gets a basket for a user in a shop if the basket exists else it returns 'undef'.
Syntax |
$Basket = GetExistingBasket($User, $Shop, $hInfo); |
Input |
|
Return |
|
IsFiscalCodeRequired
returns true if exception for Italy EPG-21131 is true
Syntax |
$required = IsFiscalCodeRequired( $Basket, $AddressType, $BasketCountryID ); |
Input |
|
Return |
|