Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Feature Request: Item Basket with Shopping Cart Widget #2

@1mak

Description

@1mak

Here's and idea:

The current Item Basket widget could be extended with a quick overview of shopping cart items that are in the list. These items could be passed on in an array through a property. Additionally two optional links could be passed on via prop to display buttons that link to a cart items overview page and to a checkout page.

Example:

items: [{
  id: 1,
  title: 'Product A',
  price: '100.00',
  discount: '20.00',
  image: 'example.jpg',
  quantity: 2,
}]

links: [{
cart: {
  url: 'http://example.com/cart',
  variant: 'secondary'
},
checkout: {
  url: 'http://example.com/checkout',
  variant: 'primary'
}

Concerns: Not sure how to go about making the removal of individual items work in a generic way.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions