Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to localised invoice with fields from ...


thedream

Recommended Posts

Hi there.

 

I am trying to localize the invoice adding fields like the date of orders, etc, but I don't know how to get back the field like "TABLE_HEADING_DATE_PURCHASED", where it's present in the orders.php file.

 

I have tried the include() function and require(), but it seems to be in conflict with a database query.

 

How do I link this?

 

 

:'(

osCommerce 2.2 MS2 in 6 languages

TVA Intracomm

Numbers of visitors online

Who's online Enhancement

....

Link to comment
Share on other sites

I have found the solution:

 

to get back the value of a field from the localised version, try this:

 

For example, I have ad the following at the beginning of the file /admin/invoice.php:

require(DIR_WS_LANGUAGES . '/' . $language . '/' . 'orders.php');

 

to get the field "

TABLE_HEADING_DATE_PURCHASED

" translated.

osCommerce 2.2 MS2 in 6 languages

TVA Intracomm

Numbers of visitors online

Who's online Enhancement

....

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...