Stripping the Languages Box in osCommerce

By | October 22, 2008

Jan asks;

I’ve googled for a solution for my problem and found your web site, so I’m wondering if you can help me. It’s about Oscommerce of course:) I’m trying to move language icons (not the full ‘languages box’) to header but so far no succes. I’ve managed to move the whole box with frame and background and so on, but I can’t strip it down to images of flags only (like you did in this example: http://www.clubosc.com/wp-content/uploads/2008/04/idea3.gif ).

Jan – it’s pretty straightforward. Assuming that you are starting from a stock languages box, all you need to do is find this code:

[php]new infoBoxHeading($info_box_contents, false, false);[/php]

and add two slashes in front of it (so php does not parse it), like so:

[php]// new infoBoxHeading($info_box_contents, false, false);[/php]

Then scroll down and find this code:

[php]$info_box_contents = array();
$info_box_contents[] = array(‘align’ => ‘center’,
‘text’ => $languages_string);

new infoBox($info_box_contents);[/php]

and change that to:

[php]echo $languages_string;[/php]

Now you should be able to see only the language icons and not the surrounding infoBox. You can now move these anywhere you want as part of your design.

I actually cover this in more depth in one of my eBooks, called “Designing osCommerce” (there is a sample chapter freely available by download). At this moment I have an excellent special offer available, see here.

Does that help? Cheers, Gary

3 thoughts on “Stripping the Languages Box in osCommerce

  1. Jan

    Thank you very much, problem solved!:)
    I see your tips are very usefull so I’m thinking to buy your book “Designing osCommerce”, but PayPal is not an option for me. Is there another way of paying?

    Regards,
    Jan

  2. Gary Post author

    Jan – there is other ways to pay, I sent you an email. Thanks, Gary

  3. I

    Thank you gary.
    I have 3 hours search and try things to find this.

Leave a Reply

Your email address will not be published.