Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

'Languages' + 'Currencies' on the left hand side


Guest

Recommended Posts

Posted

As title really.

 

I do not intend offering international shipping, so these are really needless.

 

How can I remove them from all the pages on my site?

 

Cheers

Chris

Posted

Many thanks Zilla.

 

I'm familiar with commenting in HTML but not in PHP. How can I do it? I've found the line in column_right.php:

 

{

include(DIR_WS_BOXES . 'languages.php');

include(DIR_WS_BOXES . 'currencies.php');

}

 

Can I do it sucessfully in notepad? =)

 

C

Posted
I'm familiar with commenting in HTML but not in PHP. How can I do it? I've found the line in column_right.php:

 

{

    include(DIR_WS_BOXES . 'languages.php');

    include(DIR_WS_BOXES . 'currencies.php');

  }

 

Can I do it sucessfully in notepad? =)

 

C

 

 

I came in with the same question. After a quick google search, it appears from this page on PHP basics at PHP Basics:

 

When inside PHP tags, you can add comments:

 

* /* comment */

* # comment

* // comment

 

(everything until the end of the line will be ignored in the two last cases;

in the first case, the comment can span multiple lines).

 

I think any text editor could be used that works cleanly (that is, one that doesn't add extra characters or code as would MS Word).

 

-Mocat (I know just enough to get into trouble...)

Posted

I realize the asterisk's in your example probably came from the original article but, just to avoid confusion, the leading * should not be included. So to comment out a line, you would use //, not *//.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted

Correction, with bullets removed:

 

/* comment */

# comment

// comment

 

(everything until the end of the line will be ignored in the two last cases;

in the first case, the comment can span multiple lines).

Archived

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

×
×
  • Create New...