Jump to content
Sign in to follow this  
ruden

Hook System

Recommended Posts

Hook System

Only 2.3.x.x version osCommerce

Some addons use a hook system, use for compatibility.

This is commit @haraldpdl Hooks #254

https://github.com/osCommerce/oscommerce2/pull/254/files

Install
-------

In /includes/application_top.php

Add code to the bottom of the file, before the last closing ?>
 

  require(DIR_FS_CATALOG . 'includes/classes/hooks.php');
  $OSCOM_Hooks = new hooks('shop');


In /admin/includes/application_top.php

Add code to the bottom of the file, before the last closing ?>
 

  require(DIR_FS_CATALOG . 'includes/classes/hooks.php');
  $OSCOM_Hooks = new hooks('admin');

 

Share this post


Link to post
Share on other sites

Tried to install this on 2.3.4 but application_top.php doesn't have a ?> at the end of the file and just pasting the code at the end of the file gave my page white screen syndrome. Trying to get reCAPTCHA to stop spam accounts and the addon says it needs this.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×