#2055 – Payment method label is not translated in admin confirmation email

Posted in ‘Taxi Booking’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Friday, 26 February 2021 15:44 GMT
serguei_kp
SystemPay for Taxi Booking, Taxi Booking recurring updates Annually
 Hello, when sending confirmation email from back end the Payment method field label is not translated.

Serge.
 
Saturday, 27 February 2021 15:50 GMT
serguei_kp
SystemPay for Taxi Booking, Taxi Booking recurring updates Annually
Hello, I found a solution for this issue.
It's not a bug, but compatibility issue with soap api synchronizator.
When soap access to the back end of Taxibooking the variable $_REQUEST['active_lang'] is empty, so the system selects default English translation in this case.

The solution is:
in booking.helper.php
in function :
public static function update_order_status()

under this line: $lang->load('com_taxibooking', JPATH_BASE, $lang_tag, false);
add this code:
function changeBaseUrl()
{
$base = JURI::root();
$base = preg_replace("/administrator\/components\/com_virtuemart_erp\/services\//", "", $base);
return $base;
}

$base_url = changeBaseUrl();
// aramis set active lang for email template payment_method label translation
if (!isset($_REQUEST['active_lang'])){
$_REQUEST['active_lang'] = $lang_tag;
}

Serge.
 
Saturday, 27 February 2021 15:51 GMT
serguei_kp
SystemPay for Taxi Booking, Taxi Booking recurring updates Annually
 
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.

KANEV Web Development limited is not affiliated with or endorsed by the Joomla Project or Open Source Matters.

KANEV Web Development limited is registered in England and Wales #8902407