Hi Terra,
Thanks for your reply.
I have seen this part of the code inside paypal_ipn.php
$parameters['lc'] = $order->customer['country']['iso_code_2'];
and I've replaced it with:
if ( $languages_id ==1 ) // français
{
$languages_idcode = 'fr';
}
if ( $languages_id ==2 ) // english
{
$languages_idcode = 'en';
}
if ( $languages_id ==3 ) // español
{
$languages_idcode = 'es';
}
if ( $languages_id > 1 ) // if not French which is my default language
{
$parameters['lc'] = $languages_idcode;
}
But, tell me if I'm wrong, it's used only for displaying PayPal's interface in the user's language. This is not the issue I'm talking about.
My issue is that, even if both osCommerce shop and PayPal interfaces are in English or Spanish, the message sent automatically to the customer after a purchase is in French. This is not good.
I believe the problem occurs when the script returns back from PayPal to the shop, it loses the current user's language.
I can see that in the new version of: ext\modules\payment\paypal_ipn\ipn.php there is no more:
include(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CHECKOUT_PROCESS);
Sincerely,
Amar