You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
ShopPage custom attributes are not properly hydrated by ShopPageHydrator
when requesting a shop page via the shopware_storefront.shop_page_service.
(more details below)
Details:
I have added custom (translatable) attributes to s_cms_static_attributes. These attributes can be translated and saved within the backend. In a custom component I request
a page from shopware_storefront.shop_page_service via getList method.
When requesting the attribute via $page->getAttribute('core')['custom_attribute'] the attribute is always in the default language.
As far as I can tell, other hydrators are also affected.
The text was updated successfully, but these errors were encountered:
Description:
ShopPage custom attributes are not properly hydrated by
ShopPageHydrator
when requesting a shop page via the
shopware_storefront.shop_page_service
.(more details below)
Possible solution:
engine/Shopware/Bundle/StoreFrontBundle/Gateway/DBAL/Hydrator/ShopPageHydrator.php:95 should pass the translationKey parameter:
$this->attributeHydrator->addAttribute($shopPage, $data, 'pageAttribute', null, 'page');
.This is done in the ManufacturerHydrator.
Details:
I have added custom (translatable) attributes to
s_cms_static_attributes
. These attributes can be translated and saved within the backend. In a custom component I requesta page from
shopware_storefront.shop_page_service
viagetList
method.When requesting the attribute via
$page->getAttribute('core')['custom_attribute']
the attribute is always in the default language.As far as I can tell, other hydrators are also affected.
The text was updated successfully, but these errors were encountered: