Role not being assigned on checkout.

Created on 12 April 2014, over 11 years ago
Updated 19 August 2025, 6 days ago

I am trying to determine why a product which is meant to assign a role to a user (via Commerce License) is not doing so. Here's the background:

On a Drupal Commerce site I am using, my intention was to have a product (yoga membership) tie in with the Commerce License module to assign a role (member) to last for 12 months. However, when I go to the Add an Order page and put the yoga membership into the cart for a test user and save the order, the role is not assigned to the user as expected.

The steps I took to enable the Commerce License were:

  • Enable commerce_license
  • Enable commerce_license_role
  • go to /admin/commerce/config/license and
    • while on the General tab, enable the product type that will be licensed, selecting at least one product type AND one line item type
    • while on the Role tab, select the product type that will be associated with a role
  • next, go to the product (membership, for ex) found at /admin/commerce/products/[product-id], edit it and set the
    • role to get when purchased
    • license duration for this product.

I've gone through the documentation a few times now and it doesn't seem like I missed anything, but the role is not being assigned. I realize it might be easier for you to see the site yourself, so I could give access to it if you'd like to look at the settings. Any help would be appreciated. Thanks very much.

πŸ’¬ Support request
Status

Closed: outdated

Version

1.2

Component

Documentation

Created by

πŸ‡¨πŸ‡¦Canada rajmataj

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024