Only show fields for selected license type

Created on 5 August 2015, about 10 years ago
Updated 19 August 2025, 5 days ago

If a product can be associated with more than one licence type and at least one of those licence types has fields, then currently, when creating the product, you are given the fields for all licence types.

Scenario:
- I have a product - premium content
- I have two licence types - single user and bulk user
- The single user type assumes the licence is for the current user
- the bulk user type has a field to ask for the users to grant licences for
- When creating a product, the user selects which license type (single or bulk)
- User should only see the bulk type's field if bulk type is selected

At least this seems to me to be how it should work. But I can see that when you select that a licence type can apply to a particular product, commerce_licence adds that licence type's fields to the product type bundle.

So maybe the solution is to have two product types, each with one (different) licence type. But if this is the case, I don't quite see why you'd want to have a product type that could have more than one licence type.

?

πŸ› Bug report
Status

Closed: outdated

Version

1.3

Component

User interface

Created by

πŸ‡¬πŸ‡§United Kingdom bsarchive

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