Because carts are often correlated to sessions and may not work outside of production, let's delete all carts and their related entities. We can add an option to skip cart deletion, but I think it's reasonable to delete them all by default.

Note: I don't think we should delete all draft orders ... those created by admins would presumably still be editable by admins after sanitization. Just want to avoid things like an issue we had recently with Stripe, where a payment intent for live mode was erroring out checkout in dev.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

rszrama created an issue. See original summary.

khiminrm made their first commit to this issue’s fork.

khiminrm’s picture

Status: Active » Needs review

  • rszrama committed bd0bb486 on 1.0.x authored by khiminrm
    Issue #3427152 by khiminrm: Add the ability to delete all carts
    
rszrama’s picture

Status: Needs review » Fixed

Tested, works great.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.