PAYMENT_NOTIFICATION_STATUS question

  • Posts: 585
  • Thank you received: 23
  • Hikaserial Subscription Hikashop Multisite
5 years 2 months ago #311088

-- HikaShop version -- : 4.2.1
-- Joomla version -- : 3.9.11
-- PHP version -- : 7.2

Hi supportteam,

I hope that you guys are okay.

When we get a payment notification e-mail for the webshopholder.
We get this sentence:
Hallo, A jdideal notification was received with the status confirmed.

The corresponding language code is:
PAYMENT_NOTIFICATION_STATUS="Hello,<br/>A %s notification was received with the status %s."

Our question is: Where can we change the first %s variable? Because we don't want to display the name 'jdideal' because a webshopholder doesn't know what it means so that raises questions.

Kind regards,
Lumiga


Kind regards,
Lumiga

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
5 years 2 months ago #311091

Hi,

Well, supposing that you don't have any other payment method with automatic notifications, the simplest is to change the translation override like this:

PAYMENT_NOTIFICATION_STATUS="Hello,<br/>A payment notification was received with the status %2$s."
The %2$s allows the system to skip the first variable since we removed the first %s from the translation string.
docs.joomla.org/Formatted_fields_in_lang..._translation_strings
Otherwise, I'm afrais you'll have to change the code in the payment plugin to provide something else than the name of the payment plugin for that variable.

The following user(s) said Thank You: Lumiga

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

  • Posts: 585
  • Thank you received: 23
  • Hikaserial Subscription Hikashop Multisite
5 years 2 months ago #311136

Hi Nicolas,

Thank you very much.
Good to know to use the %2$s, I didn't know that yet.

Kind regards,
Limuga


Kind regards,
Lumiga

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

Time to create page: 0.058 seconds
Powered by Kunena Forum