Skip to content

Hey there ๐Ÿ‘‹! This C++ project is your go-to client-side application for a shopping system that's fully integrated with an Oracle database. Below is a quick rundown of what's under the hood.

Notifications You must be signed in to change notification settings

YuhanPizza/CustomerOrderManagementSystem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Welcome to the Shopping System Client

Hey there ๐Ÿ‘‹! This C++ project is your go-to client-side application for a shopping system that's fully integrated with an Oracle database. Below is a quick rundown of what's under the hood.

๐Ÿ›  Main Components

  • ShoppingCart Struct: Think of it as your virtual cart where you stash all the products you're interested in.
  • Connection and Environment Variables: These guys make sure we can chat with the Oracle database smoothly.
  • Main and Sub-Menus: Simple and intuitive UI for you to navigate through login and customer service options.

๐Ÿ“š Main Functions

  • mainMenu() and subMenu(): These show you your basic choicesโ€”log in, customer service, and so on.
  • customerService(): Once you're in, here's where you can place an order, check its status, or even cancel it.
  • displayOrderStatus(): Feeling anxious? Check how far along your order is!
  • cancelOrder(): Changed your mind? No worriesโ€”just cancel it right here.
  • createEnvironment() and terminateEnvironment(): These set up and tear down your connection to the Oracle database.
  • openConnection() and closeConnection(): Self-explanatory, reallyโ€”get connected and then say goodbye.
  • customerLogin(): This function checks if you're in the database before letting you in.
  • addToCart(): See something you like? Add it to your cart!
  • displayProducts(): Peek inside your cart whenever you like.
  • checkout(): Ready to make it official? This will process your order and update the database.

๐Ÿ“‚ Database Interactions

  • find_customer Procedure: This helps customerLogin() confirm you're an existing customer.
  • find_product Procedure: Used by addToCart() to find out how much you need to pay for that awesome product.

๐Ÿšจ Note: The code seems to be a work in progressโ€”so don't be surprised if some functions like findProduct() or checkout() are still getting dressed (i.e., they're called but not fully implemented).

๐Ÿ›ก Error Handling

We've got try-catch blocks in place for dealing with any SQL mishaps, so rest easy!

๐ŸŽฌ Program Flow

  1. You're greeted with a main menu: Login or Exit.
  2. If you opt to login, the program checks if you're in the database.
  3. If you are, welcome aboard! You'll see a customer service menu where you can place, check, or cancel your orders.

That's the grand tour! Feel free to dive in and explore. Happy shopping! ๐Ÿ›’

About

Hey there ๐Ÿ‘‹! This C++ project is your go-to client-side application for a shopping system that's fully integrated with an Oracle database. Below is a quick rundown of what's under the hood.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages