Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Categories Navbar Module - Phoenix v1.0.6.0


GetSirius

Recommended Posts

Hello,

Hope this is the proper place to ask, I did not find a support topic for Categories Navbar Module.

Just installed this in Phoenix v1.0.6.0 (php 7.3.18) and when installed, entire shopping cart goes blank. Dashboard is fine, uninstalled module and shopping cart is back. I found that when uploading, the instructions call for files to be placed in includes/languages/english/modules/navbar_modules which does not exist, only includes/languages/english/modules/navbar. Also, includes/modules/navbar_modules where only includes/modules/navbar exists. Tried making the new folders, app was not there to be installed.  

Any help?

Thank you, Chuck

Edited by GetSirius
Link to comment
Share on other sites

40 minutes ago, GetSirius said:

entire shopping cart goes blank.

Also, this usually means that there is an error.  This error might be logged somewhere.  And knowing what the error was would be helpful. 

You'd have to put the files in navbar not navbar_modules. 

Always back up before making changes.

Link to comment
Share on other sites

Thank you ecartz. Found in error_log: 
PHP Warning:  require(includes/modules/navbar_modules/templates/tpl_nb_categories.php): failed to open stream: No such file or directory in /home/ice/public_html/shopping/includes/modules/navbar/nb_categories.php on line 68

Changed line 68 to:
  require('includes/modules/navbar/templates/tpl_nb_categories.php');

Appears to be working!

Link to comment
Share on other sites

You might want to change lines 67-71 to

      $tpl_data = ['group' => $this->group, 'file' => __FILE__];
      include 'includes/modules/block_template.php';

Which happens to be robust in the face of name changes as well as forwardly compatible with switchable templates.  See https://github.com/gburton/CE-Phoenix/commit/e8280d9fdf6364c01484fb5f292adf2511bcefbb#diff-da2a69f7f229fdc1ad483c93b286d7f2 for examples. 

Always back up before making changes.

Link to comment
Share on other sites

  • 8 months later...

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