Package DE_EPAGES::Order::API::BasketAddress
Sets billing and shipping address in the basket
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 |
|
GetPKeyCountryByCode2
Returns primary key of Country by alternate key Code2.
Syntax |
$CountryID = GetPKeyCountryByCode2($Code2); |
Input |
|
Return |
|
LoadRootObject
Returns the root object.
Syntax |
$Object = LoadRootObject(); |
Return |
|
Transaction
Runs a code block in a transaction using the current database handle. If an error occurs, the local data cache is reset and the code block $cRollback is executed.
Syntax |
Transaction( $cCode, $cRollback ); |
Input |
|
new
Constructor
Syntax |
new( $Basket ); |
Input |
|
Return |
|
removeAddress
Deletes the address of the given type from the basket.
Syntax |
removeAddress( $AddressTypePrefix ); |
Input |
|
setAddress
Sets the address of the given address type in the basket.
Syntax |
setAddress( $hAddressData, $AddressTypePrefix ); |
Input |
|