[Answer]-How to add Product to shopping cart?

1👍

What are quantity and unit_price from a basic usage of django-cart:

Quantity is the number of that product in your line item.

If you say 3, it means there are 3 of the “product” in your cart. This is typically related to an input type='text' field with an add to cart button next to it.

unit_price is the price of a single unit of your product. It is not automatically pulled from the product because it may well differ from what the product price actually is.

For example, maybe there’s a 20% sale; this system allows you to have prices in the cart that differ from the product price.

Leave a comment