Commit Graph

44 Commits

Author SHA1 Message Date
5e98841eea Update app/Models/Ecommerce/Product/Category/Category.php 2026-03-04 23:28:31 +05:00
2b8f9aa314 wip 2026-03-02 07:30:59 +05:00
cb63c54c39 wip 2026-03-02 07:08:57 +05:00
b7bc192e6f wip 2026-03-02 07:01:14 +05:00
Mekan1206
1e84ceab3c Refactor code for consistency and clarity; update seeder comments, enhance error handling, and improve API routes. Added 'original' field to ProductMediaResource and adjusted various formatting issues across multiple files. 2026-02-20 15:33:29 +05:00
Mekan1206
a8599d9c79 WIP 2026-02-19 18:11:13 +05:00
Mekan1206
78ef14b99b WIP 2026-02-19 17:57:01 +05:00
Mekan1206
1a63c52106 WIP 2026-02-19 17:55:45 +05:00
Mekan1206
75a6af68eb WIP 2026-02-19 17:49:32 +05:00
Mekan1206
58c1915413 image 2026-02-19 06:22:37 +05:00
Mekan1206
ba537b7868 WIP 2026-02-19 01:08:52 +05:00
Mekan1206
bf69d6733b WIP 2026-02-19 00:47:22 +05:00
Mekan1206
9107d3118d WIP 2026-02-19 00:38:32 +05:00
Mekan1206
fac624b2a5 WIP 2026-02-19 00:35:01 +05:00
Mekan1206
9071c9a4c6 WIP 2026-02-18 23:38:01 +05:00
Mekan1206
18e510674a WIP 2026-02-18 23:37:02 +05:00
Mekan1206
073bbd497b only 400, 800, 1200 image resolutions remained 2026-02-18 23:32:00 +05:00
Mekan1206
ab3e69e831 WIP 2026-02-18 04:23:36 +05:00
Mekan1206
18401b908f WIP 2026-02-18 04:20:05 +05:00
Mekan1206
c712fa07ba WIP 2026-02-18 04:06:40 +05:00
Mekan1206
f011da72d9 WIP 2026-02-18 04:01:28 +05:00
Mekan1206
ec33006984 Update DatabaseSeeder to include MediaSeeder and enhance 404 error page localization
- Added MediaSeeder to DatabaseSeeder for improved data seeding.
- Updated 404 error page to use localized string for "Page not found" and added links for navigation.
- Added new translation for "Page not found" in tk.json.
2026-02-13 22:51:43 +05:00
Mekan1206
e2adf5e9da write me a warner 2026-02-11 03:15:43 +05:00
Mekan1206
9fac84a882 Enhance product handling and seeding logic
- Added a call to sync properties JSON in UpdateProductRelations job if the method exists.
- Updated ProductFieldsForDetail to provide a default value of '-' for missing property values.
- Simplified the insertion logic in ProductPropertyValuesSeeder by replacing 'tm' with 'tk' in the value field and removed commented-out code for clarity.
2026-02-09 23:15:56 +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
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
d3a528d264 WIP 2026-02-08 17:02:22 +05:00
Mekan1206
5337d2a804 WIP 2026-02-08 16:59:35 +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
2dfa3747b5 WIP 2026-02-08 02:07:05 +05:00
Mekan1206
25359c6b6e WIP 2026-02-08 02:04:01 +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
ace4442879 wip 2026-02-05 17:54:24 +05:00
eaae8b9be9 Refactor order creation logic by introducing CreateOrderService and removing the create method from OrderRepository. Update ProductRepository with stricter type declarations and fix minor typos in comments. 2026-02-05 01:29:10 +05:00
d0f962220c wip 2026-02-05 01:08:21 +05:00
38fa0e2e45 Add properties filtering and relationships in Product model 2026-02-05 01:08:07 +05:00
45bc0b61a1 wip 2026-02-04 21:08:52 +05:00
75c6484c6d wip 2026-02-04 21:07:55 +05:00
4e093ce18e add fillable to order 2026-02-04 21:02:05 +05:00
d9b7b0f930 opensms 2026-02-04 20:51:35 +05:00
326c677e8d reupload 2026-02-03 15:31:29 +05:00