MDVA-39163: Shipping methods not available to newly registered users with products from guest session
The MDVA-39163 patch solves the issue where the shipping methods are not available when a new user is registered and products in the cart are from the guest session. This patch is available when the Quality Patches Tool (QPT) 1.1.9 is installed. The patch ID is MDVA-39163. Please note that the issue is scheduled to be fixed in Adobe Commerce 2.4.5.
Affected products and versions
The patch is created for Adobe Commerce version:
- Adobe Commerce (all deployment methods) 2.4.2-p1
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.3.5 - 2.4.3-p1
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
Shipping methods are not available when the new user is registered, and products in the cart are from the guest session.
Steps to reproduce:
-
Go to Admin > Stores > Configuration > Sales > Delivery Methods. Enable only the Flat Rate shipping method and disable everything else.
-
In the Flat Rate shipping method, select the Specific country option available in the Ship to Applicable Countries setting and select one country from the list (e.g., United States).
-
Go to Admin > Stores > Configuration > Customer > Customer Configuration and set Require Email Confirmation to Yes.
-
Create a new Email Template in Admin > Marketing > Email Templates and load
Footer (magento/luma)
template and replace the template content with a CMS block.code language-cms {{block class="Magento\Cms\Block\Block" block_id="footer_links_block"}}
-
Go to Admin > Content > Design > Configuration and select the theme which relates to your frontend website. Set the “Footer Template” to the new email template created.
-
Go to the frontend and add a product to the cart.
-
Create a customer; you’ll get an email to confirm the email address. Click the verification link. You will be logged into the website.
-
Go to My Account and add an address. Set the address country to the shipping country that you set in the admin configuration previously.
-
Go to checkout.
Expected results:
Shipping method is available, as the customer has an address that is compatible with the shipping country.
Actual results:
Shipping method is not available.
Apply the patch
To apply individual patches, use the following links depending on your deployment method:
- Adobe Commerce or Magento Open Source on-premises: Quality Patches Tool > Usage in the Quality Patches Tool guide.
- Adobe Commerce on cloud infrastructure: Upgrades and Patches > Apply Patches in the Commerce on Cloud Infrastructure guide.
Related reading
To learn more about Quality Patches Tool, refer to:
- Quality Patches Tool released: a new tool to self-serve quality patches in the support knowledge base.
- Check if patch is available for your Adobe Commerce issue using Quality Patches Tool in the Quality Patches Tool guide.
For info about other patches available in QPT, refer to Quality Patches Tool: Search for patches in the Quality Patches Tool guide.