Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Placing an infobox in the index.shtml front page.


Guest

Recommended Posts

I am having problems inserting infoboxes on the fron page of the site. The site has shtml pages and a link to the shop which is under /shop/ directory.

the shop is working and the static pages are working however i am trying to add an infobox from osCommerce like this:

<?PHP include('/shop/includes/boxes/tell_a_friend.php'); ?>

and it just does not show anything - not even an error.

 

any ideas? has anyone already tried this?

 

Any help will be appreciated.

Link to comment
Share on other sites

Most oscommerce already have tell a friend, either in the right or left column, that appears whlie a product is selected

that includes/columnsright or left

If you want to create a new bow, click on the wiki link below

Link to comment
Share on other sites

I am trying to use the already existing tell a friend box from osCommerce and embed it into a static shtml file like index.shtml.

 

any help is appreciated.

Link to comment
Share on other sites

<?PHP include('/shop/includes/boxes/tell_a_friend.php'); ?>

This is in the wrong context. Note that tell_a_friend.php requires the box class. In order to make this work, you will have to include at least application_top.php. Unfortunately, to get application_top.php to work, you will have to find a way to get its includes to work. Perhaps you will be able to add shop to PHP's include_path?

 

The problem is that it will be looking in (for example) includes/classes/boxes.php when the file is actually in shop/includes/classes/boxes.php. I guess that you might be able to create a new configure.php in an includes subdirectory of your root directory; i.e. in the same directory in which shop appears, also create an includes directory with configure.php in it. In that configure.php, you would

define('DIR_WS_INCLUDES', 'shop/includes/');

rather than includes/. There might have to be other changes to get this to work. Post back and let us know.

 

Hth,

Matt

 

P.S. If you could move your file under the shop directory, it would make this a lot easier.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...