FoxyMop Posted June 3, 2004 Posted June 3, 2004 I've found other posts that describe how to comment out the "New Products for [month]" but they all refer to a default.php file, of which I do not have. a) Am I supposed to have a default.php file and where would it be located? ('cause I can't find it!) B) How do I remove the "New Products for [month]" and it's corresponding box from the home page? Thank you! :)
nana Posted June 3, 2004 Posted June 3, 2004 index.php toward the enf of file and i think also in the middle of file in two diffrent places if i remmember right
241 Posted June 3, 2004 Posted June 3, 2004 default.php was used in earlier versions of oscommerce and has now been replaced by index.php so follow the instructions. This box is used for more than one thing but to completely remove the box it is the new products box catalog/index.php catalog/index.php Try looking for this around line 121 <td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td> change to this <td><?php //include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td> This around line 280 (for product list) <td><?php include(DIR_WS_MODULES . FILENAME_PRODUCT_LISTING); ?></td> change to this <td><?php //include(DIR_WS_MODULES . FILENAME_PRODUCT_LISTING); ?></td> This around line 313 <td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td> change to this <td><?php //include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td> This around line 316 ( for upcoming products) <?php include(DIR_WS_MODULES . FILENAME_UPCOMING_PRODUCTS); ?> change to this <?php // include(DIR_WS_MODULES . FILENAME_UPCOMING_PRODUCTS); ?> No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes.
rajeevk Posted June 13, 2004 Posted June 13, 2004 Do not comment out the code on line 280. If you do so, you will not get any listings on your page :-) your source for custom hand-knotted rugs from Nepal. A part of family of companies.
derryadrian Posted June 13, 2004 Posted June 13, 2004 :lol: I think you should try using text editor like EditPlus /*--this's an example - not a commercial ads--*/ that has an ability to search through recursively into folder and search for specific text in many files. Paired your work environtment with /*again, it's not a commercial ads*/ diff software such as Compare It! who comparing two file easily. Those software, won't help much in categorizing tags, variable, function in *.php files. So, :lol: again... not a commerci...yea y'knaww :lol: consider use PHPEdit for this purpose. Then, working in localhost using web-trilogy Apache-PHP-MySQL or simply use PHPTriad. Don't forget to download MySQL connector in mySQL site - so just in case you need to work in Microsoft Style. And the last but not least. Zeos Database Explorer. There! I use them and feel happy with then. osCommerce is a matter of fun. [.:2s1000s12:.] "Did I had the dream, or did the dream had me?"
feuerbach Posted June 16, 2004 Posted June 16, 2004 the "new products for" it's an useful table, but in my opinion 9 products listed are too much. how to remove the last line and display only 6 products? tnx
batteryrat Posted June 16, 2004 Posted June 16, 2004 admin images set the new for two what ever you like Vertical Climb watch me loose grip an plumit!!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.