[Skip to main content](#vessel-content)

#   Restriction of variants to some user groups doesn't work

##

- **[smart web](/forum/user/52782-smart-web "View smart web's Profile")**
- [![smart web's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/52782-smart-web "View smart web's Profile") Topic Author
- [ Offline](/forum/user/52782-smart-web)

Less More

- Posts: 65
- Thank you received: 10
-
-

6 years 3 months ago [\#322616](#322616) by [smart web](/forum/user/52782-smart-web "View smart web's Profile")  *[Restriction of variants to some user groups doesn't work](/forum/32-content-creation/900523-restriction-of-variants-to-some-user-groups-doesnt-work#322616 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.20 -- PHP version -- : 7.3.20 -- Browser(s) name and version -- : Firefox, Safari, Chrome -- Error-message(debug-mod must be tuned on) -- : Notice: Undefined property: stdClass::$product&#95;type in /home/httpd/vhosts/elcase.ch/httpdocs/plugins/hikashop/shippingmanual&#95;prices/shippingmanual&#95;prices.php on line 131  Hi,  If we add or edit a variant in a product and restrict this variant to some user groups, not all groups are checked after saving the article. If Joomla error reporting is set to maximum I get this message: Notice: Undefined property: stdClass::$product&#95;type in /home/httpd/vhosts/elcase.ch/httpdocs/plugins/hikashop/shippingmanual&#95;prices/shippingmanual&#95;prices.php on line 131. My client has 247 user groups because of individual prices.  Steps to reproduce:  1. add a lot of user groups ;-) 2. edit a variant inside an article 3. scroll down to 'Restrictions and dimensions' 4. disable the checkbox for 'public' and 'guest' 5. save the article  After saving the article only the first approx. 80 checkboxes are enabled and saved correct. I think there is some bug insade a script? If I check 'all' everything works like expected.  Do you can please try to reproduce this? Do you need backend access?  Regards, Stefan")* was created by *[smart web](/forum/user/52782-smart-web "View smart web's Profile")*

-- HikaShop version -- : 4.3.0
-- Joomla version -- : 3.9.20
-- PHP version -- : 7.3.20
-- Browser(s) name and version -- : Firefox, Safari, Chrome
-- Error-message(debug-mod must be tuned on) -- : Notice: Undefined property: stdClass::$product_type in /home/httpd/vhosts/elcase.ch/httpdocs/plugins/hikashop/shippingmanual_prices/shippingmanual_prices.php on line 131

Hi,

If we add or edit a variant in a product and restrict this variant to some user groups, not all groups are checked after saving the article. If Joomla error reporting is set to maximum I get this message: Notice: Undefined property: stdClass::$product_type in /home/httpd/vhosts/elcase.ch/httpdocs/plugins/hikashop/shippingmanual_prices/shippingmanual_prices.php on line 131. My client has 247 user groups because of individual prices.

Steps to reproduce:

1. add a lot of user groups ![;-)](/media/kunena/emoticons/24.png ";-)")
2. edit a variant inside an article
3. scroll down to 'Restrictions and dimensions'
4. disable the checkbox for 'public' and 'guest'
5. save the article

After saving the article only the first approx. 80 checkboxes are enabled and saved correct. I think there is some bug insade a script? If I check 'all' everything works like expected.

Do you can please try to reproduce this? Do you need backend access?

Regards,
Stefan

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vOTAwNTIzLXJlc3RyaWN0aW9uLW9mLXZhcmlhbnRzLXRvLXNvbWUtdXNlci1ncm91cHMtZG9lc250LXdvcms/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

6 years 3 months ago [\#322621](#322621) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Restriction of variants to some user groups doesn't work](/forum/32-content-creation/900523-restriction-of-variants-to-some-user-groups-doesnt-work#322621 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.20 -- PHP version -- : 7.3.20 -- Browser(s) name and version -- : Firefox, Safari, Chrome -- Error-message(debug-mod must be tuned on) -- : Notice: Undefined property: stdClass::$product&#95;type in /home/httpd/vhosts/elcase.ch/httpdocs/plugins/hikashop/shippingmanual&#95;prices/shippingmanual&#95;prices.php on line 131  Hi,  If we add or edit a variant in a product and restrict this variant to some user groups, not all groups are checked after saving the article. If Joomla error reporting is set to maximum I get this message: Notice: Undefined property: stdClass::$product&#95;type in /home/httpd/vhosts/elcase.ch/httpdocs/plugins/hikashop/shippingmanual&#95;prices/shippingmanual&#95;prices.php on line 131. My client has 247 user groups because of individual prices.  Steps to reproduce:  1. add a lot of user groups ;-) 2. edit a variant inside an article 3. scroll down to 'Restrictions and dimensions' 4. disable the checkbox for 'public' and 'guest' 5. save the article  After saving the article only the first approx. 80 checkboxes are enabled and saved correct. I think there is some bug insade a script? If I check 'all' everything works like expected.  Do you can please try to reproduce this? Do you need backend access?  Regards, Stefan")*

Hi,

I don't think it's a bug inside a script.
I think it's a limitation on the server to limit the number of parameters to be taken into account in the POST:
[ stackoverflow.com/questions/9399315/how-...post-variable-in-php](https://stackoverflow.com/questions/9399315/how-to-increase-maximum-post-variable-in-php)
As you can read there, it can be a variable in the php.ini, or in suhosin, or in the httpd.conf or in a htaccess.
To circumvent the problem, what you can do is click on the "save" button of the variant edition form (below the variants listing on the right side) instead of the "save" button of the whole page. That way, it will only save the variant data instead of the product data + the variant data. And then, when you want to leave the product edition page, either close the variant before clicking on the main save button or click on the cancel button to go back to the products listing.

The notice message in the shipping prices plugin is not linked and will be fixed in the next release of HikaShop.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vOTAwNTIzLXJlc3RyaWN0aW9uLW9mLXZhcmlhbnRzLXRvLXNvbWUtdXNlci1ncm91cHMtZG9lc250LXdvcms/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[smart web](/forum/user/52782-smart-web "View smart web's Profile")**
- [![smart web's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/52782-smart-web "View smart web's Profile") Topic Author
- [ Offline](/forum/user/52782-smart-web)

Less More

- Posts: 65
- Thank you received: 10
-
-

6 years 3 months ago [\#322675](#322675) by [smart web](/forum/user/52782-smart-web "View smart web's Profile")  Replied by *[smart web](/forum/user/52782-smart-web "View smart web's Profile")* on topic *[Restriction of variants to some user groups doesn't work](/forum/32-content-creation/900523-restriction-of-variants-to-some-user-groups-doesnt-work#322675 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.20 -- PHP version -- : 7.3.20 -- Browser(s) name and version -- : Firefox, Safari, Chrome -- Error-message(debug-mod must be tuned on) -- : Notice: Undefined property: stdClass::$product&#95;type in /home/httpd/vhosts/elcase.ch/httpdocs/plugins/hikashop/shippingmanual&#95;prices/shippingmanual&#95;prices.php on line 131  Hi,  If we add or edit a variant in a product and restrict this variant to some user groups, not all groups are checked after saving the article. If Joomla error reporting is set to maximum I get this message: Notice: Undefined property: stdClass::$product&#95;type in /home/httpd/vhosts/elcase.ch/httpdocs/plugins/hikashop/shippingmanual&#95;prices/shippingmanual&#95;prices.php on line 131. My client has 247 user groups because of individual prices.  Steps to reproduce:  1. add a lot of user groups ;-) 2. edit a variant inside an article 3. scroll down to 'Restrictions and dimensions' 4. disable the checkbox for 'public' and 'guest' 5. save the article  After saving the article only the first approx. 80 checkboxes are enabled and saved correct. I think there is some bug insade a script? If I check 'all' everything works like expected.  Do you can please try to reproduce this? Do you need backend access?  Regards, Stefan")*

Hi Nicolas,

thanks for your advice. We have raised the max_input_vars value to 200000, unfortunately the problem does still exist. Even if i use the 'save' button of the variant edition form. In some further testing I've found out that this problem appears not only in the variants, but in the 'Restrictions and dimensions' of the product too.

Some other php settings:
max_execution_time: 240
max_file_uploads: 100
max_input_nesting_level: 64
max_input_time: 240
max_input_vars: 200000

I have no more ideas what the cause might be. Please help me, this shop is online and the customer had to deactivate some products because of this problem.

Regards,
Stefan

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vOTAwNTIzLXJlc3RyaWN0aW9uLW9mLXZhcmlhbnRzLXRvLXNvbWUtdXNlci1ncm91cHMtZG9lc250LXdvcms/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

6 years 3 months ago [\#322678](#322678) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Restriction of variants to some user groups doesn't work](/forum/32-content-creation/900523-restriction-of-variants-to-some-user-groups-doesnt-work#322678 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.20 -- PHP version -- : 7.3.20 -- Browser(s) name and version -- : Firefox, Safari, Chrome -- Error-message(debug-mod must be tuned on) -- : Notice: Undefined property: stdClass::$product&#95;type in /home/httpd/vhosts/elcase.ch/httpdocs/plugins/hikashop/shippingmanual&#95;prices/shippingmanual&#95;prices.php on line 131  Hi,  If we add or edit a variant in a product and restrict this variant to some user groups, not all groups are checked after saving the article. If Joomla error reporting is set to maximum I get this message: Notice: Undefined property: stdClass::$product&#95;type in /home/httpd/vhosts/elcase.ch/httpdocs/plugins/hikashop/shippingmanual&#95;prices/shippingmanual&#95;prices.php on line 131. My client has 247 user groups because of individual prices.  Steps to reproduce:  1. add a lot of user groups ;-) 2. edit a variant inside an article 3. scroll down to 'Restrictions and dimensions' 4. disable the checkbox for 'public' and 'guest' 5. save the article  After saving the article only the first approx. 80 checkboxes are enabled and saved correct. I think there is some bug insade a script? If I check 'all' everything works like expected.  Do you can please try to reproduce this? Do you need backend access?  Regards, Stefan")*

Hi,

Well, you finding the issue with the "restrictions and dimensions" settings only confirms the diagnosis I made.
When the server is restricting the number of parameters that can be received, all the parameters above that limit will be ignored.
So that means that all the options displayed after the "breaking point" in the interface will be ignored by the server.

You've increased the max_input_vars variable of PHP but did you check suhosin's configuration ? You can find more information on that in the second answer of the link I gave: [ stackoverflow.com/questions/9399315/how-...post-variable-in-php](https://stackoverflow.com/questions/9399315/how-to-increase-maximum-post-variable-in-php)
Suhosin's settings is a common cause for that problem.

If that doesn't work either, I could have a look at your backend, but so far, in the last ten years of supporting HikaShop, each and every time this issue was reported to us, it was because of a server limitation on the parameters count, nothing we could do about even with a backend or a FTP access ![:/](/irritated.gif ":/")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vOTAwNTIzLXJlc3RyaWN0aW9uLW9mLXZhcmlhbnRzLXRvLXNvbWUtdXNlci1ncm91cHMtZG9lc250LXdvcms/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[smart web](/forum/user/52782-smart-web "View smart web's Profile")**
- [![smart web's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/52782-smart-web "View smart web's Profile") Topic Author
- [ Offline](/forum/user/52782-smart-web)

Less More

- Posts: 65
- Thank you received: 10
-
-

6 years 3 months ago -  6 years 3 months ago [\#322711](#322711) by [smart web](/forum/user/52782-smart-web "View smart web's Profile")  Replied by *[smart web](/forum/user/52782-smart-web "View smart web's Profile")* on topic *[Restriction of variants to some user groups doesn't work](/forum/32-content-creation/900523-restriction-of-variants-to-some-user-groups-doesnt-work#322711 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.20 -- PHP version -- : 7.3.20 -- Browser(s) name and version -- : Firefox, Safari, Chrome -- Error-message(debug-mod must be tuned on) -- : Notice: Undefined property: stdClass::$product&#95;type in /home/httpd/vhosts/elcase.ch/httpdocs/plugins/hikashop/shippingmanual&#95;prices/shippingmanual&#95;prices.php on line 131  Hi,  If we add or edit a variant in a product and restrict this variant to some user groups, not all groups are checked after saving the article. If Joomla error reporting is set to maximum I get this message: Notice: Undefined property: stdClass::$product&#95;type in /home/httpd/vhosts/elcase.ch/httpdocs/plugins/hikashop/shippingmanual&#95;prices/shippingmanual&#95;prices.php on line 131. My client has 247 user groups because of individual prices.  Steps to reproduce:  1. add a lot of user groups ;-) 2. edit a variant inside an article 3. scroll down to 'Restrictions and dimensions' 4. disable the checkbox for 'public' and 'guest' 5. save the article  After saving the article only the first approx. 80 checkboxes are enabled and saved correct. I think there is some bug insade a script? If I check 'all' everything works like expected.  Do you can please try to reproduce this? Do you need backend access?  Regards, Stefan")*

Hi,

I've made a lot of tests with the hosting provider support with no results. We increased the possible php settings maximum to max. Suhosin is not active on this server.

After this I've copied the whole Website to another Server with the same result, unfortunately.

So it would be very helpful, if you could have a look in the backend. You find the login data below.

Thank you very much
Stefan

Last edit: 6 years 3 months ago by [smart web](/forum/user/52782-smart-web "View smart web's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vOTAwNTIzLXJlc3RyaWN0aW9uLW9mLXZhcmlhbnRzLXRvLXNvbWUtdXNlci1ncm91cHMtZG9lc250LXdvcms/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

6 years 3 months ago [\#322712](#322712) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Restriction of variants to some user groups doesn't work](/forum/32-content-creation/900523-restriction-of-variants-to-some-user-groups-doesnt-work#322712 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.20 -- PHP version -- : 7.3.20 -- Browser(s) name and version -- : Firefox, Safari, Chrome -- Error-message(debug-mod must be tuned on) -- : Notice: Undefined property: stdClass::$product&#95;type in /home/httpd/vhosts/elcase.ch/httpdocs/plugins/hikashop/shippingmanual&#95;prices/shippingmanual&#95;prices.php on line 131  Hi,  If we add or edit a variant in a product and restrict this variant to some user groups, not all groups are checked after saving the article. If Joomla error reporting is set to maximum I get this message: Notice: Undefined property: stdClass::$product&#95;type in /home/httpd/vhosts/elcase.ch/httpdocs/plugins/hikashop/shippingmanual&#95;prices/shippingmanual&#95;prices.php on line 131. My client has 247 user groups because of individual prices.  Steps to reproduce:  1. add a lot of user groups ;-) 2. edit a variant inside an article 3. scroll down to 'Restrictions and dimensions' 4. disable the checkbox for 'public' and 'guest' 5. save the article  After saving the article only the first approx. 80 checkboxes are enabled and saved correct. I think there is some bug insade a script? If I check 'all' everything works like expected.  Do you can please try to reproduce this? Do you need backend access?  Regards, Stefan")*

Hi,

Ok, the problem is slightly different here.
It's not the number of input parameters that is restricted. And it's not a problem of having a lot of user groups on your website either.
It's the length of the product_access column in the hikashop_product table which has a maximum number of characters and you're trying to select a lot of groups, so only the first ones are taken into account.
If you need to select user groups, you need to change the type of that product_access column to text instead of varchar via your phpmyadmin.

The following user(s) said Thank You: [smart web](/forum/user/52782-smart-web "View smart web's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vOTAwNTIzLXJlc3RyaWN0aW9uLW9mLXZhcmlhbnRzLXRvLXNvbWUtdXNlci1ncm91cHMtZG9lc250LXdvcms/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[smart web](/forum/user/52782-smart-web "View smart web's Profile")**
- [![smart web's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/52782-smart-web "View smart web's Profile") Topic Author
- [ Offline](/forum/user/52782-smart-web)

Less More

- Posts: 65
- Thank you received: 10
-
-

6 years 3 months ago -  6 years 3 months ago [\#322757](#322757) by [smart web](/forum/user/52782-smart-web "View smart web's Profile")  Replied by *[smart web](/forum/user/52782-smart-web "View smart web's Profile")* on topic *[Restriction of variants to some user groups doesn't work](/forum/32-content-creation/900523-restriction-of-variants-to-some-user-groups-doesnt-work#322757 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.20 -- PHP version -- : 7.3.20 -- Browser(s) name and version -- : Firefox, Safari, Chrome -- Error-message(debug-mod must be tuned on) -- : Notice: Undefined property: stdClass::$product&#95;type in /home/httpd/vhosts/elcase.ch/httpdocs/plugins/hikashop/shippingmanual&#95;prices/shippingmanual&#95;prices.php on line 131  Hi,  If we add or edit a variant in a product and restrict this variant to some user groups, not all groups are checked after saving the article. If Joomla error reporting is set to maximum I get this message: Notice: Undefined property: stdClass::$product&#95;type in /home/httpd/vhosts/elcase.ch/httpdocs/plugins/hikashop/shippingmanual&#95;prices/shippingmanual&#95;prices.php on line 131. My client has 247 user groups because of individual prices.  Steps to reproduce:  1. add a lot of user groups ;-) 2. edit a variant inside an article 3. scroll down to 'Restrictions and dimensions' 4. disable the checkbox for 'public' and 'guest' 5. save the article  After saving the article only the first approx. 80 checkboxes are enabled and saved correct. I think there is some bug insade a script? If I check 'all' everything works like expected.  Do you can please try to reproduce this? Do you need backend access?  Regards, Stefan")*

Thank you, Nicolas. After changing product_access column to text, everything is working fine.

Last edit: 6 years 3 months ago by [smart web](/forum/user/52782-smart-web "View smart web's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vOTAwNTIzLXJlc3RyaWN0aW9uLW9mLXZhcmlhbnRzLXRvLXNvbWUtdXNlci1ncm91cHMtZG9lc250LXdvcms/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[smart web](/forum/user/52782-smart-web "View smart web's Profile")**
- [![smart web's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/52782-smart-web "View smart web's Profile") Topic Author
- [ Offline](/forum/user/52782-smart-web)

Less More

- Posts: 65
- Thank you received: 10
-
-

6 years 3 months ago [\#322767](#322767) by [smart web](/forum/user/52782-smart-web "View smart web's Profile")  Replied by *[smart web](/forum/user/52782-smart-web "View smart web's Profile")* on topic *[Restriction of variants to some user groups doesn't work](/forum/32-content-creation/900523-restriction-of-variants-to-some-user-groups-doesnt-work#322767 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.20 -- PHP version -- : 7.3.20 -- Browser(s) name and version -- : Firefox, Safari, Chrome -- Error-message(debug-mod must be tuned on) -- : Notice: Undefined property: stdClass::$product&#95;type in /home/httpd/vhosts/elcase.ch/httpdocs/plugins/hikashop/shippingmanual&#95;prices/shippingmanual&#95;prices.php on line 131  Hi,  If we add or edit a variant in a product and restrict this variant to some user groups, not all groups are checked after saving the article. If Joomla error reporting is set to maximum I get this message: Notice: Undefined property: stdClass::$product&#95;type in /home/httpd/vhosts/elcase.ch/httpdocs/plugins/hikashop/shippingmanual&#95;prices/shippingmanual&#95;prices.php on line 131. My client has 247 user groups because of individual prices.  Steps to reproduce:  1. add a lot of user groups ;-) 2. edit a variant inside an article 3. scroll down to 'Restrictions and dimensions' 4. disable the checkbox for 'public' and 'guest' 5. save the article  After saving the article only the first approx. 80 checkboxes are enabled and saved correct. I think there is some bug insade a script? If I check 'all' everything works like expected.  Do you can please try to reproduce this? Do you need backend access?  Regards, Stefan")*

I'm afraid I was celebrating too soon. My client has reported another similar problem.
The user group assignment of a variant itself works perfectly. The assignment of a price to certain user groups within a variant still does not work.
The behavior is identical to the previous problem. Can you please check how this problem can be solved?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vOTAwNTIzLXJlc3RyaWN0aW9uLW9mLXZhcmlhbnRzLXRvLXNvbWUtdXNlci1ncm91cHMtZG9lc250LXdvcms/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

6 years 3 months ago [\#322785](#322785) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Restriction of variants to some user groups doesn't work](/forum/32-content-creation/900523-restriction-of-variants-to-some-user-groups-doesnt-work#322785 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.20 -- PHP version -- : 7.3.20 -- Browser(s) name and version -- : Firefox, Safari, Chrome -- Error-message(debug-mod must be tuned on) -- : Notice: Undefined property: stdClass::$product&#95;type in /home/httpd/vhosts/elcase.ch/httpdocs/plugins/hikashop/shippingmanual&#95;prices/shippingmanual&#95;prices.php on line 131  Hi,  If we add or edit a variant in a product and restrict this variant to some user groups, not all groups are checked after saving the article. If Joomla error reporting is set to maximum I get this message: Notice: Undefined property: stdClass::$product&#95;type in /home/httpd/vhosts/elcase.ch/httpdocs/plugins/hikashop/shippingmanual&#95;prices/shippingmanual&#95;prices.php on line 131. My client has 247 user groups because of individual prices.  Steps to reproduce:  1. add a lot of user groups ;-) 2. edit a variant inside an article 3. scroll down to 'Restrictions and dimensions' 4. disable the checkbox for 'public' and 'guest' 5. save the article  After saving the article only the first approx. 80 checkboxes are enabled and saved correct. I think there is some bug insade a script? If I check 'all' everything works like expected.  Do you can please try to reproduce this? Do you need backend access?  Regards, Stefan")*

Hi,

That's normal, for the prices it's the column price_access of the hikashop_price table.
And I can already tell you that you'll have the same problem for every other "access level" setting.
For example, you have the payment_access column in the hikahop_payment table, the discount_access column in the hikashop_discount table, the taxation_access column in the hikashop_taxation table, the shipping_access column in the hikashop_shipping table, the category_access column in the hikashop_category table (and maybe others I'm forgetting)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vOTAwNTIzLXJlc3RyaWN0aW9uLW9mLXZhcmlhbnRzLXRvLXNvbWUtdXNlci1ncm91cHMtZG9lc250LXdvcms/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[smart web](/forum/user/52782-smart-web "View smart web's Profile")**
- [![smart web's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/52782-smart-web "View smart web's Profile") Topic Author
- [ Offline](/forum/user/52782-smart-web)

Less More

- Posts: 65
- Thank you received: 10
-
-

6 years 3 months ago [\#322833](#322833) by [smart web](/forum/user/52782-smart-web "View smart web's Profile")  Replied by *[smart web](/forum/user/52782-smart-web "View smart web's Profile")* on topic *[Restriction of variants to some user groups doesn't work](/forum/32-content-creation/900523-restriction-of-variants-to-some-user-groups-doesnt-work#322833 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.20 -- PHP version -- : 7.3.20 -- Browser(s) name and version -- : Firefox, Safari, Chrome -- Error-message(debug-mod must be tuned on) -- : Notice: Undefined property: stdClass::$product&#95;type in /home/httpd/vhosts/elcase.ch/httpdocs/plugins/hikashop/shippingmanual&#95;prices/shippingmanual&#95;prices.php on line 131  Hi,  If we add or edit a variant in a product and restrict this variant to some user groups, not all groups are checked after saving the article. If Joomla error reporting is set to maximum I get this message: Notice: Undefined property: stdClass::$product&#95;type in /home/httpd/vhosts/elcase.ch/httpdocs/plugins/hikashop/shippingmanual&#95;prices/shippingmanual&#95;prices.php on line 131. My client has 247 user groups because of individual prices.  Steps to reproduce:  1. add a lot of user groups ;-) 2. edit a variant inside an article 3. scroll down to 'Restrictions and dimensions' 4. disable the checkbox for 'public' and 'guest' 5. save the article  After saving the article only the first approx. 80 checkboxes are enabled and saved correct. I think there is some bug insade a script? If I check 'all' everything works like expected.  Do you can please try to reproduce this? Do you need backend access?  Regards, Stefan")*

Thank you, Nicolas.
My customer has reported that everything is now functioning properly again.
Do we have to expect to repeat these changes after the next update or will the column type be changed to text in the following versions?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vOTAwNTIzLXJlc3RyaWN0aW9uLW9mLXZhcmlhbnRzLXRvLXNvbWUtdXNlci1ncm91cHMtZG9lc250LXdvcms/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

6 years 3 months ago [\#322841](#322841) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Restriction of variants to some user groups doesn't work](/forum/32-content-creation/900523-restriction-of-variants-to-some-user-groups-doesnt-work#322841 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.20 -- PHP version -- : 7.3.20 -- Browser(s) name and version -- : Firefox, Safari, Chrome -- Error-message(debug-mod must be tuned on) -- : Notice: Undefined property: stdClass::$product&#95;type in /home/httpd/vhosts/elcase.ch/httpdocs/plugins/hikashop/shippingmanual&#95;prices/shippingmanual&#95;prices.php on line 131  Hi,  If we add or edit a variant in a product and restrict this variant to some user groups, not all groups are checked after saving the article. If Joomla error reporting is set to maximum I get this message: Notice: Undefined property: stdClass::$product&#95;type in /home/httpd/vhosts/elcase.ch/httpdocs/plugins/hikashop/shippingmanual&#95;prices/shippingmanual&#95;prices.php on line 131. My client has 247 user groups because of individual prices.  Steps to reproduce:  1. add a lot of user groups ;-) 2. edit a variant inside an article 3. scroll down to 'Restrictions and dimensions' 4. disable the checkbox for 'public' and 'guest' 5. save the article  After saving the article only the first approx. 80 checkboxes are enabled and saved correct. I think there is some bug insade a script? If I check 'all' everything works like expected.  Do you can please try to reproduce this? Do you need backend access?  Regards, Stefan")*

Hello,

I don't think you'll have to change it again as after every update Hikashop will only add / change database fields that were modified.

Kind regards,
Mohamed.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vOTAwNTIzLXJlc3RyaWN0aW9uLW9mLXZhcmlhbnRzLXRvLXNvbWUtdXNlci1ncm91cHMtZG9lc250LXdvcms/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.084 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
