Skip to content

Exception occurs when attempting to unset persistence cookie after visiting checkout #24218

Closed
@itmsenior

Description

@itmsenior

Preconditions (*)

  1. Magento v2.3.2
  2. Enable Persistent Shopping Cart

Steps to reproduce (*)

  1. Enable Persistence in in Magento Admin
  2. Sign-in as a customer and check the "Remember me" persistence checkbox on login.
  3. Add product to cart
  4. Trigger persistence by deleting phpsession cookie from browser
  5. Navigate to checkout
  6. Enter address information, select shipping option and press next
  7. Don't select a payment method, instead return to the homepage by pressing logo
  8. Press the "Not you?" link to clear persistence

Expected result (*)

  1. Persistence is cleared
  2. User is redirected to sign-in page

Actual result (*)

  1. Exception occurs: "The shipping address is missing. Set the address and try again"
    image

Triggered by:

if (!$shippingAddress->getCountryId()) { // Remove empty quote address $this->quoteAddressResource->delete($shippingAddress); throw new StateException(__('The shipping address is missing. Set the address and try again.')); }
Line 206 in vendor\magento\module-quote\Model\ShippingMethodManagement.php

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: CustomerFixed in 2.3.xThe issue has been fixed in 2.3 release lineFixed in 2.4.xThe issue has been fixed in 2.4-develop branchIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions