logo
Welcome to our new AbleCommerce forums. As a guest, you may view the information here. To post to this forum, you must have a registered account with us, either as a new user evaluating AbleCommerce or an existing user of the application. For all questions related to the older version of Gold and earlier, please go to AbleCommerce Gold forum. Please use your AbleCommerce username and password to Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
jdepoy24549696  
#1 Posted : Tuesday, February 25, 2020 2:08:12 PM(UTC)
jdepoy24549696

Rank: Advanced Member

Groups: Authorized User, Developers, Registered
Joined: 4/17/2019(UTC)
Posts: 80

I needed to assign a Payment Method to the Order Admin Group.
The problem was that the site Super Users couldn't see the Payment Method even though I think that they should be able to see all methods that any Admin sees.
I decided to add the Super User Group to the same Payment Method.
I couldn't save with both Groups assigned to the method and the Super User Group was completely removed from the site.
I tried with other User Groups and the result seems to be that a Group will be deleted.
I wasn't able to have more than 1 group per Payment Method assigned via the Admin.

Wanna join the discussion?! Login to your AbleCommerce Forums forum account. New Registrations are disabled.

Naveed Ashraf  
#2 Posted : Wednesday, February 26, 2020 7:41:49 AM(UTC)
Naveed Ashraf

Rank: Advanced Member

Groups: Admin, Administrators, Developers, Registered, HelpDesk, Authorized User
Joined: 7/31/2019(UTC)
Posts: 77

Was thanked: 8 time(s) in 8 post(s)
Hi,

There is a bug with payment method groups assignment, on re-save the old assigned groups are getting removed/deleted.


I have reported the issue and it will get fixed as soon possible.

if you can re-complie the website, then its easy to fix, here are steps:

1. Open following file in Visual Studio:
~Website/Areas/Admin/Controllers/PaymentsController.cs

2. Navigate to Line # 130 and locate the following line of code:

Quote:
//GROUP RESTRICTION
if (method.Groups.Count > 0) method.Groups.DeleteAll();



And replace it with

Quote:
//GROUP RESTRICTION
if (method.Groups.Count > 0) method.Groups.Clear();


Save, and recompile the website project.

Thanks for reporting the issue.

Naveed Ashraf
Thanks for your support!
Naveed Ashraf
Ablecommerce.com
Developer Assistance Available
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.