ePages 6.11.0 - DE_EPAGES/Customer/Hooks/Shop.pm

Package DE_EPAGES::Customer::Hooks::Shop

Changes tax class on declared products of a shop if the shops' tax matrix is changed. When a new shop is created the folders 'ProductTypes' and 'Products' are imported.

Functions

OnBeforeUpdateShop
OnFinishShopWizard
OnInsertShop
OnJSONAdvancedLinks

OnBeforeUpdateShop

Changes tax classes of customers if the shops' tax matrix was changed. (Hook OBJ_BeforeUpdateShop)

Syntax
OnBeforeUpdateShop( $hParams );
Input
$hParams (ref.hash.*)
primary key of tax class, key is
  • Object - shop - object
  • Values
    • TaxMatrix - tax matrix - object

OnFinishShopWizard

Sets the BCC email addresses for mail type CustomerWelcome on completion of the shop wizard (Hook UI_FinishShopWizard).

Syntax
OnFinishShopWizard( $hParams );
Input
$hParams (ref.hash.*)
form values which are supplied by Form ShopWizard of class Shop.
  • Shop - the current Shop - object
  • Data - form values from Shop.ShopWizard - ref.hash

OnInsertShop

Imports the folders 'ProductTypes' and 'Products' into a new shop when it is created. (Hook OBJ_InsertShop)

Syntax
OnInsertShop( $hParams );
Input
$hParams (ref.hash.*)
primary key of tax class, key is
  • Object - shop - object

OnJSONAdvancedLinks

adds a link to to advanced links section in the link picker inside the MBO (Hook OBJ_JSONAdvancedLinks)

Syntax
OnJSONAdvancedLinks( $hParams );
Input
$hParams (ref.hash.*)

  • Object - shop - object
  • Values - attribute values - ref.hash