The MDVA-30428 patch solves the Wishlist not working with the Magento Inventory (MSI). This patch is available when the Magento Quality Patch (MQP) tool v1.0.5 is installed.
Affected products and versions
- The patch was designed for Magento Commerce v2.3.5-p1.
- The patch is also compatible with the following Magento versions and editions: Magento Commerce and Magento Commerce Cloud v2.3.5 – 2.4.1.
Note: the patch can be applicable to other versions. To check if the patch is compatible with your Magento version, run ./vendor/bin/magento-patches
status
.
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:
- Create a new inventory source in the Magento Admin. For steps, refer to the Magento User Guide Catalog > Adding a New Source.
- Create a new stock inventory in the Magento Admin, assign the new source and default website to the new stock. For steps, refer to Magento User Guide Catalog > Adding a New Stock.
- Create a simple product and only assign the new stock as inventory.
- Visit the simple product details page in the frontend.
- 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 result:
The product should be added to the wishlist with the custom stock.
Actual result:
The product is not added to the wishlist and an error message shows.
Apply the patch
For instructions on how to apply an MQP patch, use the following links depending on your Magento product:
- Magento Commerce: DevDocs Software Update Guide > Apply patches.
- Magento Commerce Cloud: DevDocs Upgrades and Patches > Apply Patches.
Related reading
To learn more about Magento Quality Patches, refer to:
- KB Magento Quality Patches released: a new tool to self-serve quality patches.
- KB Check if patch is available for your Magento issue using Magento Quality Patches.
For info about other patches available in MQP tool, refer to the Patches available in MQP tool section.