pinkstarsunshine Posted December 13, 2003 Share Posted December 13, 2003 HI. Can anyone tell me how to get rid of the currency info box and language infobox? I really don't need them, and I'm scared to do something wrong in the php that would ruin my site. I have heard that you just *quote* them out... Does that mean you do this: // or something like this: <---- //> Exactly how do I quote this bit if code out below: if (substr(basename($PHP_SELF), 0, 8) != 'checkout') { include(DIR_WS_BOXES . 'languages.php'); include(DIR_WS_BOXES . 'currencies.php'); } Please tell how to remove them properly, thanks. And thanks to everyone that has previously helped me. Tamara Link to comment Share on other sites More sharing options...
happyyo Posted December 13, 2003 Share Posted December 13, 2003 hi there :) I just removed a few info boxes which I wont use; all you have to do is to add: // before the one you want to remove; For exemple, if you want to remove from the right column the "currencies" box, go to catalog>includes>colum_right.php you will find at the end more or less : include(DIR_WS_BOXES . 'currencies.php'); Just change it to: //include(DIR_WS_BOXES . 'currencies.php'); Save it and you will not see the currencies box. :) Link to comment Share on other sites More sharing options...
pinkstarsunshine Posted December 13, 2003 Author Share Posted December 13, 2003 Thank you very much!! :) Link to comment Share on other sites More sharing options...
Guest Posted December 13, 2003 Share Posted December 13, 2003 or you can get the contribution that let you activate/deactivate boxes through admin http://www.oscommerce.com/community/contributions,1175 Tom Link to comment Share on other sites More sharing options...
Guest Posted December 14, 2003 Share Posted December 14, 2003 // must be placed at the beginning of each line of php that you want to comment out With html, to comment out a block of text, you use <!-- text --> With php, to comment out a block of text, put /* at the start of the text you want to comment out, then close it with */ Just though you might find this helpful. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.