Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
PUT /v1/shop/{shopName}/carts/current/items/{itemIndexitemName}?quantity={quantity}
  • Updates a cart item (quantity)
  • See ShopUtil.updateItemQuantity()
  • NOTE: Items in the Magnolia shopping cart have been referenced with the product id... and the index. Product id is usually good enough to identify the cart item. But since the Magnolia shop allows options (e.g. size, color...) two products with different options configuration can be added and will produce separate cart items. To simplify we're using the itemIndex now.

...

Code Block
DELETE /v1/shop/{shopName}/carts/current/items/{itemIndexitemName}
  • removes a cart item from the cart
  • See ShopSigletonParagraphTemplateModel.updateItemQuantity()
  • probably not needed > updating the quantity to 0 does exactly the same

...