98stratos Posted July 26, 2017 Share Posted July 26, 2017 Can someone please assist me with this? I know that within the index file there are two placements of the code "<?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?>" What I want is for the home page not to show the "new products" that are within the store, I want it to show the "about us" page so the customer can read about us and our products before viewing the products we have listed. I have commented out the lines of code specified above and it does remove the "new products", but it also removes the "contentContainer with the white background. Am I not able to just replace one with another? Any assistance would be greatly appreciated. Link to comment Share on other sites More sharing options...
ArtcoInc Posted July 26, 2017 Share Posted July 26, 2017 @98stratos What version of osCommerce are you using? Malcolm Link to comment Share on other sites More sharing options...
98stratos Posted July 26, 2017 Author Share Posted July 26, 2017 2.3.1 Link to comment Share on other sites More sharing options...
ArtcoInc Posted July 26, 2017 Share Posted July 26, 2017 @98stratos Is this a new store, or an existing one? If this a live existing store, you would be better spending your time moving it to the latest responsive version of osCommerce. When your host upgrades their version of PHP, your store will crash. Malcolm Link to comment Share on other sites More sharing options...
98stratos Posted July 26, 2017 Author Share Posted July 26, 2017 this is a new store...... Link to comment Share on other sites More sharing options...
beerbee Posted July 26, 2017 Share Posted July 26, 2017 Hi Patrick, well not so easy, as the new_products is meant as module to include or not - and about_us is a stand alone page. What you could try is to copy the language defines that are used in about_us to the language file for index.php. Then you could try to add in place of the the include <div class="contentContainer"> <div class="contentText"> echo TEXT_INFORMATION; (or whatever is the defined text for about_us) </div></div> That would be the most primitive way of hacking it in. Take a look at oscommerce bootstrap edge, there are content modules which can be switched on and off. And if its a new store don't waste your time with outdated versions, start with BS edge! Best regards Christoph Link to comment Share on other sites More sharing options...
98stratos Posted July 27, 2017 Author Share Posted July 27, 2017 Thanks...will try and let you know if it works or not. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.