Problem/Motivation

Started with a clean version of Drupal 11.2.

The recipe made it through 19 out of 23 steps before hanging a bit and then ending with this erro:

In EntityTypeManager.php line 139:
                                                                
  The "commerce_product_variation" entity type does not exist.  

Steps to reproduce

composer require drupal/cwo_demo
 cd web
   ../vendor/drush/drush/drush recipe ../recipes/cwo*/

TIA!

Issue fork cwo_demo-3538203

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

bogdog400 created an issue. See original summary.

bogdog400’s picture

When I enable the modules manually, I start getting this error:

The configuration 'commerce_price.commerce_currency.USD' exists already and does not match the recipe's configuration
interdruper’s picture

@bogdog400, try to copy your current config commerce_price.commerce_currency.USD.yml to the recipe config folder and/or use 'strict:false' in recipe.yml:

name: Commerce Webform Order Demo
description: Initial configuration for Commerce Webform Order
type: Site
install:
  - commerce_payment_example
  - commerce_purchasable_entity
  - commerce_webform_order
  - webform_entity_handler
config:
  strict: false
  import:
    commerce_cart: '*'
    commerce_checkout: '*'
    commerce_order: '*'
    commerce_payment: '*'
    # @todo Remove when product is not required by cart.
    commerce_product: '*'
    commerce_store: '*'
mlncn’s picture

Same error, The "commerce_product_variation" entity type does not exist. And this is starting on an installation that had no commerce installed.

mlncn’s picture

Version: 1.0.0 » 1.0.x-dev

mlncn’s picture

Status: Active » Needs review

The commerce_product module needs to be installed first, is all. Fix in issue fork.

thejimbirch’s picture

Status: Needs review » Reviewed & tested by the community

Change makes sense. Since you are importing the config from the module, you should ensure it is installed.

Marking as RTBC.

pcambra’s picture

Status: Reviewed & tested by the community » Needs work

I don't think we should be depending on commerce_product, as this uses https://www.drupal.org/project/commerce_purchasable_entity

facine made their first commit to this issue’s fork.

facine’s picture

Status: Needs work » Fixed

Fixed! Thanks everyone.

The issue was that #3323623: Remove Commerce Product dependency from Commerce Cart and Commerce Checkout was finally merged into Commerce, and now Commerce Product is no longer required by the cart. The recipe has been updated to remove the dependency on Commerce Product and a basic verification test has been added.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

bogdog400’s picture

Thx!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.