437d4c78dc
ver. 0.288: BasketCalculator + ShopBasketController migration, cms\Layout removal
...
- Migrate front\factory\ShopBasket → Domain\Basket\BasketCalculator (4 static methods, 18 callers updated)
- Migrate front\controls\ShopBasket → front\Controllers\ShopBasketController (camelCase, instance methods)
- Add snake_case→camelCase action dispatch for new controllers in Site::route()
- Update title()/page_title() to check front\Controllers\ before fallback
- Remove cms\Layout class (replaced by $layoutsRepo->find())
- Add 8 tests for BasketCalculator (484 tests, 1528 assertions)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-17 09:38:45 +01:00
3b50ba7990
ver. 0.287: Scontainers + ShopAttribute frontend migration to Domain
...
- Scontainers: frontScontainerDetails() with Redis cache in ScontainersRepository
- Scontainers: new front\Views\Scontainers VIEW, deleted factory + view legacy
- ShopAttribute: frontAttributeDetails(), frontValueDetails() with Redis cache in AttributeRepository
- ShopAttribute: clearFrontCache() per attribute/value + language
- ShopAttribute: deleted front\factory\ShopAttribute, updated 4 callers
- Tests: 476 OK, 1512 assertions (+6 frontend tests)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-17 08:47:21 +01:00
8162df7356
ver. 0.286: Layouts, Menu, Pages frontend migration to Domain
...
- Add 6 frontend methods to LayoutsRepository (Redis cache, 3-level fallback)
- Add 6 frontend methods to PagesRepository (Redis cache, recursive pages)
- Create front\Views\Menu (clean VIEW replacing front\view\Menu)
- Delete front\factory\Layouts, Menu, Pages + front\view\Menu + dead submenu.php
- Fix null $lang_id TypeError in check_url_params() (remove string type hint + ?? '')
- Optimize Helpers::htacces() from 3 layout calls to 1
- Tests: 470 OK, 1484 assertions (+16 new)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-17 08:21:53 +01:00
d2c9d97710
ver. 0.285: Tpl → Shared\Tpl namespace, CurlServer removal, thumb.php fix
...
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-17 00:13:59 +01:00
6922b66eed
ver. 0.284: DbModel elimination, update packages for 0.283-0.284
...
- Removed class.DbModel.php — only consumer (shop\Promotion) now has
inlined constructor + __get()
- Created update packages: ver_0.283.zip (S→Helpers migration, ~130 files),
ver_0.284.zip (DbModel removal)
- Updated docs: CHANGELOG, PROJECT_STRUCTURE, FRONTEND_REFACTORING_PLAN
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-16 23:31:03 +01:00
8e97413361
ver. 0.282: Banners frontend migration, Cache cleanup, Shared\Cache namespace
...
- Banners frontend: front\Views\Banners (new), BannerRepository +2 frontend methods,
front\view\Site przepięty, usunięte front\factory\Banners i front\view\Banners
- Cache cleanup: eliminacja legacy class.Cache.php (file-based cache),
13 metod front\factory przepiętych z \Cache::fetch/store na CacheHandler
- Shared\Cache namespace: CacheHandler i RedisConnection przeniesione do Shared\Cache\,
60 odwołań CacheHandler i 12 odwołań RedisConnection przepiętych,
usunięte backward-compat wrappery class.CacheHandler.php i class.RedisConnection.php
- Naprawione rozbieżności kluczy cache (random_products, category_name)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-16 21:25:50 +01:00
0402dbee76
ver. 0.280: Articles frontend migration, class.Article removal, Settings facade cleanup
...
- Add 8 frontend methods to ArticleRepository (with Redis cache)
- Create front\Views\Articles (rendering + utility methods)
- Rewire front\view\Site::show() and front\controls\Site::route() to repo + Views
- Update 5 article templates to use \front\Views\Articles::
- Convert front\factory\Articles and front\view\Articles to facades
- Remove class.Article (entity + static methods migrated to repo + Views)
- Remove front\factory\Settings facade (already migrated)
- Fix: eliminate global $lang from articleNoindex(), inline page sort query
- Tests: 450 OK, 1431 assertions (+13 new)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-16 15:52:03 +01:00
c910982abf
ver. 0.279: Newsletter frontend migration, Languages facade elimination, bug fix newsletter_unsubscribe
...
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-16 15:11:38 +01:00
782dd35d5b
ver. 0.278: Settings + Languages frontend migration, bug fix get_single_settings_value
...
- Add cached frontend methods to existing Domain repositories (allSettings, getSingleValue, defaultLanguage, activeLanguages, translations)
- Convert front\factory\Settings and Languages to facades delegating to Domain repositories
- Fix get_single_settings_value() - was hardcoded to 'firm_name', now uses $param correctly
- Add CacheHandler stub methods (get/set/exists) to test bootstrap
- Establish architectural rule: Domain classes are shared between admin and frontend
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-16 13:50:27 +01:00
d012a694c2
ver. 0.276: ShopOrder migration, Integrations cleanup, global admin search
2026-02-15 16:41:48 +01:00
875433d7fd
chore(updates): add 0.275 changelog entry and bump versions
2026-02-15 15:34:52 +01:00
df24da8915
ver. 0.274 - ShopClients Domain+DI migration
2026-02-15 15:03:24 +01:00
449e5fbe1c
updates: add ver_0.273 package and release metadata
2026-02-15 11:44:01 +01:00
fe51a1f4c4
ver. 0.272 - ShopProductSets refactor + update package
...
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-15 10:29:21 +01:00
e51ac7f82b
ver. 0.271 - ShopAttribute refactor + update package
2026-02-14 21:12:17 +01:00
34e23338da
ver. 0.270 - Apilo payment/status sync hardening
2026-02-14 20:27:01 +01:00
9c23e7f16b
ver. 0.269: ShopPaymentMethod refactor + Apilo keepalive
2026-02-14 15:22:02 +01:00
847fdbbf3f
refactor(shop-statuses): migrate to DI, restructure docs into docs/ folder (0.268)
...
- Migrate ShopStatuses module to Domain + DI architecture
- Add ShopStatusRepository, ShopStatusesController with color picker
- Convert front\factory\ShopStatuses to facade
- Add FormFieldType::COLOR with HTML5 color picker
- Move documentation files to docs/ folder (PROJECT_STRUCTURE, REFACTORING_PLAN, CHANGELOG, FORM_EDIT_SYSTEM, TESTING, DATABASE_STRUCTURE)
- Tests: 254 tests, 736 assertions
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-14 10:43:31 +01:00
7574785d68
release 0.267: front layout/basket fixes and product redirect hardening
2026-02-14 00:56:09 +01:00
40e777afe6
refactor(shop-coupon): migrate admin module to DI and release 0.266
2026-02-14 00:05:23 +01:00
88e5673569
Release 0.265: ShopPromotion date_from and edit save fix
2026-02-13 22:44:07 +01:00
d824ba3909
Integrations DI refactor, remove Sellasist/Baselinker, fix product-edit encoding (0.263)
...
- New: Domain\Integrations\IntegrationsRepository + admin\Controllers\IntegrationsController (DI)
- Cleanup: removed all Sellasist and Baselinker integrations from entire project
- Fix: product-edit.php Polish characters (UTF-8/CP1250 double-encoding)
- Update: factory\Integrations as facade (Apilo + ShopPRO only)
- Tests: 212 tests, 577 assertions
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-13 21:59:26 +01:00
67705f1f56
ver 0.262 - pages module refactor and admin UX fixes
2026-02-13 21:17:21 +01:00
26ebf59849
Fix release numbering: rename update package to 0.261
2026-02-13 09:02:47 +01:00
5354f97baa
Articles: finish admin refactor, uploads hardening, and attachment sorting (0.262)
2026-02-13 09:00:24 +01:00
0ac74b6cf4
refactor newsletter module and disable prepare/user templates
2026-02-12 23:26:28 +01:00
76287923e8
refactor layouts module to domain/di and prepare 0.256 release
2026-02-12 22:54:47 +01:00
5e9b998043
Release 0.255: migrate remaining Languages usages to repository DI
2026-02-12 22:28:57 +01:00
a02f718a41
refactor languages module to domain/controller and release 0.254 update package
2026-02-12 22:10:37 +01:00
2ecc4fd9be
refactor users module to domain/controller and release 0.253 update package
2026-02-12 21:44:40 +01:00
6dd3f7b4d4
Add release 0.252 update artifacts
2026-02-11 00:12:08 +01:00
fe4e98d9bd
ver. 0.251 - migrate Dictionaries to Domain/Controller and remove legacy classes
2026-02-10 00:04:32 +01:00
211081121f
ver 0.250: migrate settings to form-edit and cleanup legacy settings classes
2026-02-08 20:13:01 +01:00
926b6fcbca
Release 0.249: banner edit fixes and thumbnail popup
2026-02-08 17:29:52 +01:00
0b80524d71
Release 0.248: auto-submit table filters on change
2026-02-08 02:04:08 +01:00
9a72d92e13
Release 0.247: improve delete confirmation dialog
2026-02-08 01:58:59 +01:00
bbf0c075b8
Release 0.246: migrate banners list to new table
2026-02-08 01:53:22 +01:00
d709a3df7b
Release 0.245: refactor articles list and update package
2026-02-08 01:35:13 +01:00
919294d1f7
feat: Update version to 0.244 and refactor article_save and article_delete methods in ArticleRepository
2026-02-06 19:57:01 +01:00
6c21b835da
feat: Implement cleanup methods for nonassigned article files and images in ArticleRepository
2026-02-06 08:57:22 +01:00
e33978e1bb
feat: Refactor article handling and introduce ArticleRepository
...
- Introduced Domain\Article\ArticleRepository for better data access.
- Migrated article_edit functionality to admin\Controllers\ArticlesController.
- Updated admin\factory\Articles::article_details() to use the new repository.
- Marked legacy methods in admin\controls as @deprecated for clarity.
- Updated changelog and versioning to reflect changes in version 0.242.
2026-02-06 08:41:34 +01:00
f1c7019cc5
Refactor code structure for improved readability and maintainability
2026-02-06 01:45:58 +01:00
1c88f8adfa
Add new settings and cache repository files, update admin settings controller and templates
...
- Introduced new `SettingsRepository` and `CacheRepository` classes in the `autoload\Domain` namespace.
- Updated `SettingsController` in the `admin\Controllers` namespace to enhance settings management.
- Added new templates for settings in `admin\templates\settings` and `admin\templates\site`.
- Improved overall structure and organization of settings-related files.
2026-02-05 23:32:48 +01:00
3a7be21432
Add new version 0.238 zip file containing updated ProductRepository and Product class files
2026-02-05 01:53:28 +01:00
16cccac782
Dodano obsługę duplikatów zamówień w Apilo oraz zaktualizowano dokumentację i wersję do 0.236
2026-02-04 22:30:36 +01:00
43aebc166f
Add new update package version 0.235 to autoload admin
2026-01-27 23:47:10 +01:00
9eecf6b415
Add new columns to producer and product language tables
...
- Added 'data' column to 'pp_shop_producer_lang' table for additional metadata storage.
- Added 'security_information' column to 'pp_shop_products_langs' table to enhance product security details.
2026-01-04 21:22:40 +01:00
290aa31aa7
Add two-factor authentication fields to pp_users table and update .htaccess for security
...
- Added columns for two-factor authentication (2FA) in the pp_users table:
- twofa_enabled (TINYINT)
- twofa_email (VARCHAR)
- twofa_code_hash (VARCHAR)
- twofa_expires_at (DATETIME)
- twofa_sent_at (DATETIME)
- twofa_failed_attempts (INT)
- Updated the twofa_enabled and twofa_email for user with id 0.
- Enhanced .htaccess to disable directory listing, block execution of sensitive files, and prevent serving hidden files.
2025-12-11 23:57:22 +01:00
d903f9fc55
Refactor code structure for improved readability and maintainability
2025-09-28 18:27:48 +02:00
ef15f16e18
Add is_required column to pp_shop_products_custom_fields table
...
This commit introduces a new column `is_required` to the `pp_shop_products_custom_fields` table. The column is of type TINYINT, cannot be null, and has a default value of 1. This change is intended to enhance the product custom fields by allowing the specification of whether a field is mandatory.
2025-08-19 20:31:44 +02:00