ePages 7.25.0 - DE_EPAGES/ExternalShipping/Hooks/Address.pm

Package DE_EPAGES::ExternalShipping::Hooks::Address

Delete the PickUp Addresses from the User's Address folder

Functions

OnViewClassicalCheckoutAddress
OnViewMultiCheckoutAddress
_deleteAddresses

OnViewClassicalCheckoutAddress

Triggered by hook UI_ViewClasicalCheckoutAddress. Delete all the User's PickUp Addresses from the User's Address folder. It is necessary to prevent the uncontrolled addition of Pickup addresses from a user of a PickUp service as PointRelais on Chronopost cartridge or others. That behaviour could produce errors.

Syntax
OnViewClassicalCheckoutAddress($Servlet);
Input
$Servlet

OnViewMultiCheckoutAddress

Triggered by hook UI_ViewMultiCheckoutAddress. Delete all the User's PickUp Addresses from the User's Address folder. It is necessary to prevent the uncontrolled addition of Pickup addresses from a user of a PickUp service as PointRelais on Chronopost cartridge or others. That behaviour could produce errors.

Syntax
OnViewMultiCheckoutAddress($Servlet);
Input
$Servlet

_deleteAddresses

Called by OnViewMultiCheckoutAddress and OnViewClassicalCheckoutAddress. Delete all the User's PickUp Addresses from the User's Address folder.

Syntax
_deleteAddresses($Addresses);
Input
$Addresses (Array of user's addresses.)
array