Common Bugs and Solutions
This document outlines common issues encountered in the Sumaya369 system and their solutions.
Nodhom Orders Not Syncing
Problem
Orders are not being sent to Nodhom system automatically.
Solution
Run the MigrateAllOrdersToNodhomJob to sync pending orders:
\Bus::dispatch(new App\Jobs\MigrateAllOrdersToNodhomJob());
Cart Issues
Problem
Customers experiencing issues with their cart, such as:
- Items not being removed properly
- Stuck items in cart
Solution
Clear the customer's cart by running:
Customer::whereEmail('customer_email')->first()->cart()->delete();
Replace 'customer_email' with the actual customer's email address.
Unable to Add Course to Cart
Problem
Customers unable to add courses to their cart despite the course being available.
Solution
- Check the course settings
- Verify the conditions for adding the course to the cart are being met (CartService's generateProductsCollection() method)
- Double check special cases (adding course by special_id)
- Change course settings as necessary