ePages 7.48.0 - DE_EPAGES/ShoppingList/Hooks/Shop.pm

Package DE_EPAGES::ShoppingList::Hooks::Shop

interface for Shop

Functions

OnAfterSaveRegistration
OnDeleteShop
OnRegisterInitialScriptTags

OnAfterSaveRegistration

Adds the product from the base64 encoded parameter LastViewActionParameters to te users shopping list (Hook UI_AfterSaveRegistration)

Syntax
OnAfterSaveRegistration( $hParams );
Input
$hParams (ref.hash.*)
hook arguments, used keys are
  • Servlet - servlet
  • User - user object
  • Customer - customer object

OnDeleteShop

Deletes all shopping lists of a shop when the shop is deleted.

Syntax
OnDeleteShop($hParams);
Input
$hParams (ref.hash.*)
primary key of object Shop, key is
  • Object

OnRegisterInitialScriptTags

Adds the AddToWishlist script tag to the list of script tags that should be registered upon creation of a Unity shop

Syntax
OnRegisterInitialScriptTags($hParams);
Input
$hParams (ref.hash.*)
hook parameter
  • Shop - the current Shop - object
  • ScriptTagUrls - list of scrip tag URLs - ref.array