Akeneo PIM Enterprise Edition 4.0.~
If you want to install this bundle via composer you can either use the following command:
$ composer require basecom/akeneo-rules-ui
or include the bundle in your composer.json
with the desired version.
Enable the bundle in the config/bundles.php
file like:
return [
// ...
Basecom\Bundle\RulesEngineBundle\BasecomRulesEngine::class => ['all' => true],
]
Enable the route in the 'config/routes/routes.yml' file
basecom_rules_routing:
resource: "@BasecomRulesEngine/Resources/config/routing/rules.yml"
Clear you cache:
bin/console cache:clear --no-warmup --env=prod
bin/console pim:install:assets --env=prod
bin/console cache:warmup --env=prod
yarn run less
yarn run webpack
-
OverwriteRuleController.php overwrites the standard Akeneo RuleController to extend the view with a edit button in the rule overview.
-
Operator Between and not Between is disabled
- STARTS WITH
- ENDS WITH
- CONTAINS
- DOES NOT CONTAIN
- EMPTY
- NOT EMPTY
- EQUAL ( = )
- NOT EQUAL ( != )
- IN
- NOT IN
- UNCLASSIFIED
- IN OR UNCLASSIFIED
- IN CHILDREN
- NOT IN CHILDREN
- GREATER ( > )
- GREATER OR EQUAL ( >= )
- SMALLER ( < )
- SMALLER OR EQUAL ( <= )
STARTS WITH
- Attribute (no Simple or Multliselect)
- Locale (optional)
- Scope (optional)
- Value
ENDS WITH
- Attribute (no Simple or Multliselect)
- Locale (optional)
- Scope (optional)
- Value
CONTAINS
- Attribute (no Simple or Multliselect)
- Locale (optional)
- Scope (optional)
- Value
DOES NOT CONTAIN
- Attribute (no Simple or Multliselect)
- Locale (optional)
- Scope (optional)
- Value
EMPTY
- Attribute, Family (family.code), Groups (groups.code)
- Locale (optional)
- Scope (optional)
NOT EMPTY
- Attribute, Family (family.code), Groups (groups.code)
- Locale (optional)
- Scope (optional)
EQUAL ( = )
- Attribute, created, updated, enabled, completeness
- Value (dates format: yyyy-mm-dd) (enabled and yes/no format = true or false)
- Locale (optional)
- Scope (optional)
- Unit (optional, only if a metric Attribute is selected)
NOT EQUAL ( != )
- Attribute (Number or Metric), created, updated, enabled, completeness
- Value (created, updated dates format: yyyy-mm-dd)(enabled format = true or false)
- Locale (optional)
- Scope (optional)
- Unit (optional, only if a metric Attribute is selected)
IN
- Simple, Multiselect Attribute, Category (categories.code), Family (family.code), Groups (groups.code)
- Locale (optional)
- Scope (optional)
- One or more value
NOT IN
- Simple, Multiselect Attribute, Category (categories.code), Family (family.code), Groups (groups.code)
- Locale (optional)
- Scope (optional)
- One or more value
UNCLASSIFIED
Only available on Categories
- Field = categories.code
- No Attributes have to be selected
IN OR UNCLASSIFIED
Only available on Categories
- Field = categories.code
- Category code
IN CHILDREN
Only available on Categories
- Field = categories.code
- Category code
NOT IN CHILDREN
Only available on Categories
- Field = categories.code
- Category code
GREATER ( > )
- Number, Price, Metric, Date Attribute, completeness
- Value (dates format: yyyy-mm-dd)
- Locale (optional)
- Scope (optional)
- Unit (optional, only if a metric Attribute is selected)
GREATER OR EQUAL ( >= )
- Number, Price, Metric, Date Attribute
- Value (dates format: yyyy-mm-dd)
- Locale (optional)
- Scope (optional)
- Unit (optional, only if a metric Attribute is selected)
SMALLER ( < )
- Number, Price, Metric, Date Attribute, completeness
- Value (dates format: yyyy-mm-dd)
- Locale (optional)
- Scope (optional)
- Unit (optional, only if a metric Attribute is selected)
SMALLER OR EQUAL ( <= )
- Number, Price, Metric, Date Attribute
- Value (dates format: yyyy-mm-dd)
- Locale (optional)
- Scope (optional)
- Unit (optional, only if a metric Attribute is selected)
- add
- set
- copy
- remove
add
- field: attribute code.
- locale: local code for which value is assigned (optional).
- scope: channel code for which value is assigned (optional).
- values: attribute values to add.
set
- field: attribute code.
- locale (optional)
- scope (optional)
- value: attribute value.
copy
- from_field: code of the attribute to be copied.
- from_locale: locale code of the value to be copied (optional).
- from_scope: channel code of the value to be copied (optional).
- to_field: attribute code the value will be copied into.
- to_locale: locale code the value will be copied into (optional).
- to_scope: channel code the value will be copied into (optional).
remove
- field: attribute code.
- locale: local code for which value is assigned (optional).
- scope: channel code for which value is assigned (optional).
- values: attribute values to remove.