Help me setup an ACL list

  • shashankkouloorkar
  • Topic Author
8 years 3 days ago #255953

Hello all,

After a countless request from me to the Hikashop staff to help me with ACL, I barely got some assistance from them. I have spent hours and days trying to get this dynamic pricing based on a custom field work. Before I completely lose my mind for the fact, that I PAID MORE THAN A 100 BUCKS on this software, is there anyone that can help me with my request?

I have created three new user groups in Joomla Dashboard->Gender, Male and Female. I have also created a custom dropdown field-> “Gender” with two options-> Male and Female.

I have created a test product-> Apple with the prices:
100 and 80 EUD. 80 will be for Female and Male under the Gender drop-down field (as set from the ACL in the product menu).

I have also "mapped" the Hikashop FTW user group plugin with the Gender custom field and its respective ID.

I do not understand why this doesn’t work?After user registration, I get Invalid Access Level. When I disable the Hikashop FTW user group plugin, I do not get the error. But, the prices do not change.

This is hindering my work in the office due to delays in setting up the dynamic pricing. An easy step- by- step procedure provided by anyone to my request would be greatly appreciated.

URL: skillsalliance.com.au/courses/

Thanks,

Shash

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
8 years 3 days ago #255968

Hi,

First, I'm sorry for that but rest assured that we do our best to support our customers regarding HikaShop setup.
As you said, the error appears to come from the FTW plugin. That plugin has been removed from the JED by the Joomla official team as it contains security issues and the developer's website is down. So I would recommend not to use it anymore. Even more so that it creates an error on your website.
You actually don't need that plugin to do that with HikaShop.
You can do what you want without any third party plugin by simply configuring HikaShop properly.
You need to do three things:
1. Create a custom field of the table "user" via the menu Display>Custom fields so that the customers can select their user group (gender in your case) during the checkout
2. Create the corresponding user groups via the Joomla user groups manager
3. Create a user mass action via the menu System>Mass actions with a trigger "after a user is created", with a filter "user column" on the column name of your custom field equal to one of the values of the custom field, and an action "change the user group" to add/change the customer user group to the corresponding user group. And repear the mass action for each user group.

The system will then handle that automatically. If it doesn't work, please provide :
- a screenshot of the settings of your user groups
- a screenshot of how the custom field is configured
- a screenshot of how your mass actions are configured
- a link to the registration page so that we can reproduce the issue

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

  • shashankkouloorkar
  • Topic Author
8 years 3 days ago #255995

Hello,

A million thanks for helping me with the instructions. Everything makes sense now. However, I think I've made mistakes yet again while setting up the pricing. I've followed your instructions but, it still doesn't work. I have attached the screenshots below and please let me know where I've made a mistake while setting up. I've named the attachments appropriately and you should be able to view the settings. Here's the link to the registration page: skillsalliance.com.au/courses/index.php/...t/hikashop/user/form

Attachments:
Last edit: 8 years 3 days ago by shashankkouloorkar. Reason: Added all the other attachments

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
8 years 2 days ago #255997

Hi,

How do you know that it doesn't work ?
I've created a test user account, if you edit it via the Joomla user manager, do you see it with the gender user group added ?
If so, then it worked and if you still have another problem, please explain what that is.
Otherwise, then I don't know and would need a backend access to check the issue further. In that case, you can use our contact form to provide the access along with a link to this thread: www.hikashop.com/support/contact-us.html

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

  • shashankkouloorkar
  • Topic Author
8 years 2 days ago #256034

Hi,

Your test user was registered under the "Registered" user group. Please find the attached screenshot.

Attachments:

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

  • shashankkouloorkar
  • Topic Author
8 years 2 days ago #256035

Hello,

I've emailed the credentials. Also, what I've found was, the mass action "Filter" only picks up Null value or when the value is 0. It gives me 0 results when other values are entered. I do not understand why. Please assist.Thank you.

Last edit: 8 years 2 days ago by shashankkouloorkar. Reason: Found a flaw.

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
8 years 2 days ago #256053

Hi,

As per my tests the trigger "after a user a is updated" is also necessary in your mass action as the custom field value is added to the user data in the database in a second process after the creation of the user itself.
I've tested it on your website and it's working fine as far as I can see like that.

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

  • shashankkouloorkar
  • Topic Author
8 years 2 days ago #256055

But, it gives me 0 results when I set it to not equal to.

Attachments:

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
8 years 1 day ago #256060

Hi,

This just means that you don't have any user already in the database which something else than the value "1" selected and that's the case on your website as far as I could see.
You have three users: admin, test_hikashop and test_hikashop2 and all three of them have the value "1" selected in that custom field.

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

Time to create page: 0.076 seconds
Powered by Kunena Forum