ePages 7.27.0 - DE_EPAGES/Order/Hooks/Style.pm

Package DE_EPAGES::Order::Hooks::Style

Additional hook function for AfterUpdateCustomizableButtons hook.

Functions

OnBeforeUpdateStyle
OnGetStyleURL
OnRemoveObsoleteCSS
OnWriteCSS

OnBeforeUpdateStyle

Triggered by hook OnBeforeImportObject. Sets the customizable basket button settings to the customizable basket settings. This are the default basket button values.

Syntax
OnBeforeUpdateStyle( $hParams );
Input
$hParams (ref.hash.*)
hook arguments, used keys are
  • Object - style object
  • Values - attributes

OnGetStyleURL

Triggered by hook API_OnGetStyleURL. Creates the possibility to alter the SF style URL. Here, we're it replacing with the OrderProcessURL if we're in the multi-step checkout.

Syntax
OnGetStyleURL($hParams);
Input
$hParams (ref.hash.*)
hook arguments, used keys are
  • Object - style object
  • Values - attributes

OnRemoveObsoleteCSS

Triggered by hook API_OnRemoveObsoleteCSS. Here, we're removing all obsolete OrderProcessStyle.css files.

Syntax
OnRemoveObsoleteCSS($hParams);
Input
$hParams (ref.hash.*)
hook arguments, used keys are
  • Object - style object

OnWriteCSS

Triggered by hook API_OnWriteCSS. Here, we're writing the OrderProcessStyle.css file.

Syntax
OnWriteCSS($hParams);
Input
$hParams (ref.hash.*)
hook arguments, used keys are
  • Object - style object
  • Vars - TLE vars hash