ACSD-57086: While using a multi-store setup with AsyncOrder processing…
While using a multi-store setup with AsyncOrder processing, orders placed on any websites/stores other than the main website are rejected due to issues with scope handling in the queue consumer code. Quality patch ACSD-57086 for magento/module-checkout-agreements applies to Magento Open Source and Adobe Commerce 2.4.3 to 2.4.6-p15.
- Categories
- Order/Checkout
- Components
- magento/module-checkout-agreements
- Origin
- adobe-commerce-support
- Since QPT
- 1.1.49
Issue
While using a multi-store setup with AsyncOrder processing, orders placed on any websites/stores other than the main website are rejected due to issues with scope handling in the queue consumer code.
Steps to reproduce
1. Install RabbitMQ and execute bin/magento setup:upgrade to create the queues for RabbitMQ. 1. Configure AsyncOrder processing with: bin/magento setup:config:set --checkout-async 1 1. Create a secondary website, a store, and a store view. 1. Create a product that is shared between both websites. 1. Enable terms and conditions: 1. Go to Stores > Configuration > Sales > Checkout > Checkout Options. 1. Set Enable Terms And Conditions to Yes. 1. Configure terms and conditions for both the websites: 1. Go to Stores > Terms And Conditions > Add New Condition. 1. Use the following settings: * Condition Name: Anything * Status: Enabled * Applied: Manually * Store View: Default Store View 1. Create another condition for the second website/store view. 1. Change the default website by going to Stores > All Stores. Click the second website, check Set as Default and save. 1. Clear the cache with: bin/magento cache:clear 1. Go to the Storefront and add a product to the cart. Proceed to checkout and place an order (you should see a checkbox in the payment method step to accept the terms and conditions). 1. Go back to Admin after placing the order, and change the default website back to the original main website and save. 1. Clear the cache: bin/magento cache:clear 1. Run the following command to start the queue consumer: bin/magento queue:cons:start placeOrderProcessor
Adobe's page lists 2.4.3 - 2.4.6-p7 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 ACSD-57086. On Cloud, add ACSD-57086 under stage.build.QUALITY_PATCHES in .magento.env.yaml.
For cweagans/composer-patches, choose a compatible version below and download the bundle. Copy its ACSD-57086/ 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.3 <2.4.7
- Magento Open Source
- 2.4.6-p15, 2.4.6-p14, 2.4.6-p13, 2.4.6-p12, 2.4.6-p11, 2.4.6-p10, 2.4.6-p9, 2.4.6-p8, 2.4.6-p7, 2.4.6-p6, 2.4.6-p5, 2.4.6-p4, 2.4.6-p3, 2.4.6-p2, 2.4.6-p1, 2.4.6, 2.4.5-p17, 2.4.5-p16, 2.4.5-p15, 2.4.5-p14, 2.4.5-p13, 2.4.5-p12, 2.4.5-p11, 2.4.5-p10, 2.4.5-p9, 2.4.5-p8, 2.4.5-p7, 2.4.5-p6, 2.4.5-p5, 2.4.5-p4, 2.4.5-p3, 2.4.5-p2, 2.4.5-p1, 2.4.5, 2.4.4-p18, 2.4.4-p17, 2.4.4-p16, 2.4.4-p15, 2.4.4-p14, 2.4.4-p13, 2.4.4-p12, 2.4.4-p11, 2.4.4-p10, 2.4.4-p9, 2.4.4-p8, 2.4.4-p7, 2.4.4-p6, 2.4.4-p5, 2.4.4-p4, 2.4.4-p3, 2.4.4-p2, 2.4.4-p1, 2.4.4, 2.4.3-p3, 2.4.3-p2, 2.4.3-p1, 2.4.3
- Adobe Commerce
- 2.4.6-p15, 2.4.6-p14, 2.4.6-p13, 2.4.6-p12, 2.4.6-p11, 2.4.6-p10, 2.4.6-p9, 2.4.6-p8, 2.4.6-p7, 2.4.6-p6, 2.4.6-p5, 2.4.6-p4, 2.4.6-p3, 2.4.6-p2, 2.4.6-p1, 2.4.6, 2.4.5-p17, 2.4.5-p16, 2.4.5-p15, 2.4.5-p14, 2.4.5-p13, 2.4.5-p12, 2.4.5-p11, 2.4.5-p10, 2.4.5-p9, 2.4.5-p8, 2.4.5-p7, 2.4.5-p6, 2.4.5-p5, 2.4.5-p4, 2.4.5-p3, 2.4.5-p2, 2.4.5-p1, 2.4.5, 2.4.4-p18, 2.4.4-p17, 2.4.4-p16, 2.4.4-p15, 2.4.4-p14, 2.4.4-p13, 2.4.4-p12, 2.4.4-p11, 2.4.4-p10, 2.4.4-p9, 2.4.4-p8, 2.4.4-p7, 2.4.4-p6, 2.4.4-p5, 2.4.4-p4, 2.4.4-p3, 2.4.4-p2, 2.4.4-p1, 2.4.4, 2.4.3-p3, 2.4.3-p2, 2.4.3-p1, 2.4.3
- Patch file
- patches/os/ACSD-57086_2.4.5-p5.patch
- vendor/magento/module-checkout-agreements/Model/Checkout/Plugin/GuestValidation.php
- vendor/magento/module-checkout-agreements/Model/Checkout/Plugin/Validation.php
