Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Hi! I want to find out if it's possible to insert an infobox in an already existing .html page, and if yes can you please tell me how? I am new to this and maybe I missed it out. Many thanks!

Posted

If by 'an already existing .html page' you mean a standard osCommerce install, then sure it's possible.

 

You need to modify the following file(s):

<install directory>/includes/column_left.php

- or -

<install directory>/includes/column_right.php

 

depending on where you want the new box to appear.

 

Simply add the line

require(DIR_WS_BOXES . 'mycode.php');

 

in the appropriate place, substituting the name of your new infobox code with the mycode.php as needed.

 

If you're using some template system, such as STS, then it's still possible, although adding the new code would be a little different. If you could clarify what you mean I might be able to help a little more.

 

If you need any other help, feel free to contact me.

 

Dave

Posted
If by 'an already existing .html page' you mean a standard osCommerce install, then sure it's possible.

 

You need to modify the following file(s):

<install directory>/includes/column_left.php

- or -

<install directory>/includes/column_right.php

 

depending on where you want the new box to appear.

 

Simply add the line

require(DIR_WS_BOXES . 'mycode.php');

 

in the appropriate place, substituting the name of your new infobox code with the mycode.php as needed.

 

If you're using some template system, such as STS, then it's still possible, although adding the new code would be a little different. If you could clarify what you mean I might be able to help a little more.

 

If you need any other help, feel free to contact me.

 

Dave

\

 

 

 

Tanks Dave, but, what I meant with 'an already existing .html page' was not a standard osCommerce install. My website was almoust finished when I discovered osCommerce, and I didn't want to lose all this work. Actually what I intend to do is to put an infobox on all previous pages of my site and also to insert an addtocart button for every product in their original pages. I'm not sure that's even possible. I should also specify that I'm using STSv4.5.8 with oscommerce-2.2rc1.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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