Sometimes, we need to empty the items in batch.
I had add one rest plugin by github PR, the code has tested.

https://github.com/mglaman/commerce_cart_api/pull/12/files

CommentFileSizeAuthor
#3 2974429-3.patch4.75 KBmglaman
#2 2974429-2.patch2.45 KBmglaman

Comments

164713332@qq.com created an issue. See original summary.

mglaman’s picture

Assigned: 司南 » Unassigned
Status: Needs review » Needs work
Issue tags: +Needs tests
StatusFileSize
new2.45 KB

Here is the code as a patch. We need tests

mglaman’s picture

Status: Needs work » Needs review
Issue tags: -Needs tests
StatusFileSize
new4.75 KB

Added a test.

mglaman’s picture

Status: Needs review » Reviewed & tested by the community

Tests pass!

  • mglaman committed 1b3ae0e on 8.x-1.x authored by canvaskent
    Issue #2974429 by mglaman, canvaskent: Add a clear Cart API  to empty...
mglaman’s picture

Status: Reviewed & tested by the community » Fixed

Committed! Thanks

Status: Fixed » Closed (fixed)

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