Skip to content

Facades for Cart and Coupons #10

@mattias-sanfridsson

Description

@mattias-sanfridsson

Is your feature request related to a problem? Please describe.
We currently only support using the REST API for dealing with the cart. This may be insufficient for more complex shops where custom functionality needs to be combined with it.

Describe the solution you'd like
Implement facades and helper methods for managing the cart.

Additional context
Possibly also allow configuring whether the REST api should be enabled at all.

Implement facade methods for

  • Getting the cart summary
  • Getting the current cart count
  • Clearing the cart
  • Adding a cart item
  • Updating the quantity of a cart item
  • Removing a cart item
  • Applying a discount coupon

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions