Order Item Type doesn't appear on Product Variation Type

Created on 7 July 2023, over 1 year ago
Updated 12 July 2023, over 1 year ago

Problem/Motivation

Attempting to set up Commerce License to sell a role, both one-time and recurring. When configuring a Product Variation Type, the Order Item Type dropdown doesn't show the newly-created Order Item Type.

Steps to reproduce

Follow steps on the Dashboard (examplesite.com/admin/commerce/config/licenses/dashboard):

  • Configure a checkout flow which does not allow anonymous checkout.
  • Configure an Order Type to use this checkout flow.
  • Configure an Order Item Type to use this Order Type, and work with Licenses.

Attempt to configure a Product Variation Type to use this Order Item Type, and provide Licenses.

Result: newly created Order Item Type doesn't appear in the Order Item Type dropdown, even though the newly created Order Item Type uses the new Order Type and is set to work with licenses.

I tried clearing the cache several times, but that didn't help.

Proposed resolution

  • Ensure new Order Item Types appear in the Order Item Type dropdown
  • Provide on-screen feedback if there's a problem with the configuration steps so far

Thanks very much for any help or guidance you can provide!

πŸ’¬ Support request
Status

Active

Version

3.0

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States kristi wachter

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

Comments & Activities

  • Issue created by @kristi wachter
  • Assigned to TomTech
  • πŸ‡ΊπŸ‡ΈUnited States TomTech

    Hi @kristi-wachter !

    Thanks for the report, and using our new license dashboard to attempt to troubleshoot your issue.

    In researching, the only obvious OOTB reason for an order type to NOT show up when configuring the product variation type is if the Purchasable entity type specified on the Order Item Type is NOT a product variation.

    Have you, by chance, implemented a custom entity that implements the PurchasableEntityInterface, and specified that on the order item type configuration, instead of Product Variation?

  • πŸ‡ΊπŸ‡ΈUnited States kristi wachter

    Hi @TomTech,

    Thanks so much for the very helpful reply!

    That pointed me in the right direction - I'm not using a custom entity, I just somehow managed to create my Order Type Item without assigning a Purchasable Entity Type.

    Is there publicly-editable documentation for these steps that I could contribute to? I don't always find time to help out with documentation, but I'd love to contribute if I can.

    Thanks again for your quick assistance!

    Kristi

Production build 0.71.5 2024