202306-NEA-DZ-FEW/student-store-team-2

Add Buy/Borrow Functionalities to Single Product Page

Closed this issue · 0 comments

Description:
Implement the buy/borrow functionalities on the single product page by utilizing the createPurchase and createBorrow functions to insert orders into the system. Ensure the following:

  1. Integration of Functions: Implement createPurchase and createBorrow functions to enable users to place orders for buying or borrowing products respectively.
  2. User Interface Updates: Update the single product page UI to include options for buying or borrowing a product.
  3. Order Processing: Validate and process orders correctly based on user selections.
  4. Notifications and Toasts: Implement toast and notification functionalities to provide feedback to users after a successful order placement or any errors encountered during the process.
  5. Testing and Validation: Thoroughly test the functionalities to ensure they work as expected and handle edge cases gracefully.