sigmarosie Posted December 28, 2005 Share Posted December 28, 2005 How do I go about deleting boxes such as the choice of currencies, languages, and information. I thought that there was trick like adding a / somewhere to make the boxes disappear. I have had to install a new version of oscommerce so I am trying to get the store back up to where it was before. Or am I better to just delete the files if I won't be using them? Thanks! Link to comment Share on other sites More sharing options...
tina_boots Posted December 28, 2005 Share Posted December 28, 2005 How do I go about deleting boxes such as the choice of currencies, languages, and information. I thought that there was trick like adding a / somewhere to make the boxes disappear. I have had to install a new version of oscommerce so I am trying to get the store back up to where it was before. Or am I better to just delete the files if I won't be using them? Thanks! Removing the boxes is fairly simple and the best approach is to comment them out in the column_left.php or column_right.php, where ever the box in question happens to reside. That way if you ever want to add them back, simply uncomment the code and you are all set. Be well, Tina If you're not having fun you're not doing it right Teach a person to fish rather than give them a loaf of bread or however that saying goes. Link to comment Share on other sites More sharing options...
Guest Posted December 28, 2005 Share Posted December 28, 2005 Don't delete anything unless it's absolutely necessary. You may change your mind months from now and the code is gone. For example, with regard to the currencies & languages box....go into catalog/includes/column_right.php You'll see this: if (substr(basename($PHP_SELF), 0, 8) != 'checkout') { include(DIR_WS_BOXES . 'languages.php'); include(DIR_WS_BOXES . 'currencies.php'); } Put two forward slashes in front of those include commands to kill the boxes from appearing, so it now looks like this: if (substr(basename($PHP_SELF), 0, 8) != 'checkout') { //include(DIR_WS_BOXES . 'languages.php'); //include(DIR_WS_BOXES . 'currencies.php'); } All done. Your boxes are gone. Do the same in column_left.php for anything sitting there you don't want. Andrea Link to comment Share on other sites More sharing options...
sigmarosie Posted December 28, 2005 Author Share Posted December 28, 2005 thank you both so much- I knew there was a way to do it with the backslashes I just couldn't remember how. I am going to be sure to write that down so I don't forget! Thanks again! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.