Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Hook System


ruden

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');

 

Link to comment
Share on other sites

  • 4 months later...

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.

Link to comment
Share on other sites

  • 3 months later...
On 5/14/2020 at 11:16 PM, FlagShipper said:

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.

I have exactly the same (not that I miss the ?>, but white screen for shop enrty. Admin part does not present a white screen though..)

 

Edited by johnwoo
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...