Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

question about define


ron123

Recommended Posts

Hi there, for some time I have a question and I can't find it on the internet

Can someone explain me how the communication works between files like a languagefile with a define?

 

For example, I have the next files:

\admin\invoice.php

\admin\orders.php

\admin\includes\classes\order.php

\admin\includes\languages\dutch\order.php

\admin\includes\languages\english\order.php

 

I think that I can edit the 'define' line in he orders.php under languages\dutch to my own taste. For example:

define('TABLE_HEADING_NUMERO_FACTURE', 'Invoice Number: ');

becomes:

define('TABLE_HEADING_NUMERO_FACTURE', 'Factuurnummer: ');

But than my invoice still shows 'Invoice Number' in stead of 'Factuurnummer'. Also the 'Invoice Number' (I added this on the invoice with a osC contribution) is not in my normal font, but in Times New Roman.

 

Anyone can explain this to me? How does this work? Where do I need to make changes, or what file is missing or is not correspond or communicate with an other file? Please teach me!

 

Many thanks!!

Link to comment
Share on other sites

It's likely that TABLE_HEADING_NUMERO_FACTURE is not used anywhere on the page. Unless you got this from some Addon, all of the constants in osCommerce are in English. So if admin/invoice.php uses TABLE_HEADING_INVOICE_NUMBER then your define needs to define the same constant. How defines work.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

Do you have dutch set up in the languages section of your shop admin?

 

Have you configured the contents of dutch.php in /includes/configure/languages/?

 

Can your customers select the shop language on your web site?

 

What in the default language of the users PC?

 

All these impact the language file used to populate the web site.

 

HTH

 

G

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...