Commit Graph

19 Commits

Author SHA1 Message Date
Mekan1206
c48ad83548 Update DatabaseSeeder to include additional seeders and comment out FavoritesSeeder
- Added ProductCategoryRelationshipsSeeder, ProductBarcodesSeeder, SectionsSeeder, ProductPropertiesSeeder, and ProductPropertyValuesSeeder to DatabaseSeeder.
- Commented out FavoritesSeeder and SectionsSeeder for future adjustments.
2026-02-09 03:29:21 +05:00
Mekan1206
b4a05e3f8c Add FavoritesSeeder to DatabaseSeeder for data population 2026-02-09 02:32:52 +05:00
Mekan1206
bac1579285 Remove unused MorphToMany relationships from models and add CategoriesTableSeeder for category data population 2026-02-09 02:26:59 +05:00
Mekan1206
41d6ddc346 Update DatabaseSeeder to include CategoriesTableSeeder and adjust product seeders
- Added CategoriesTableSeeder to the run method in DatabaseSeeder.
- Commented out ProductsTableSeeder and ProductPricesSeeder for future adjustments.
2026-02-09 00:59:04 +05:00
Mekan1206
522ebdae34 Refactor product relations to use new category_product and channel_product tables
- Updated queries and relationships in various controllers and models to replace `product_has_relations` with `category_product` and `channel_product`.
- Adjusted methods in `ProductFilterer`, `FilterParamsController`, and `FilterController` to reflect the new database structure.
- Modified seeder to insert data into the new `channel_product` table.
- Updated tests to ensure compatibility with the new product relation structure.
2026-02-09 00:48:22 +05:00
Mekan1206
683fa5e0d9 Refactor helper functions and update seeders
- Simplified `tmpostChannel` and `tmpostDefaultInventory` functions by removing caching logic.
- Changed return type of `namesWithTaxes` method in `CategoryRepository` to `mixed`.
- Enabled `ProductsTableSeeder` and added user association logic for product relations.
- Updated `BrandsSeeder` to include the product ID in the slug.
- Added `old_customer_id` to `options` in `SellersTableSeeder` for user tracking.
2026-02-08 23:12:40 +05:00
Mekan1206
d83bc03258 WIP 2026-02-08 22:08:53 +05:00
Mekan1206
de1d7fbed8 wip 2026-02-08 21:34:32 +05:00
Mekan1206
d3156e228f seed sellers and warehouses 2026-02-08 21:26:06 +05:00
Mekan1206
299abeecbf needed 2026-02-08 20:32:40 +05:00
Mekan1206
201e112085 needed 2026-02-08 20:32:33 +05:00
Mekan1206
30a94b3533 WIP 2026-02-08 17:39:46 +05:00
Mekan1206
0d4499b131 WIP 2026-02-08 17:35:21 +05:00
Mekan1206
c46eccb24f Refactor code for improved readability and consistency
- Removed unnecessary blank lines in various files to enhance code clarity.
- Updated comments for consistency and clarity across multiple classes and methods.
- Adjusted spacing in test files for better formatting and readability.
2026-02-08 02:24:43 +05:00
Mekan1206
968c9ed42a Add product view tracking and related functionality
- Implemented product view tracking in ProductController to log user views.
- Added a relationship for viewed products in the User model.
- Introduced a method in ProductRepository to filter products viewed by a user.
- Updated API routes to include endpoint for retrieving viewed products.
- Commented out SMS notification logic in SendOrderCreatedNotification.
- Removed CreateOrderServiceTest as it is no longer needed.
2026-02-08 02:02:30 +05:00
dee6b0df56 wip 2026-02-05 18:09:47 +05:00
38fa0e2e45 Add properties filtering and relationships in Product model 2026-02-05 01:08:07 +05:00
e26d5422c6 fix order 2026-02-04 21:06:34 +05:00
326c677e8d reupload 2026-02-03 15:31:29 +05:00