Disable the Role assignation

Created on 14 February 2024, 9 months ago
Updated 15 February 2024, 9 months ago

Problem/Motivation

We are selling licences that do not have any relation or dependency on the role of the user.
These are software licences, not content access roles
The user should be able to purchase many licences at the same time. And we don't want to change the role.

As of now, the cart system forces one licence Qty in the cart (I guess because of the role assignation system)

How can we disable this "feature" So user is free to purchase licences like any other product, while keeping the other functionality

Feature request
Status

Active

Version

3.0

Component

Code

Created by

🇨🇦Canada mastap

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @mastap
  • 🇬🇧United Kingdom joachim

    IIRC each license type plugin can define what counts 'different' licenses.

  • 🇨🇦Canada mastap

    Thanks for you reply @joachim
    In D7, there was a sub module called commerce_license_role
    In latests versions for D10, the code seems embedded in the main module and force it.
    I am looking for a way to have licence types that is not related to roles.
    Is there a specific plugin you think about?
    Is this in there? Or there are others to your knowledge?
    https://www.drupal.org/project/commerce_license/ecosystem

    Thanks again! :)

  • 🇬🇧United Kingdom joachim

    > In latests versions for D10, the code seems embedded in the main module and force it.

    No, it's not forced at all. It's the only license plugin that's OOTB. If you want something else, you need to create your own license plugin or install another module.

Production build 0.71.5 2024