Jump to content
Latest News: (loading..)
Rwe

Holiday Promotional Message 2.0 BS

Recommended Posts

@raiwa

How can this addon be placed above the header navbar?

thanks in advance


:heart: osCommerce

I am using osCommerce version 2.3.4.1 CE  Frozen

 

Share this post


Link to post
Share on other sites

Hello @Rwe,

Please post your question in the official support thread for this contribution:

 

Your question is also not specific for this add-on. It is about all header modules.

The header modules can't be placed before the navbar in a standard store because the order of the content groups is defined in template_top.php and header.php

However you could create a new group which contains only the holiday message module and place it before the navbar.

Have a look in template_top.php and header.php to see how it is made.

You would need to add the call for the new group ("before_navbar" is just an example, you can call it as you wish) :

  <?php echo $oscTemplate->getContent('before_navbar'); ?>

in template_top.php before:

  <?php echo $oscTemplate->getContent('navigation'); ?>

Then create a directory called "before_navbar" in includes/modules/content/

Then you would need to move the holiday module into this directory and change the coding  in the holiday message module to fit the class name etc.

Edited by raiwa

Share this post


Link to post
Share on other sites

@raiwa

Thanks for your explaination,

I made it by moving the files to the  modules/content/navigation folder and make the nescessary changes in the files.(  _HEADER_  to _NAVBAR  etc. )

i did not change  template_top.


:heart: osCommerce

I am using osCommerce version 2.3.4.1 CE  Frozen

 

Share this post


Link to post
Share on other sites

Update uploaded:

Holiday-Promotional Message 2.1 BS

Changes version 2.1:
- added tep_db_input function to text input fields to allow sql sensitive special characters like single quote (apostrophe)

 

Share this post


Link to post
Share on other sites

Update uploaded:

Holiday-Promotional Message 2.1 BS

Changes version 2.1.1:
- reverted wrong fix introduced in 2.1.
- applied correct fix in admin/modules_content.php to allow sql sensitive special characters like single quote (apostrophe) in Text definitions.

 

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

×