• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Change "offlinepayment" value

Change "offlinepayment" value 12 years 1 month ago #22305

Maybe a straightforward thing, but until now I am not able to find a way to change the value of an offline payment. When using {payment-type:value} (the value for the 'choose payment' option) and offline payment has been chosen, the given value is "offlinepayment". I rather would like to change this to something in my own language, like "Bankoverschrijving".

Thank you for the solution.
The administrator has disabled public write access.

Change "offlinepayment" value 11 years 4 months ago #25907

  • grus
  • grus's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
Hi,
I have the same problem. How we can change it?
The administrator has disabled public write access.

Change "offlinepayment" value 11 years 4 months ago #25924

  • silviup
  • silviup's Avatar
  • OFFLINE
  • Moderator
  • Posts: 309
  • Thank you received: 49
Assuming that you are using the {payment-type:value} placeholder in the User Emails, add the following code in Components >> RSForm!Pro >> Manage Forms >> edit your form >> Properties >> PHP Email Scripts >> Script called before the User Email is sent area:
$userEmail['text']=str_replace('offlinepayment','Bankoverschrijving', $userEmail['text']);
The code will look for 'offlinepayment' in the email's text and, if found, will replace it with 'Bankoverschrijving' (you can add any text here).

If you are using the placeholder in the Admin Emails, add the following code in the Script called before the Admin Email is sent area:
$adminEmail['text']=str_replace('offlinepayment','Bankoverschrijving', $adminEmail['text']);
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
Last Edit: 10 years 9 months ago by alexp.
The administrator has disabled public write access.

Change "offlinepayment" value 10 years 9 months ago #28243

I'm trying to apply your tip for change "offlinepayment" to "Cash to the driver at the end of service"; these are the code lines I added respectively to user and admin PHP Email scripts:

$userEmail=str_replace('offlinepayment','Cash to the driver at the end of service', $userEmail[text]);

$adminEmail=str_replace('offlinepayment','Cash to the driver at the end of service', $adminEmail[text]);

The problem is that if I try to fill in the form, at the end I receive these error messages:

You must provide at least one recipient email address.
You must provide at least one recipient email address.

If I remove the code lines from PHP Email scripts, everything works (apart from "offlinepayment" in the email).
How can I solve it?
The administrator has disabled public write access.

Change "offlinepayment" value 10 years 9 months ago #28246

  • cosmin.cristea
  • cosmin.cristea's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 756
  • Thank you received: 144
Please try using the following syntax in the PHP email scripts ( keep in mind this is for useremail )
$userEmail['text'] = str_replace('offlinepayment','Cash to the driver at the end of service', $userEmail['text']);

More information can be found here:

http://www.rsjoomla.com/support/documentation/view-article/610-php-email-scripts.html
My help is not official customer support. To receive your support, submit a ticket by clicking here
Last Edit: 10 years 9 months ago by cosmin.cristea.
The administrator has disabled public write access.

Change "offlinepayment" value 10 years 7 months ago #28998

  • mcdue
  • mcdue's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
Hello everyone!

Following the suggestion in this topic I was able to change the name of the payment method that appears in emails.

Please excuse me now :P, but I would like to do the same in the attached pdf file generated by PDF plugin. Is it possible? How?

Thank you in advance for your time.
The administrator has disabled public write access.

Change "offlinepayment" value 10 years 7 months ago #29014

  • silviup
  • silviup's Avatar
  • OFFLINE
  • Moderator
  • Posts: 309
  • Thank you received: 49
@mcdue

Please refer to the following article:

www.rsjoomla.com/support/documentation/v...essing-scripts-.html
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!