ePages 7.38.0 - DE_EPAGES/Shop/Hooks/Shop.pm

Package DE_EPAGES::Shop::Hooks::Shop

Imports default shop data into a new shop when it is created.

Functions

GetShopFeatureCurrentValue
GetShopFeatureMaxValue
OnAfterUpdateShop
OnBeforeCreateUnityShop
OnBeforePatchUnityShop
OnInsertShop

GetShopFeatureCurrentValue

Dynami Values of current features i.e. WebServiceFetures with date reset (Hook OBJ_GetShopFeatureCurrentValue)

Syntax
GetShopFeatureCurrentValue( $hParams );
Input
$hParams (ref.hash.*)
hook parameters
  • Object - shop - object
  • Name - feature name - string
  • FeatureID - feature id - integer
Return
$hParams (ref.hash.*)
hook parameters
  • Value - current value - integer

GetShopFeatureMaxValue

Returns the max value of a features (Hook OBJ_GetShopFeatureMaxValue)

Syntax
GetShopFeatureMaxValue( $hParams );
Input
$hParams (ref.hash.*)
hook parameters
  • Object - shop - object
  • Name - feature name - string
Return
$hParams (ref.hash.*)
hook parameters
  • Value - current value - integer

OnAfterUpdateShop

if shop is updated, check if all next steps are completed

Syntax
OnAfterUpdateShop( $hParams );
Input
$hParams (ref.hash.*)
hook parameters
  • 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_OnBeforeCreateUnityShop. Sets the shop content for the shop creation on the Unity database.

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

OnBeforePatchUnityShop

Triggered by the hook API_BeforePatchUnityShop. Sets the shop content that should be patched to the Unity database.

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

OnInsertShop

Imports default shop data 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