enjoyscms / catalog
There is no license information available for the latest version (6.1.0) of this package.
Module Catalog for EnjoysCMS
6.1.0
2025-08-10 15:21 UTC
Requires
- php: ^8.1
- ext-intl: *
- beberlei/doctrineextensions: ^1.3
- doctrine/orm: ^2.8
- enjoys/cartesian-iterator: dev-master
- enjoys/forms: >= 5.4.2
- enjoys/upload: ^3.0
- enjoyscms/admin: ^6.0@dev
- enjoyscms/core: ^6.0@dev
- enjoyscms/elfinder: ^6.0@dev
- enjoyscms/sitemap: ^6.0@dev
- gedmo/doctrine-extensions: ^3.0
- guzzlehttp/guzzle: ^7.7
- intervention/image: ^2.5
- jbroadway/urlify: ^1.2
- myclabs/deep-copy: ^1.10
- psr/event-dispatcher: ^1.0
- symfony/expression-language: ^6.0 | ^7.0
- symfony/property-access: ^6.0 | ^7.0
- symfony/serializer: ^6.0 | ^7.0
Requires (Dev)
- vimeo/psalm: ^4.20 | ^5.9
This package is auto-updated.
Last update: 2026-06-12 11:35:39 UTC
README
- Added to doctrine config in
/di/doctrine.php
use Gedmo\Tree\TreeListener; $evm = new EventManager(); $treeListener = new TreeListener(); $evm->addEventSubscriber($treeListener);
1.2 Added to root composer.json to extra->patches section
composer require cweagans/composer-patches:^1.7
"extra": { "patches": { "gedmo/doctrine-extensions": [ "modules/catalog/patches/gedmo-doctrine-extensions-src-tool-wrapper-entitywrapper-php.patch" ] } }
-
Define in DI
\Psr\EventDispatcher\EventDispatcherInterface -
Diff migration, migrate and clear cache-metadata
composer diff composer migrate
- Migration function
./vendor/bin/doctrine-migrations migrations:generate
//for Mysql insert to migration $this->addSql(<<<SQL CREATE FUNCTION CONVERT_PRICE( `price` INT, `main_currency` VARCHAR(3), `convert_currency` VARCHAR(3) ) RETURNS double DETERMINISTIC BEGIN IF (main_currency = convert_currency) THEN SET @result = price; ELSE SET @rate = (SELECT rate FROM catalog_currency_rate WHERE main = main_currency AND `convert` = convert_currency ); SET @result = price * @rate; END IF; RETURN @result; END; SQL);
composer migrate
- Setting elfinder
Options
disableEditProductCodeboolallowedPerPageintproductImageStoragestringstorageUploadsarrayproductFileStoragestringthumbnailServicearrayallowedPerPageint[]sortstringminSearchCharsintshowSubcategoryProductsbooldelimiterOptionsstringallocatedMemoryDynamicallyboolcurrencyarraydefaultstringratioarray
adminarraytemplate_dirstringsearchFieldsarrayeditorarrayproductDescriptioncategoryDescriptioncategoryShortDescription
moveProductsOutOfStockToEndbool Показывает товары не в наличии в самом конце списка