I have multiple working subscriber classes subscribing to ProductListingResultEvent, that add an array as extension to the result. The code looks something like this: Is that the right way to do it? Do I always have to instanciate a new Struct to add data as an extension? Answer Yes you always have to instantiate a new Struct-Class, as the extension-struct
Tag: shopware6
Shopware : How to get customFields for products in the Order Object
I am currently trying to get a custom field ’emakers_custom_field_warehouse_name’ in the products when an order is made with the code below. Here’s my search Request : Here’s what I get when I serialize $orderObject->getLineItems->first()->getProduct() : https://gist.github.com/Youmar0504/8b53632fbc1b43c11769711519a74a17 What I already tried and gave me empty result : TBH, I don’t know what to try else. It looks like (if you
How to extend Shopware 6 controller action
I am building a plugin for Shopware 6 and cannot seem to find any documentation as to how to extend an existing controller action. I found this How to add an Action to Account Controller in Shopware but it seems to refer to Shopware 5 and I am not sure I can use it that way in Shopware 6. The