ePages 7.47.0 - DE_EPAGES/MediaGallery/Hooks/Shop.pm

Package DE_EPAGES::MediaGallery::Hooks::Shop

Adds the MediaGallery as a child object to the shop.

Functions

OnAfterUpdateShopFeature
OnInsertShop
OnInsertShopFeature

OnAfterUpdateShopFeature

OnAfterUpdateShopFeature is triggered, Imports MediaGallery "UnityMediaImportFiles" for Unity shop

Syntax
OnAfterUpdateShopFeature( $hParams );
Input
$hShopFeature - feature object, used keys are
  • FeatureID - feature id (ref.hash.*)
integer
  • ShopID - shop id | integer
  • MaxValue - maximum feature value | int
  • OnInsertShop

    Adds the MediaGallery as a child object to the shop. (Hook OBJ_InsertShop)

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

    • Object - shop - object

    OnInsertShopFeature

    Triggered by the hook API_InsertShopFeature. Imports MediaGallery "UnityMediaImportFiles" 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