rezdwan Posted January 1, 2005 Posted January 1, 2005 Hello all! Is it possible for me to add the What's New, Bestsellers and Specials boxes to an html page? What I want to do is to add these boxes to certain parts of my website. I am not sure which code to pick out and/or modify from osCommerce. My other concern is the link to products in these boxes. Say if a person is on my website (other than the osCommerce), and he sees the What's New product and clicks on it, will there be a problem? Rightfully, he should be brought to the osCommerce page with information on the product that he clicked on and not an error (or something to that effect). Please guide me along or refer me to some other relevant topic. All help is greatly appreciated. Thank You
Guest Posted January 1, 2005 Posted January 1, 2005 You are better to add parts of your website to osCommerce - you can use a page such as privacy.php as a template - your content can go in the corresponding language file. Search our Contributions Section for addons related to your needs. Matti
rezdwan Posted January 1, 2005 Author Posted January 1, 2005 You are better to add parts of your website to osCommerce - you can use a page such as privacy.php as a template - your content can go in the corresponding language file. Search our Contributions Section for addons related to your needs. Matti <{POST_SNAPBACK}> That's an alternative but not what I had planned to do. I want to keep osCommerce separated and does not wish to modify it too much. Too much modification (especially those that touches the core files) is bad for upgrading. I hope you understand what I mean. I just want to be able to pull the abovementioned boxes into my html page. It's like advertisement for my own products, you see. Can it be done?
♥Vger Posted January 1, 2005 Posted January 1, 2005 All you need to do is to start the inclusion with an opening php tag and end with a closing php tag in the html page. Vger
rezdwan Posted January 1, 2005 Author Posted January 1, 2005 All you need to do is to start the inclusion with an opening php tag and end with a closing php tag in the html page. Vger <{POST_SNAPBACK}> I'm sorry but I am very new to this and it will help a lot if you could give me an example to follow. Could you maybe use the What's New box as an example? Which code do I add to my html page? Will the following codes do? <?php require(DIR_WS_BOXES . 'whats_new.php'); ?> I've tried this but it doesn't work. Thank You
Guest Posted January 2, 2005 Posted January 2, 2005 It is far simpler to do what I suggested - you must use the .php extension on your file. You also need to call application_top.php etc. Adding pages like this does not touch any core files other than filenames.php Matti
Recommended Posts
Archived
This topic is now archived and is closed to further replies.