PayPal plugin translation question

  • Posts: 205
  • Thank you received: 12
3 years 8 months ago #331299

-- 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

Attachments:

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

  • Posts: 26166
  • Thank you received: 4029
  • MODERATOR
3 years 8 months ago #331304

Hello,

You want to edit the value of

$this->main_form['payment_name']['name']
$this->main_form['payment_description']['name']
When
$this->type == 'payment' && $this->name == 'paypaladaptive'

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 205
  • Thank you received: 12
3 years 8 months ago #331306

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.

  • Posts: 26166
  • Thank you received: 4029
  • MODERATOR
3 years 8 months ago #331337

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 26166
  • Thank you received: 4029
  • MODERATOR
3 years 8 months ago #331338

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

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