ePages 7.26.0 - DE_EPAGES/Content/Hooks/Shop.pm

Package DE_EPAGES::Content::Hooks::Shop

create default shop

Functions

OnAfterUpdateShop
OnBeforeCreateUnityShop
OnInsertShop
OnInsertShopFeature

OnAfterUpdateShop

if shop is opened, then update template types (Hook OBJ_AfterUpdateShop)

Syntax
OnAfterUpdateShop( $hParams );
Input
$hParams (ref.hash.*)
primary key of tax class, key is
  • Object - shop object - object
  • ObjectID - shop object id - int
  • Values - updated values - ref.hash
  • LanguageID - values updated of this language - int

OnBeforeCreateUnityShop

Triggered by the hook API_BeforeCreateUnityShop. Initializes the fist steps.

Syntax
OnBeforeCreateUnityShop( $hParams );
Input
$hParams
hook parameters
  • Object - shop - object
  • Values - new shop values - ref.hash
  • Content - content to patch to the unity API - ref.hash

OnInsertShop

Imports default pages (StartPage, Imprint, TermsAndConditions, CustomerInformationshop) into a new shop. (Hook OBJ_InsertShop)

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

OnInsertShopFeature

Triggered by the hook API_InsertShopFeature. Imports default legal pages (Imprint, TermsAndConditions, PrivacyPolicy CustomerInformations, ShippingInformation) into a new Unity shop if the feature 'Unity' is set.

Syntax
OnInsertShopFeature( $hParams );
Input
$hParams
hook parameters
  • ShopID - shop id - int
  • FeatureID - feature id - int