Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Is there possibility


Digerdoo

Recommended Posts

Yes, and infact, very easily. Just create a different header for each language you'd like and put them in the appropriate language directories. Then, in the filenames.php, just prefix the 'header.php' variable with the language directory variable, and the 'header.php' text.

 

You can get a good idea of how to do this at the top of the various php pages in the catalog when they 'require' their cooresponding language file.

-------------------------------------------------------------------------------------------------------------------------

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Link to comment
Share on other sites

Here's an example, I haven't tested it, but I think it should work.

 

define('FILENAME_HEADER', DIR_WS_LANGUAGES . $language . '/header.php');

-------------------------------------------------------------------------------------------------------------------------

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Link to comment
Share on other sites

Yes, and infact, very easily. Just create a different header for each language you'd like and put them in the appropriate language directories. Then, in the filenames.php, just prefix the 'header.php' variable with the language directory variable, and the 'header.php' text.

 

You can get a good idea of how to do this at the top of the various php pages in the catalog when they 'require' their cooresponding language file.

 

 

So i put every language page differentkind of header.php file and put this

 

define('FILENAME_HEADER','header.php');

 

in filenames.php and includes/header.php file i put

somekind of code which calling this header.php every different language.. ?

Do i put any code in original header.php in includes directory ?

 

:'(

Link to comment
Share on other sites

So i put every language page differentkind of header.php file and put this

 

  define('FILENAME_HEADER','header.php');

 

in filenames.php and includes/header.php file i put

somekind of code which calling this header.php every different language.. ?

Do i put any code in original header.php in includes directory ?

 

:'(

 

 

Yes i think is now working.. thanks for a tip :thumbsup:

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...