Error in file SalepriceResolver.php

Created on 13 March 2025, 28 days ago

Problem/Motivation

When my reservation is put on cart, I have this error

Error: Call to undefined method Drupal\commerce_cart\CartManager::getCart() in Drupal\bee\Resolvers\SalepriceResolver->resolve() (line 46 of modules/contrib/bee/src/Resolvers/SalepriceResolver.php). 

On create function we have this

  /**
   * {@inheritdoc}
   */
  public static function create(ContainerInterface $container) {
    $instance->cartProvider = $container->get('commerce_cart.cart_provider');
    return $instance;
  }

But instance is not define.

And why we have this file SalepriceResolver.php closest SalepriceResolver.php.

Thanks

🐛 Bug report
Status

Active

Version

11.1

Component

Code

Created by

🇫🇷France Ilyna

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

Comments & Activities

Production build 0.71.5 2024