Changelog
12.x
12.6.0
- [feature] Add support for recruiting
countrymultiselectfields - the values are resolved to the localized country names, optionally with a flag icon (see bundle configurationCountry flag directoryandCountry flag asset path; the icon is stored in the fieldvalueMediaof the attribute value)
12.5.6
- [feature] Allow the bundle configuration
sourceFolderPathto point to an object instead of a folder
12.5.5
- [bug] Fix handling of attributes with multiple relations
12.5.4
- [bug] Fix attributes becoming unpublished on a messenger transport error - the object save is retried now
12.5.2
- [bug] Fix the fork strategy for recruiting sending unwanted export e-mails
12.5.1
- [bug] Fix localized field resolution for relation target objects (localized fields on the related class were read in the default language only)
12.5.0
BC-Changes
- Optional (only if
Use lazy reference for assignmentis enabled): add the trait\Twocream\ProductAttributeBundle\Utilities\LazyReferenceAssignmentTraitto the attribute-value class definition, see Configuration - Optional (only if
Use fork strategy for recruitingis enabled): the CLI PHP needs thepcntlextension
- [feature] Add bundle configuration
Use fork strategy for recruiting- processes product batches in isolated child processes to prevent RAM accumulation from Pimcore's object inheritance chain (requires the PHP-PCNTL extension) - [feature] Add bundle configuration
Use lazy reference for assignment- assigns products to attribute values via lightweight references instead of loading full DataObject instances. Only enable this if no project-specific pre- or post-save events access the assigned products on the attribute value object, as the product objects will not be fully loaded during the save process - [improvement] Compare existing product assignments of attribute values via the raw relation data instead of loading the product objects
- [improvement] Optimize the query for article assignments by product id
12.4.4
- [feature] Add event
TwocreamProductAttributeEvents::EVALUATE_ATTRIBUTE_VALUEwith a dirty flag, to react to external field updates of attribute values, see Events
12.4.3
- [bug] Fix bugs in the bundle configuration
Product Precondition
12.4.2
- [bug] Remove HTML tags from attribute names
12.4.1
- [improvement] Add attribute icon type to the export
12.4.0
- [feature] Add support for exportable attribute icons
12.3.4
- [bug] Fix duplicated full-path exceptions (follow-up fix of 12.3.3)
12.3.3
- [bug] Fix duplicated full-path exceptions
12.3.2
- [improvement] Add cache for label translations
12.3.1
- [bug] Fix duplicated attribute values
12.3.0
- [improvement] Mark fields inside localized fields to avoid huge inheritance loops
- [feature] Add support for field type
quantityValueRangewith multiple handle behaviors - [feature] Add bundle configuration
Product Precondition- allows to filter which products are relevant for the attribute recruitment (example config:[{"field": "hierarchyLevel", "operator": "=", "value": "product"}])
12.2.0
BC-Changes
- Refactored
Twocream\ProductAttributeBundle\Components\Queue\Items\RecruitmentQueueItemtoTwocream\ProductAttributeBundle\Components\Task\Items\RecruitmentTaskItem
- [improvement] Migrated to
twocream/pimcore-recurring-task-bundleversion^12.1
12.1.0
- [feature] Add option to specify multiple objectbrick field-names in configuration
12.0.0
BC-Changes
- Extend
config/bundles.phpwith\Twocream\RecurringTaskBundle\TwocreamRecurringTaskBundle::class => ['all' => true], - Change the old CronJob
* * * * * php /var/www/html/bin/console twocream:queue --queueItems=product_attribute_recruitmentinto* * * * * php /var/www/html/bin/console twocream:recurring-task --recurringTaskItems=product_attribute_recruitment
- [improvement] Migrated this bundle to Pimcore 12
- [feature] Add option to recruit Classification Store fields
11.x
11.4.2
- [bug] Fix localized field resolution for relation target objects: localized fields on the related class were read as non-localized since 11.4.0 and therefore recruited in the default language for all languages
11.4.1
- [improvement] Load classification store definitions only when they are needed and read the key names per group with one query per store
- [improvement] Load the key/group relations of a store with a single listing when building the valid field definitions
- [improvement] Cache lookups in
AttributeFieldHelperandAttributeValueCalculator - [bug] Do not fail in
formatValue()if the attribute class has nonumberFormatfield. Note: In projects without this field the number formatting (attributeValueNumberFormat) never ran before because of this error; it becomes effective as soon as the option is configured
11.4.0
BC-Changes
- Extend the attribute class definition (
ProductAttribute) with the mandatory select fieldquantityValueRangeBehavior(title~quantityValueRangeBehavior, options~quantityValueRangeBehaviorValueZero=>separator1(default),~quantityValueRangeBehaviorValueOne=>separator2,~quantityValueRangeBehaviorValueTwo=>split) and runbin/console twocream:product-attribute:install-class-definitionsto add the admin translations - Optional (only if
Use lazy reference for assignmentis enabled): add the trait\Twocream\ProductAttributeBundle\Utilities\LazyReferenceAssignmentTraitto the attribute-value class definition (ProductAttributeValue) - Optional (only if
Use fork strategy for recruitingis enabled): the CLI PHP needs thepcntlandposixextensions
- [feature] Add support for field type
quantityValueRange(classes, objectbricks and classification store) with multiple handle behaviors:splitrecruits minimum and maximum as separate attributes (the maximum gets the identifier suffix-MAX),separator1(-) andseparator2(/) combine minimum and maximum into a single attribute value - [feature] Add bundle configuration
Use fork strategy for recruiting- processes product batches in isolated child processes to prevent RAM accumulation from Pimcore's object inheritance chain (requires the PHP-PCNTL extension; falls back to the default processing if forking fails) - [feature] Add bundle configuration
Use lazy reference for assignment- assigns products to attribute values via lightweight references instead of loading full DataObject instances. Only enable this if no project-specific pre- or post-save events access the assigned products on the attribute value object, as the product objects will not be fully loaded during the save process - [improvement] Compare existing product assignments of attribute values via the raw relation data instead of loading the product objects
- [improvement] Mark fields inside localized fields to avoid huge inheritance loops - non-localized fields are read once instead of once per language
- [improvement] Add cache for label translations
- [improvement] Load class, objectbrick and classification store definitions lazily and build the requirement checks only on the configuration page
- [improvement] An explicit blocklist entry (field names, classification store keys) is no longer overruled by a catch-all allowlist (
%/*) - only a more specific allowlist rule re-enables a blocked entry - [bug] Retry the object save on messenger transport errors
- [bug] Remove duplicated product ids before assigning them to an attribute value
11.3.6
BC-Changes
- The identifier of attribute values from relation objects (fallback attribute value identifier suffix) now carries the prefix
object-id-
- [bug] Add
object-id-prefix for attribute values from relation objects - [bug] Fix an error while saving caused by a missing method
11.3.5
- [bug] Fix handling of keys in classification store group attributes
11.3.4
- [feature] Add number format option for each locale
- [bug] Remove HTML tags from attribute names, descriptions and value names
11.3.3
- [bug] Remove HTML tags from attribute names
11.3.2
- [bug] Fix calculated values with a delimiter: languages missing in the split values are now filled with empty values
11.3.1
- [improvement] Optimize the lookup of article assignments by product id
- [improvement] Harden the lookup of classification store keys
11.3.0
BC-Changes
- Extend
config/bundles.phpwith\Twocream\RecurringTaskBundle\TwocreamRecurringTaskBundle::class => ['all' => true], - Change the old CronJob
* * * * * php /var/www/html/bin/console twocream:queue --queueItems=product_attribute_recruitmentinto* * * * * php /var/www/html/bin/console twocream:recurring-task --recurringTaskItems=product_attribute_recruitment
- [improvement] Adjust queue system to use the recurring task bundle
11.2.7
- [bug] Remove HTML tags from attribute names
11.2.6
- [improvement] Add fallback attribute value identifier suffix in case of array values for relational attributes
11.2.5
- [improvement] Optimize the lookup of article assignments by product id
11.2.4
- [improvement] Add support for select options store
11.2.3
- [feature] Add optional language mapping parameter to ProductAttributeService methods
11.2.2
- [improvement] Optimize handling of string values
11.2.1
- [bug] Ensure correct handling of localized calculated values
11.2.0
- [feature] Add option to recruit Classification Store fields
11.1.3
- [bug] Fix a bug causing empty attribute values to falsely throw an error
11.1.2
- [improvement] Optimize default attribute- and attribute-value class-definition
11.1.1
- [bug] Fix method how the numeric value are extracted for the attribute value order
11.1.0
- [feature] Add a delimiter field to the attribute definition to split one native value into multiply attribute value objects
- [feature] Add a location field to the attribute definition to tell shopware where the attribute should be displayed (for custom position like a variant compare)
- [improvement] Add cli command
twocream:product-attribute:install-class-definitionsto install the necessary class definition - [improvement] Add a public alias for the service:
twocream.queue_items.product_attribute_recruitment - [bug] Remove unnecessary requirement check (field
dateDeployStageanddateDeployLiveis not required anymore)
11.0.3
- [bug] Fix non case sensitive attribute value detection
- [bug] Fix bug for quantity values with a value but without a unit
11.0.2
- [improvement] Add optional dependency to
twocream/pimcore-rollbar-bundleto get reports if some attribute tasks are failing
11.0.1
- [bug] Fix bug for new installations that was missed during the Pimcore 11 migration
11.0.0
- [improvement] Migrated this bundle to Pimcore 11