Skip to main content

PayPal plugin translation question

5 years 7 months ago #331299 by liaskas
-- HikaShop version -- : 4.4.1
-- HikaMarket version -- : 4.0.0
-- Joomla version -- : 3.9.25
-- PHP version -- : 7.4.16

Hello

On the vendor paypal payment method creation form, we need to translate some field labels.

For example:
We need to translate the field label Name for example, but only in the paypal payment plugin. Not all the other payment plugins (banktransfer, check etc)

We do not use any 3d party component on our site.


Thank you

Please Log in or Create an account to join the conversation.

5 years 7 months ago #331304 by Jerome
Hello,

You want to edit the value of
Code:
$this->main_form['payment_name']['name'] $this->main_form['payment_description']['name']
When
Code:
$this->type == 'payment' && $this->name == 'paypaladaptive'

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Please Log in or Create an account to join the conversation.

5 years 7 months ago #331306 by liaskas
Thank you Jerome

What file do i have to edit and what is the exact change i need to make the label name be like HIKA_PAYPAL_PLUGIN_FIELD_LABEL_NAME so that i can use the language files to set the appropriate translations?

Thank you

Please Log in or Create an account to join the conversation.

5 years 7 months ago #331337 by Jerome
Hello,

Oh sorry, I forget the view name ; it's "pluginsmarket / form" view.
You need to put the value of the translation key (HIKA_PAYPAL...) in the variables that I gave you. The first one is for the "name" and the second is for the "description" field.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Please Log in or Create an account to join the conversation.

5 years 7 months ago #331338 by Jerome
If you want to have some tips regarding the view to edit ; don't forget the HIkaShop setting "display view files" !
www.hikashop.com/support/documentation/5...g.html#advanced_main

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Please Log in or Create an account to join the conversation.

Moderators: Obsidev
Time to create page: 0.075 seconds
Powered by Kunena Forum