ePages 6.10 - DE_EPAGES/Order/Hooks/Shop.pm

Package DE_EPAGES::Order::Hooks::Shop

React on changing shop relevant data.

Functions

OnBeforeUpdateShop
OnFinishShopWizard
OnInsertShop
OnJSONAdvancedLinks

OnBeforeUpdateShop

OnBeforeUpdateShop is triggered, change tax matrix at baskets (tax area at lineitemcontainer and tax class at lineitems).

Syntax
OnBeforeUpdateShop( $hParams );
Input
$hParams (ref.hash.*)
hook arguments, used keys are
  • Object
  • Values - without TaxMatrix no action

OnFinishShopWizard

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

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

Creates the folders 'ProductTypes' and 'Products' when a new shop 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