Two types of offline payment

  • wirex
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 years 11 months ago #66759 by wirex
Two types of offline payment was created by wirex
Hi,

I would like to use offline payments in two ways:
1st: as it is designed: user will receive e-mail with account number to make payment
2nd: user will pay on arrival without any found transfer
Although from technical perspective it seems be same but I want user to be aware what is a difference.
1st option name could be: "offline payment"
2nd option name could be: "Pay on arrival"

Is there any way to have different names depend on event or I can install another offline payment plugin and name it accordingly

Thanks,
Wirex

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

More
9 years 11 months ago #66760 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Two types of offline payment
Hi Wirex

The easiest option would be creating additional offline payment plugin which you can download it at joomdonation.com/forum/events-booking-ge...ange-logs.html#14476 , then change the name accordingly

Regards,

Tuan

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

  • wirex
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 years 11 months ago #67209 by wirex
Replied by wirex on topic Two types of offline payment
Hi Tuan,

Many thanks for your answer. I've installed additional plugins.
Just to confirm, message display and email sent to user will be from:
User email body (offline payment) and Thank you message (offline payment) text for all "offline" payment plugins? i.e. (os_offline, os_offline_cheque, os_offline_cash)
Or is there a way to setup different confirmation text for each plugin?

Thanks,
Wirex

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

More
9 years 11 months ago #67214 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Two types of offline payment
Hi Wirex

Unfortunately, all offline payment plugins will use the same text. There is no way to setup different text for different offline payment plugin yet

Tuan

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

  • wirex
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 years 11 months ago #67228 by wirex
Replied by wirex on topic Two types of offline payment
Hi Tuan,

Many thanks for confirmation.

Regards,
Wirex

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

More
9 years 6 months ago #73550 by Baptiste
Replied by Baptiste on topic Two types of offline payment
Hi!

I tried to create a new offline payment method but i didn't achieve... so i try the one on this page but i have the same probleme (see capture).

Do you have an advice?

ty !
Attachments:

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

More
9 years 6 months ago #73575 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Two types of offline payment
What Joomla version you are using? There is some changes in Joomla 3.4.4 which causes this update error. You can edit the code abit to solve it:

1. Open the file administrator/components/com_eventbooking/model/plugin.php (maybe it was administrator/components/com_eventbooking/models/plugin.php if you are using a very old version, note the difference between model and models)

2. Find this code:
Code:
$uploaded = JFile::upload($plugin['tmp_name'], $destinationDir);

3. Change it to:
Code:
$uploaded = JFile::upload($plugin['tmp_name'], $destinationDir, false, true);

After that, it should work as expected.

Regards,

Tuan

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

More
9 years 6 months ago #73595 by Baptiste
Replied by Baptiste on topic Two types of offline payment
Hi Tuan and thank you for your answer.

Yes, i use J!3.4.8 and Event Booking V1.6.9

i founded /administrator/components/com_eventbooking/model/plugin.php and change

$uploaded = JFile::upload($plugin, $dest);

with

$uploaded = JFile::upload($plugin, $destinationDir, false, true);

as the first line wasn't the same as your ($dest vs $destinationDir) i also try :

$uploaded = JFile::upload($plugin, $dest, false, true);

but no one works.

Have you an advice?

Thank you one more time

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

More
9 years 6 months ago #73615 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Two types of offline payment
In this case, I think you will need to submit support ticket sending me super admin account of your site.

I am going to check and correct it for you. Or you can upload the original code here, I will modify it and send the modified file back to you

Regards,

Tuan

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

More
9 years 6 months ago - 9 years 6 months ago #73624 by Baptiste
Replied by Baptiste on topic Two types of offline payment
Hi Tuan, and thank you for your help. i wanted to put the code of the plugin.php file, but your security tool blocks me, same if i atteched it.

So i join it as zip file.

File Attachment:

File Name: plugin.zip
File Size:2 KB


Thank you!
Attachments:
Last edit: 9 years 6 months ago by Baptiste.

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

Moderators: Tuan Pham Ngoc