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
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

Share this post


Link to post
Share on other sites

Is there not a recaptcha addon that is compatible with your versions of oscommerce. If not why not update to a better version like Phoenix.


REMEMBER BACKUP, BACKUP AND BACKUP

Get the latest Responsive osCommerce CE (community edition) here

It's very easy to over complicate what are simple things in life

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  

×