ePages 6.14.0 - DE_EPAGES/Product/Hooks/Shop.pm

Package DE_EPAGES::Product::Hooks::Shop

removes taxclass on declared products of shop which uses removed tax class

Functions

OnBeforeUpdateShop
OnInsertShop
OnSaveNumberFormats

OnBeforeUpdateShop

changes tax classes of products if tax matrix of shop 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

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

OnSaveNumberFormats

Evaluates the forms 'SaveNumberFormats_Product' and returns its data. Form errors are not thrown directly but passed to the caller.

Syntax
OnSaveNumberFormats( $hParams );
Input
$hParams (ref.hash.*)
form values which are supplied by Form SaveNumberFormats_Product of class Shop.
  • Shop - the current Shop - DE_EPAGES::Shop::API::Object::Shop
  • Form - form object to evaluate - DE_EPAGES::Presentation::API::Form
  • Data - form values to return to caller - ref.hash