Using the products limit feature on characteristics

  • Posts: 100
  • Thank you received: 2
2 years 11 months ago #331975

-- HikaShop version -- : 4.4.0

Hi

We sell online courses and use product characteristics to enroll the individual into a specific group in the course, once they have registered they should be blocked from purchasing that characteristic again, but they should be able to register for a different characteristic of the same product(course)
I have looked at the following post www.hikashop.com/forum/customers/900733-...s-limit-feature.html but it seems you can only restrict by product and not characteristic.

Also is there a way to set it so that I can select quantity 1 and apply it to a category but that it then allows a max of 1 of each product in that category instead of just 1 from the entire category.

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

  • Posts: 81504
  • Thank you received: 13063
  • MODERATOR
2 years 11 months ago #331985

Hi,

In each variant of your product, you have an "access level" setting that you can use to restrict a variant based on the user groups of the user.
The problem with that is that it works the opposite to what you need. In your case, you want to list the user groups not allowed to access the variant, and not the user groups allowed to access it.
So what you could do, is to create a custom product field to store the id of the user group you don't want to see the variant. And then, you could add a bit of custom code in product / show.php via Display>Views to skip the display of the add to cart area for the variants (and replace it with a message telling the user that he already bought it) depending on the value of that custom field and the user groups of the user.

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

Time to create page: 0.057 seconds
Powered by Kunena Forum