johnamdickson / portfolio-project-5

1 stars 1 forks source link

BUG: Navbar menu bugs on cart page. #37

Closed johnamdickson closed 8 months ago

johnamdickson commented 8 months ago

Epic:

Shopping Cart #24 **Bug Description:** Observed 2 bugs on cart page navbar dropdown menus. The first bug encountered was that non-category items were missing from the menus. The second bug was the lack of any custom styling on the navbar and dropdown menus which is present in the other pages. **Actions to Resolve:** The first bug was resolved by including unfiltered_products in the cart view context. The second bug was took a little more time to diagnose and rectify. I was able to resolve it by removing the `{% block postloadjs %}` block. Having this block in place seems to require the `{{ block.super }}` to be called to run the script, regardless if main block is empty.