* more than one in the cart.
*/
/* Default behavior check if there is enough quantity on hand and change the css
* more than one in the cart.
*/
/* Default behavior check if there is enough quantity on hand and change the css
static function default_get_dispatchable_quantity($line_item, $location, $date, $qoh) {
static function default_get_dispatchable_quantity($line_item, $location, $date, $qoh) {
- $hook_class = 'hooks_'.$ext['package'];
- if ($ext['active'] && class_exists($hook_class)) {
- $Hooks[$ext['package']] = new $hook_class;
- }
+ $hook_class = 'hooks_'.$ext['package'];
+ if ($ext['active'] && class_exists($hook_class)) {
+ $Hooks[$ext['package']] = new $hook_class;
+ }