scandipwa / scandipwa

Next-generation front-end for Magento 2
https://scandipwa.com/?utm_source=github&utm_medium=readme&utm_campaign=general
Open Software License 3.0
543 stars 314 forks source link

Internal server error message appears when logging in if guest had the same product with the same options as logged in customer #5076

Open aleksandrakorolova opened 2 years ago

aleksandrakorolova commented 2 years ago

Internal server error message appears when logging in if guest had the same product with the same options as logged in customer

Expected result: No errors and carts are merged correctly

Steps:

  1. Open Sign in form
  2. Log in with user X
  3. Open PDP with bundle or customizable options
  4. Add product to cart
  5. Log out
  6. Open the same PDP
  7. Select the same Options
  8. Open Sign in form
  9. Log in with the same user

Actual result: Internal server error appears https://vimeo.com/732356666/b605d5a47e

[2022-07-22T06:02:30.759873+00:00] main.ERROR: Argument 1 passed to Magento\InventoryConfiguration\Model\IsSourceItemManagementAllowedForProductType\Interceptor::execute() must be of the type string, null given, called in /var/www/public/vendor/magento/module-inventory-sales/Model/GetProductSalableQty.php on line 108 GraphQL (1:68) 1: mutation($source_cart_id_1:String!,$destination_cart_id_1:String!){mergeCarts(source_cart_id:$source_cart_id_1,destination_cart_id:$destination_cart_id_1){id}}

gnumus commented 7 months ago

Hi @aleksandrakorolova does the issue still persist? Or it was fixed?