EgbieAndersonUku1 / Fullstack-fruit-and-veg

Fullstack Fruit & Veg Shop: A web application developed with HTML, CSS, and JavaScript for the frontend, and Django for the backend. Features include user authentication, a product catalogue, shopping cart functionality, and order management. and much more
https://fullstack-fruit-and-veg.vercel.app
0 stars 0 forks source link

Refactor `detailed-description-specs.html` and Update README.md #8

Closed EgbieAndersonUku1 closed 2 months ago

EgbieAndersonUku1 commented 2 months ago

Refactor detailed-description-specs.html and Update README

  1. Refactored Color and Size Selection:

    • Created Utility Functions: Added two new functions to src/account/utils/product_category_utils.py:
      • get_product_size_choices()
      • get_product_color_choices()
    • Removed Static Color and Size Selection: Eliminated the previous hardcoded color and size options from detailed-description-specs.html.
    • Dynamic Rendering: Implemented dynamic loops in the frontend to render color and size options based on the data provided by these new functions. This change allows:
      • Enhanced Flexibility: Users can now add or remove colors and sizes through the backend without modifying the frontend code.
      • Simplified Maintenance: Easier to manage and update color and size options directly from the backend.
  2. Updated Documentation:

    • Removed Duplicate Entry: Cleaned up README.md by removing redundant information.
vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
fullstack-fruit-and-veg ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 19, 2024 2:47am