- Posts: 19
- Thank you received: 0
Set offline payments as published by default
- tarik916
- Topic Author
- Offline
- New Member
Less
More
10 years 4 months ago #39284
by tarik916
Set offline payments as published by default was created by tarik916
I have a customer who bills their customers through a monthly membership and adds purchased event registrations to the monthly bill. They would like offline payment registrations to be published after checkout complete. I don't mind updating code. Where could I do this?
Thank you,
Tarik
Thank you,
Tarik
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
10 years 4 months ago #39319
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Set offline payments as published by default
Hi Tarik
1. Open the file components/com_eventbooking/payments/os_offline.php
2. In the function processPayment, find the code below :
$config = EventbookingHelper::getConfig();
3. Add the following code after that line of code :
$row->published = 1;
$row->store();
After that, it should work as expected.
Tuan
1. Open the file components/com_eventbooking/payments/os_offline.php
2. In the function processPayment, find the code below :
$config = EventbookingHelper::getConfig();
3. Add the following code after that line of code :
$row->published = 1;
$row->store();
After that, it should work as expected.
Tuan
Please Log in or Create an account to join the conversation.
- tarik916
- Topic Author
- Offline
- New Member
Less
More
- Posts: 19
- Thank you received: 0
10 years 4 months ago #39321
by tarik916
Replied by tarik916 on topic Re: Set offline payments as published by default
Thank you! That worked perfectly. I was close, but did not realize I was missing the "store()" line.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
10 years 4 months ago #39322
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Set offline payments as published by default
hehe, glad to hear that it works well !
Tuan
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2024 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.