Please post all pre-sales questions of all products on this forum

Payment Method | Restrict By Joomla ACL

  • Paulzero
  • Topic Author
  • Offline
  • New Member
  • New Member
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 :)
Last edit: 10 years 3 months ago by Paulzero.

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

More
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

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

More
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

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

Moderators: Tuan Pham NgocGiang Dinh TruongMr. Dam