Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

how to add boxes to index.html


atech

Recommended Posts

Hi,

 

If you mean 'infoboxes' then simply edit your column_left.php or column_right.php files (catalog/includes/)

 

To add best sellers in to the left, add this line:

 

include(DIR_WS_BOXES . 'best_sellers.php');

 

 

Cheers

Link to comment
Share on other sites

Hi,

 

 

what i want to do is, lets say i have a html file called test.html and i wanted to add the best seller box to the test.html so all that will on on the test.html file will be the best seller box, what code would i use to do that.

Link to comment
Share on other sites

It wouldnt be possible becuase the best sellers is generated from PHP code...

 

However, there is a contribution that will allow you to do this using a seperate PHP function to translate the data for you to put on your HTML

 

Warren

Link to comment
Share on other sites

Not sure if you can 'include' the best_sellers.php file in to an HTML file (only works in the OSC environment?).

 

To pull one file into another file (HTML) you can use SSI (server side includes).

 

To use SSI you will need to rename the HTML file to .SHTML, then in the code use something like:

 

<?PHP

include('/path/to/file.php');

?>

 

or

 

<!-- #include virtual="/path/to/file.html" -->

 

Cheers

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...