MDVA-39195: The Add to Cart button is inactive on the Category Page…
The Add to Cart button is inactive on the Category Page when the redirect to cart is enabled. Quality patch MDVA-39195 for magento/module-catalog applies to Magento Open Source and Adobe Commerce 2.4.2 to 2.4.2-p2.
- Categories
- Shopping Cart
- Components
- magento/module-catalog
- Origin
- adobe-commerce-support
- Since QPT
- 1.1.2
Issue
The Add to Cart button is inactive on the Category Page when the redirect to cart is enabled.
Steps to reproduce
1. Go to Stores > Settings > Configuration > Sales > Checkout. 1. Expand the Shopping Cart section. 1. Set the After Adding a Product Redirect to Shopping Cart to Yes. 1. Visit the Category Page.
Adobe's page lists 2.4.2 - 2.4.2-p2 as compatible; the versions below are resolved from the current QPT constraints and are the ones the tool will offer.
Install
Install the Quality Patches Tool with composer require magento/quality-patches, apply the prerequisites listed for all files applicable to your distribution and version first, then run vendor/bin/magento-patches apply MDVA-39195. On Cloud, add MDVA-39195 under stage.build.QUALITY_PATCHES in .magento.env.yaml.
For cweagans/composer-patches, choose a compatible version below and download the bundle. Copy its MDVA-39195/ folder into patches/composer/, merge composer.patches.json into composer.json, then run composer install. Bundle prerequisites the same way and list them first. Paths are relative to each package root, using the default -p1 level. Prefer local files when configuring composer-patches; a remote URL can change.
Patch files and compatible versions
magento/magento2-base >=2.4.2 <=2.4.2-p2
- Patch file
- patches/os/MDVA-39195_2.4.2-p1.patch
- vendor/magento/module-catalog/view/frontend/templates/product/compare/list.phtml
- vendor/magento/module-catalog/view/frontend/templates/product/list.phtml
