Change cart/add to the more versatile cart/[nid]/[op][qty] format described in #698988: cart/add doesn't add, but set the quantity.

CommentFileSizeAuthor
#1 783790.patch6.63 KBxen

Comments

xen’s picture

Status: Active » Needs review
StatusFileSize
new6.63 KB

Removed ec_cart_add, ec_cart_delete and ec_cart_edit, and replaced them by ec_cart_modify.

Fixed up tests, and added some missing breaks.

There's probably still room for some general refactoring of ec_cart, but this is a start.

gordon’s picture

Status: Needs review » Fixed

Thanks I have committed this.

Status: Fixed » Closed (fixed)

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