As a Shopper, I can easily view the total of my purchases at any time so that I can keep track of what I'm spending.
Acceptance Criteria:
The shopping bag icon is available from the navbar to easily access the shopping bag from any page in the site.
When the user clicks on the shopping bag icon, they are taken to the shopping bag page where they can see the contents of their bag and the total cost.
Every time a product is added, the bag preview is displayed, including the total amount in the shopping bag.
Tasks:
[x] Add the shopping bag icon to the navbar.
[x] Create contexts.py to create a session variable to store all the items in the bag and calculates subtotal, delivery charge and total.
[x] Add the contexts.py to settings.py so that the shopping bag is accessible from all the pages across the site.
[x] Create HTML to render the bag contents in bag.html
[x] Create HMTL to render the preview of the bag in toast_success.html
As a Shopper, I can easily view the total of my purchases at any time so that I can keep track of what I'm spending.
Acceptance Criteria:
Tasks: