How nasreddin-ben-hamouda/gestion-de-stock works
Gestion-de-stock is a PHP/MySQL storefront with account, catalog, cart, and order/payment pages, alongside product and stock administration. The visible flow starts with browsing or searching, opens a product detail, and uses order-related classes for cart and payment operations. The tree also indicates supplier, category, and stock-management areas. Several relationships are supported by excerpts or the source index; unsampled administration and payment behavior is represented without asserting unverified call paths.
Main entry points: db_conf.php MySQL database · commande.php Order model · single.php Product detail · panier.php Shopping cart
Components 24
Storefront
- Store header
header.php - Product search
search.php - Category browsing
categorie.php - Store home
acceuille.php - Product detail
single.php - Product collections
x.php
Accounts and orders
- Account access
moncompte.php - Registration
inscription1.php - Shopping cart
panier.php - Checkout
checkout.php - Payment selection
paiment.php - Bank transfer
virementban.php - Order history
commande1.php
Stock administration
- Stock management
stock.php - Product administration
ajoutproduit.php - Supplier management
ajoutfourn.php
Domain and data
- Product model
classe/produit.php - User model
classe/user.php - Order model
classe/commande.php - Product details model
classe/fiche_produit.php - MySQL database
db_conf.php - Database connector
classe/db_conf.php
Other components
- Shopper
- Administrator
Connections 35
- Shopper → Store header: browses
header.php - Store header → Product search: submits search
header.php - Store header → MySQL database: queries account
header.php - Product search → MySQL database: loads connection
search.php - Product search → Product detail: opens product
search.php - Shopper → Category browsing: browses categories
- Shopper → Store home: visits
- Shopper → Product collections: browses collections
- Product detail → User model: reads user
single.php - Product detail → Order model: uses orders
single.php - Product detail → Product model: loads product
single.php - Product detail → Product details model: loads details
single.php - Shopper → Account access: signs in
- Shopper → Registration: registers
- Shopper → Shopping cart: manages cart
- Shopping cart → Order model: reads and updates
panier.php - Shopping cart → User model: reads user
panier.php - Shopping cart → MySQL database: loads connection
panier.php - Shopper → Checkout: continues checkout
- Checkout → MySQL database: loads connection
checkout.php - Shopper → Payment selection: selects payment
- Payment selection → Order model: uses orders
paiment.php - Payment selection → MySQL database: loads connection
paiment.php - Shopper → Bank transfer: pays by transfer
- Bank transfer → Order model: uses orders
virementban.php - Administrator → Stock management: manages inventory
- Administrator → Product administration: maintains catalog
- Administrator → Supplier management: manages suppliers
- Product model → Database connector: opens connection
classe/produit.php - User model → Database connector: opens connection
classe/user.php - Order model → Database connector: opens connection
- Database connector → MySQL database: connects to
classe/db_conf.php - MySQL database → Product model: stores products
classe/produit.php - MySQL database → User model: stores accounts
classe/user.php - MySQL database → Order model: stores orders
classe/commande.php