Fatal error: Class Drupal\commerce_product_bundle_stock\ProductBundleStockProxy contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Drupal\commerce_stock\StockCheckInterface::getTotalAvailableStockLevel) in /app/modules/contrib/commerce_product_bundle/modules/commerce_product_bundle_stock/src/ProductBundleStockProxy.php on line 14
I have installed commerce_product_bundle $ lando composer require 'drupal/commerce_product_bundle:^1.0@alpha' in drupal 9 latest and enabled the module. Error started showing.
Comments
Comment #2
flutterstack commentedgetTotalAvailableStockLevel is an abstract method declared in StockCheckInterface. getTotalAvailableStockLevel is not defined in ProductBundleStockProxy. Hence error is throwing.
this code resolves the error but I am not sure method body is implemented correctly. kindly review method body and confirm. thank you.
Comment #3
socialnicheguru commentedI think that because there are no changes to code and the function will be inherited, it just has to be mentioned.