Hooks (Helping Hooks)
Must be used after the end of the class, the hooks are used to get information from the client at the ordering stage, by default there are no product requirements for the SSL product group on WISECP, we can provide some information from the user in ordering stage by help of the hook.
- The name of the hook to be caught must be entered
- Priority order of hook
- The function, to be run by the hook, can be used array or callable function
Used to create product requirement.
Hook::add("addRequirementToOrderSteps",1,[ 'class' => "ExampleSSL", 'method' => "add_requirements", ]);
Used to filter the product requirement value.
Hook::add("filterRequirementToOrderSteps",1,[ 'class' => "ExampleSSL", 'method' => "filter_requirement", ]);
Used to check the product requirement value.
Hook::add("checkingRequirementToOrderSteps",1,[ 'class' => "ExampleSSL", 'method' => "checking_requirement", ]);
See the sample module files for the contents of the methods.