MDVA-30428: wishlist not working with Inventory Management

The MDVA-30428 patch solves the wishlist not working with Inventory Management (MSI). This patch is available when the Quality Patches Tool (QPT) 1.0.5 is installed.

Affected products and versions

The patch is created for Adobe Commerce version:

  • Adobe Commerce (all deployment methods) 2.3.5-p1

Compatible with Adobe Commerce versions:

  • Adobe Commerce (all deployment methods) 2.3.3 – 2.3.3-p1 (QPT 1.0.6) and 2.3.5 – 2.4.1 (QPT 1.0.5)
NOTE
The patch might become applicable to other versions with new Quality Patches Tool releases. To check if the patch is compatible with your Adobe Commerce version, update the magento/quality-patches package to the latest version and check the compatibility on the Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.

Issue

On adding a product to the wishlist, when the product is assigned to a custom inventory source, the following message shows “We can’t add the item to Wish List right now: Cannot add product without stock to wishlist.

Steps to reproduce:

  1. Create a new inventory source in the Commerce Admin. For steps, refer to Catalog > Adding a New Source in our user guide.
  2. Create a new stock inventory in the Commerce Admin, assign the new source and default website to the new stock. For steps, refer to Catalog > Adding a New Stock in our user guide.
  3. Create a simple product and only assign the new stock as inventory.
  4. Visit the simple product details page in the frontend.
  5. Add the product to the wishlist. The following error shows: We can’t add the item to Wish List right now: Cannot add product without stock to wishlist.

Expected results:

The product should be added to the wishlist with the custom stock.

Actual results:

The product is not added to the wishlist, and an error message shows.

Apply the patch

To apply individual patches, use the following links depending on your deployment method:

To learn more about Quality Patches Tool, refer to:

For info about other patches available in QPT, refer to Patches available in QPT in our developer documentation.

recommendation-more-help
8bd06ef0-b3d5-4137-b74e-d7b00485808a