- Posts: 12
- Thank you received: 0
Please post all pre-sales questions of all products on this forum
Payment Method | Restrict By Joomla ACL
- Paulzero
- Topic Author
- Offline
- New Member
-
Less
More
10 years 3 months ago - 10 years 3 months ago #57259
by Paulzero
Payment Method | Restrict By Joomla ACL was created by Paulzero
Hi !
Have OS Membership V1.6.5 installed but need to make a modification to 'Offline Payment' plugin so that it is only available as an option to members of one Joomla ACL group (Account customers).
Your forum article joomdonation.com/forum/joom-donation/422...ser-group.html#42469 touches on the subject.
Looking at 'os_offline.php' I wondered if it where possible to simply add some code to a copy of the plugin like this :
< ? php
if
$user = JFactory::getUser();
$groups = $user->get('groups');
if(in_array(111, $groups)){ ? >
-- load the offline payment method ---
else
-- do nothing --
< ? }
?>
What do you think ? If good idea wondering what the correct syntax would be ??
Thanks & Regards - Paul Zero
Have OS Membership V1.6.5 installed but need to make a modification to 'Offline Payment' plugin so that it is only available as an option to members of one Joomla ACL group (Account customers).
Your forum article joomdonation.com/forum/joom-donation/422...ser-group.html#42469 touches on the subject.
Looking at 'os_offline.php' I wondered if it where possible to simply add some code to a copy of the plugin like this :
< ? php
if
$user = JFactory::getUser();
$groups = $user->get('groups');
if(in_array(111, $groups)){ ? >
-- load the offline payment method ---
else
-- do nothing --
< ? }
?>
What do you think ? If good idea wondering what the correct syntax would be ??
Thanks & Regards - Paul Zero

Last edit: 10 years 3 months ago by Paulzero.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
10 years 3 months ago #57284
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Payment Method | Restrict By Joomla ACL
That's not the correct way. You can submit a support ticket sending us super admin account of your site and I will help modifying code for you
Tuan
Tuan
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
10 years 3 months ago #57285
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Payment Method | Restrict By Joomla ACL
BTW, why don't you upgrade to latest version of Membership Pro (version 1.6.8 now), 1.6.5 is an old version of the extension
Tuan
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc, Giang Dinh Truong, Mr. Dam
Support
Documentation
Information
Copyright © 2025 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.