atech Posted May 5, 2003 Share Posted May 5, 2003 Hello, how do i go about adding any box to a page, so lets say i want to add the box "best seller" to a page how would u do that. Thank You! Link to comment Share on other sites More sharing options...
slackbladder Posted May 5, 2003 Share Posted May 5, 2003 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 More sharing options...
atech Posted May 5, 2003 Author Share Posted May 5, 2003 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 More sharing options...
Waza04 Posted May 5, 2003 Share Posted May 5, 2003 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 More sharing options...
slackbladder Posted May 5, 2003 Share Posted May 5, 2003 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.