MINHA MART PORTAL - INSTALL (about 10 minutes)

1. cPanel > Domains (or Subdomains): note the "Document Root" of portal.minhamart.com.bd
   (example: /home/USERNAME/portal.minhamart.com.bd).
2. cPanel > File Manager > open that folder > Upload > upload minhamart-portal.zip > right-click > Extract.
   After extracting, index.html, api.php and the assets folder must be directly inside the document root
   (if they are inside a minhamart-portal folder, move them one level up).
3. Rename config.sample.php to config.php, then Edit it:
   - wc_url stays https://minhamart.com.bd
   - paste wc_key and wc_secret (step 4)
4. Create the WooCommerce API key (on the MAIN site, minhamart.com.bd):
   WP Admin > WooCommerce > Settings > Advanced > REST API > Add key
   Description: Portal | User: your admin | Permissions: Read/Write > Generate.
   Copy the Consumer key (ck_...) and Consumer secret (cs_...) into config.php.
   You see the secret only once. Never send these keys to anyone.
5. cPanel > SSL/TLS Status > run AutoSSL so https://portal.minhamart.com.bd works with a padlock.
6. Open https://portal.minhamart.com.bd. First time it asks you to create the admin account.
7. Admin can add staff in the "Staff" module and choose which modules each staff member can open.

NOTES
- The data/ folder keeps suppliers, purchases, stock log and staff accounts. Back it up from time to time.
- Product add / edit / delete, orders and stock changes go straight to the main website through the WooCommerce REST API.
- Product images: paste an image link (URL). Upload the picture to the main site's Media library first and paste its link.
- If you see a "Store error" message, the API key or the main site's firewall is the likely reason.
