Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

quick question! getting rid of extra infoboxes..


pinkstarsunshine

Recommended Posts

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

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

// 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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...