The cart item list component presents a collection of cart items. Always as a list view. Each cart item is accompanied by a summary of the product details, quantity input, delete button and price.
<aside> ℹ️ Usually, styling this element takes from-to: 4-6h
</aside>
A cart item list is a very common element of the e-commerce site. It can be found on the following elements:
The cart item should be displayed in the following states:
Please account for the following:
Cart page
Cart overlay
Checkout page
Issues with the design
The CartItem
component is responsible for rendering the cart item. Cart items are rendered in renderCartItem
method in CartPage.component.js
, CartOverlay.component.js
and in items.map(this.renderItem
) in CheckoutOrderSummary.component.js
because showItems
prop is passed from Checkout.component.js
<aside>
➡️ In cart items for price render CartItemPrice
component is used, which is styled in the scope of price styling How to theme a product price
</aside>
<aside> ➡️ Taking some examples from the previous projects, the fact, that ScandiPWA version possibly will be different, should be taken into consideration
</aside>