# Programming (EN)

**URL:** https://forum.shopware.com/c/shopware-6-english/programming-en/43.md?page=8

[Aktuelle](https://forum.shopware.com/latest.md) · [Kategorien](https://forum.shopware.com/categories.md) · [Schlagwörter](https://forum.shopware.com/tags.md)

**Page:** 9

---

## [Get customFields from parent variante article](https://forum.shopware.com/t/get-customfields-from-parent-variante-article/64625)

<div class="topic-metadata">

**Author:** [@onveda\_ak](https://forum.shopware.com/u/onveda_ak)\
**Antworten:** 5\
**Zuletzt aktualisiert:** [27. Mai 2020 um 10:02 UTC](https://forum.shopware.com/t/get-customfields-from-parent-variante-article/64625 "2020-05-27T10:02:45Z")

</div>

How did I get customFields from my parent variant article?

---

## [How to display dynamic product groups on the storefront?](https://forum.shopware.com/t/how-to-display-dynamic-product-groups-on-the-storefront/67046)

<div class="topic-metadata">

**Author:** [@milanweiss](https://forum.shopware.com/u/milanweiss)\
**Antworten:** 4\
**Zuletzt aktualisiert:** [19. Mai 2020 um 11:13 UTC](https://forum.shopware.com/t/how-to-display-dynamic-product-groups-on-the-storefront/67046 "2020-05-19T11:13:28Z")

</div>

Hello, I made some dynamic product groups in the admin with some products in it. But how can I now display this on the storefront? In particular I want to display all the products of a dynamic product group on the prod…

---

## [Great Headless API Useless](https://forum.shopware.com/t/great-headless-api-useless/66991)

<div class="topic-metadata">

**Author:** [@edinhobl](https://forum.shopware.com/u/edinhobl)\
**Antworten:** 18\
**Zuletzt aktualisiert:** [16. Mai 2020 um 13:37 UTC](https://forum.shopware.com/t/great-headless-api-useless/66991 "2020-05-16T13:37:43Z")

</div>

Hey folks! I am trying to get up the basic API endpoint GET http:///store-api/v1/context I set up a GET Request with the URL in Postman and added as header the sw-access-key. But I always get „Not Found“. How the hel…

---

## [how to add custom field on promotion entity?](https://forum.shopware.com/t/how-to-add-custom-field-on-promotion-entity/66883)

<div class="topic-metadata">

**Author:** [@lau](https://forum.shopware.com/u/lau)\
**Antworten:** 0\
**Zuletzt aktualisiert:** [12. Mai 2020 um 12:33 UTC](https://forum.shopware.com/t/how-to-add-custom-field-on-promotion-entity/66883 "2020-05-12T12:33:54Z")

</div>

hello! I need to add a new boolean field to promotion entity. Entity extensions are not meant to be used for scalar extensions. For that, there are the custom fields but on this entity there aren’t. Any suggestion about…

---

## [Custom Fields via Plugin](https://forum.shopware.com/t/custom-fields-via-plugin/66842)

<div class="topic-metadata">

**Author:** [@Lot](https://forum.shopware.com/u/Lot)\
**Antworten:** 0\
**Zuletzt aktualisiert:** [11. Mai 2020 um 06:35 UTC](https://forum.shopware.com/t/custom-fields-via-plugin/66842 "2020-05-11T06:35:01Z")

</div>

Hello, I want to create the following CustomFields via a plugin: CHECKBOX MEDIA (Images) Is this possible? Are there any code snippets available? (‘type’ =\> CustomFieldTypes:: ???,

---

## [Extending computed property of administration component](https://forum.shopware.com/t/extending-computed-property-of-administration-component/66821)

<div class="topic-metadata">

**Author:** [@JeroenBalk](https://forum.shopware.com/u/JeroenBalk)\
**Antworten:** 0\
**Zuletzt aktualisiert:** [8. Mai 2020 um 20:50 UTC](https://forum.shopware.com/t/extending-computed-property-of-administration-component/66821 "2020-05-08T20:50:09Z")

</div>

Hello, I tried to extend a component in the administration, like explained on this page: https://docs.shopware.com/en/shopware-platform-dev-en/developer-guide/administration/inheritance I want to add an extra menu opti…

---

## [How to sort products by best selling?](https://forum.shopware.com/t/how-to-sort-products-by-best-selling/66689)

<div class="topic-metadata">

**Author:** [@otura](https://forum.shopware.com/u/otura)\
**Antworten:** 0\
**Zuletzt aktualisiert:** [4. Mai 2020 um 09:58 UTC](https://forum.shopware.com/t/how-to-sort-products-by-best-selling/66689 "2020-05-04T09:58:04Z")

</div>

I need a solution to sort products by order quantity. I could not found anything in the documentation. Can you give me the way to do that correctly?

---

## [Adding new language (snippet)](https://forum.shopware.com/t/adding-new-language-snippet/66539)

<div class="topic-metadata">

**Author:** [@M4ketech](https://forum.shopware.com/u/M4ketech)\
**Antworten:** 1\
**Zuletzt aktualisiert:** [28. April 2020 um 16:36 UTC](https://forum.shopware.com/t/adding-new-language-snippet/66539 "2020-04-28T16:36:15Z")

</div>

Hey, What is fastest way to add new language and translate that? What i did understand, i need new base file, but how i get this. Mainly this is because i want to share translated language. Snippet page says " It will a…

---

## [Value inside FK field not getting inserted](https://forum.shopware.com/t/value-inside-fk-field-not-getting-inserted/66405)

<div class="topic-metadata">

**Author:** [@mohsin94j](https://forum.shopware.com/u/mohsin94j)\
**Antworten:** 7\
**Zuletzt aktualisiert:** [25. April 2020 um 16:20 UTC](https://forum.shopware.com/t/value-inside-fk-field-not-getting-inserted/66405 "2020-04-25T16:20:54Z")

</div>

I am following Shopware 6 developer training and their we made a foreign key relation with the County Entity. This is my Migration file: This is my Entity Definition: This is my Entity: This is my controller…

---

## [How to save a JSON into a new existing table field from admin area?](https://forum.shopware.com/t/how-to-save-a-json-into-a-new-existing-table-field-from-admin-area/66403)

<div class="topic-metadata">

**Author:** [@SorinSologics2019](https://forum.shopware.com/u/SorinSologics2019)\
**Antworten:** 0\
**Zuletzt aktualisiert:** [21. April 2020 um 10:08 UTC](https://forum.shopware.com/t/how-to-save-a-json-into-a-new-existing-table-field-from-admin-area/66403 "2020-04-21T10:08:27Z")

</div>

Hello. We have the following scenario: with a migration we add a JSON field to product table called ‚custom\_ids‘ in admin we would like to use a multiple product selection(like on bundles) and those product ids s…

---

## [Attempted to load class "ShopFinderEntity" from namespace "SwagShopFinder\\Core\\Content\\ShopFinder".](https://forum.shopware.com/t/attempted-to-load-class-shopfinderentity-from-namespace-swagshopfinder-core-content-shopfinder/66349)

<div class="topic-metadata">

**Author:** [@mohsin94j](https://forum.shopware.com/u/mohsin94j)\
**Antworten:** 4\
**Zuletzt aktualisiert:** [19. April 2020 um 16:13 UTC](https://forum.shopware.com/t/attempted-to-load-class-shopfinderentity-from-namespace-swagshopfinder-core-content-shopfinder/66349 "2020-04-19T16:13:28Z")

</div>

Hi community! i am following Shopware 6 developer training and and there the trainer just outputs the shops he created via API and faker. i have done the saving that data generated by faker part but somehow unable to ge…

---

## [Override the Shopware 6 Core file](https://forum.shopware.com/t/override-the-shopware-6-core-file/66360)

<div class="topic-metadata">

**Author:** [@Rizwan](https://forum.shopware.com/u/Rizwan)\
**Antworten:** 0\
**Zuletzt aktualisiert:** [18. April 2020 um 14:45 UTC](https://forum.shopware.com/t/override-the-shopware-6-core-file/66360 "2020-04-18T14:45:37Z")

</div>

Hello, I want to extend this file in to my plugin and i want to change the limit of product rating. Anyone knows how can i extend this file into my plugin? Here is the directory structure where this Shopware files plac…

---

## [Add a product to the cart in the frontend for cypress testing](https://forum.shopware.com/t/add-a-product-to-the-cart-in-the-frontend-for-cypress-testing/65486)

<div class="topic-metadata">

**Author:** [@Pascal1988](https://forum.shopware.com/u/Pascal1988)\
**Antworten:** 1\
**Zuletzt aktualisiert:** [17. April 2020 um 14:26 UTC](https://forum.shopware.com/t/add-a-product-to-the-cart-in-the-frontend-for-cypress-testing/65486 "2020-04-17T14:26:07Z")

</div>

As i’m writing some tests for the checkout (planning to make some adjustments there and it’s quite important i don’t wreck the checkout). I kinda want to add a product to the frontend cart in a before or beforeEach hook.…

---

## [Problems with API](https://forum.shopware.com/t/problems-with-api/66253)

<div class="topic-metadata">

**Author:** [@Lot](https://forum.shopware.com/u/Lot)\
**Antworten:** 1\
**Zuletzt aktualisiert:** [15. April 2020 um 09:15 UTC](https://forum.shopware.com/t/problems-with-api/66253 "2020-04-15T09:15:37Z")

</div>

Can somebody help me to create a valid GET-Query for a filter: https:// … /sales-channel-api/v1/product?filter\[stock\]=50 works fine But how can I create things like: https:// … /sales-channel-api/v1/product? …

---

## [SELECT list is not in GROUP BY clause](https://forum.shopware.com/t/select-list-is-not-in-group-by-clause/65955)

<div class="topic-metadata">

**Author:** [@abinjohnedamana](https://forum.shopware.com/u/abinjohnedamana)\
**Antworten:** 2\
**Zuletzt aktualisiert:** [2. April 2020 um 08:56 UTC](https://forum.shopware.com/t/select-list-is-not-in-group-by-clause/65955 "2020-04-02T08:56:22Z")

</div>

Hi When I am trying to execute these query in MySQL SELECT order\_line\_item.product\_id, order\_line\_item.label, SUM(order\_line\_item.quantity) AS totalQuantity FROM order\_line\_item GROUP BY order\_line\_item.product\_…

---

## [How can I access my plugin's snippet from a PHP class?](https://forum.shopware.com/t/how-can-i-access-my-plugins-snippet-from-a-php-class/65494)

<div class="topic-metadata">

**Author:** [@huzaifa\_zepcom](https://forum.shopware.com/u/huzaifa_zepcom)\
**Antworten:** 1\
**Zuletzt aktualisiert:** [1. April 2020 um 19:44 UTC](https://forum.shopware.com/t/how-can-i-access-my-plugins-snippet-from-a-php-class/65494 "2020-04-01T19:44:56Z")

</div>

I know how to access the snippet in the twig, but how can I do that from the PHP class? We had a way of accessing any snippet from the namespace in SW5, but I am lost how do to achieve the same for SW6. Any help is app…

---

## [Is it possible to import product data from excel to Shopware 6?](https://forum.shopware.com/t/is-it-possible-to-import-product-data-from-excel-to-shopware-6/65918)

<div class="topic-metadata">

**Author:** [@davit\_sargsyan](https://forum.shopware.com/u/davit_sargsyan)\
**Antworten:** 0\
**Zuletzt aktualisiert:** [1. April 2020 um 06:33 UTC](https://forum.shopware.com/t/is-it-possible-to-import-product-data-from-excel-to-shopware-6/65918 "2020-04-01T06:33:12Z")

</div>

Is it possible to import product data from excel to Shopware 6? Is there an API for that or some plugin ? If not, can this be achieve through direct insertions into tables ? If yes, which are all the joined tables for …

---

## [My first API Call](https://forum.shopware.com/t/my-first-api-call/65768)

<div class="topic-metadata">

**Author:** [@Artsakh](https://forum.shopware.com/u/Artsakh)\
**Antworten:** 0\
**Zuletzt aktualisiert:** [26. März 2020 um 09:37 UTC](https://forum.shopware.com/t/my-first-api-call/65768 "2020-03-26T09:37:41Z")

</div>

Hi, I installed Shopware 6 on my local machine, and create my demo shop, and I can access the Administrator Dashboard via http://localhost/admin#/. Under Catalogues -\> Products I created a new product ’ SW10000’. Und…

---

## [Is there any plan to develop a Mobile app for the Shopware admin side?](https://forum.shopware.com/t/is-there-any-plan-to-develop-a-mobile-app-for-the-shopware-admin-side/65704)

<div class="topic-metadata">

**Author:** [@abinjohnedamana](https://forum.shopware.com/u/abinjohnedamana)\
**Antworten:** 0\
**Zuletzt aktualisiert:** [24. März 2020 um 05:34 UTC](https://forum.shopware.com/t/is-there-any-plan-to-develop-a-mobile-app-for-the-shopware-admin-side/65704 "2020-03-24T05:34:39Z")

</div>

Hi Is there any plan to develop a Mobile app for the Shopware admin side?

---

## [bundles/administration/static/img/favicon/android-chrome-256x256.png 404 Not Found](https://forum.shopware.com/t/bundles-administration-static-img-favicon-android-chrome-256x256-png-404-not-found/65681)

<div class="topic-metadata">

**Author:** [@abinjohnedamana](https://forum.shopware.com/u/abinjohnedamana)\
**Antworten:** 0\
**Zuletzt aktualisiert:** [23. März 2020 um 04:47 UTC](https://forum.shopware.com/t/bundles-administration-static-img-favicon-android-chrome-256x256-png-404-not-found/65681 "2020-03-23T04:47:40Z")

</div>

Hi my plugin was rejected due to the following errors in the developer console. bundles/administration/static/img/favicon/favicon-32x32.png 404 Not Found bundles/administration/static/img/favicon/favicon-16x16.pn…

---

## [Rest Api Produktbild Upload](https://forum.shopware.com/t/rest-api-produktbild-upload/65611)

<div class="topic-metadata">

**Author:** [@Dr\_Einstein](https://forum.shopware.com/u/Dr_Einstein)\
**Antworten:** 1\
**Zuletzt aktualisiert:** [20. März 2020 um 11:55 UTC](https://forum.shopware.com/t/rest-api-produktbild-upload/65611 "2020-03-20T11:55:34Z")

</div>

Hallo zusammen, ich habe ein kleines Problem mit dem Produktbild Upload über die Rest-Api. Hier erst einmal mein PHP-Code: $data = \[ 'url' =\> 'https://bilder.t-online.de/b/84/93/82/46/id\_84938246/920/tid\_da/eichh…

---

## [What event do I need for new orders](https://forum.shopware.com/t/what-event-do-i-need-for-new-orders/65545)

<div class="topic-metadata">

**Author:** [@ronn0](https://forum.shopware.com/u/ronn0)\
**Antworten:** 1\
**Zuletzt aktualisiert:** [17. März 2020 um 09:23 UTC](https://forum.shopware.com/t/what-event-do-i-need-for-new-orders/65545 "2020-03-17T09:23:09Z")

</div>

Good day everybody, I’m quite new to programming for Shopware and did create a plugin, and load it with systems.xml, but when I subscribe to this event nothing happend on creating a new order in the checkout public sta…

---

## [about extending-storefront-block error](https://forum.shopware.com/t/about-extending-storefront-block-error/65509)

<div class="topic-metadata">

**Author:** [@langziyang](https://forum.shopware.com/u/langziyang)\
**Antworten:** 1\
**Zuletzt aktualisiert:** [15. März 2020 um 02:57 UTC](https://forum.shopware.com/t/about-extending-storefront-block-error/65509 "2020-03-15T02:57:58Z")

</div>

i use console create plugin: php bin/console plugin:create PluginQuickStart and follow https://docs.shopware.com/en/shopware-platform-dev-en/how-to/extending-storefront-block create custom/plugins/PluginQuickStar…

---

## [Could the additional field be added to the Customer table any way developing the plugin?](https://forum.shopware.com/t/could-the-additional-field-be-added-to-the-customer-table-any-way-developing-the-plugin/63198)

<div class="topic-metadata">

**Author:** [@vladyslav2019](https://forum.shopware.com/u/vladyslav2019)\
**Antworten:** 1\
**Zuletzt aktualisiert:** [10. März 2020 um 07:55 UTC](https://forum.shopware.com/t/could-the-additional-field-be-added-to-the-customer-table-any-way-developing-the-plugin/63198 "2020-03-10T07:55:09Z")

</div>

I tried to extend the CustomerEntity using the guide https://docs.shopware.com/en/shopware-platform-dev-en/how-to/entity-extension developed the plugin, but only an extensions property has been added to CustomerEntity o…

---

## [Mobile Menu Navigation Widget](https://forum.shopware.com/t/mobile-menu-navigation-widget/65323)

<div class="topic-metadata">

**Author:** [@florenco](https://forum.shopware.com/u/florenco)\
**Antworten:** 0\
**Zuletzt aktualisiert:** [8. März 2020 um 10:06 UTC](https://forum.shopware.com/t/mobile-menu-navigation-widget/65323 "2020-03-08T10:06:10Z")

</div>

hi, i’m new to shopware, is there any mobile menu widget? similar this one https://www.joomforest.com/joomla/extensions/jf-mobile-menu my shop menu looks bad on mobile. thanks in advance

---

## [Wrong image title](https://forum.shopware.com/t/wrong-image-title/65252)

<div class="topic-metadata">

**Author:** [@hloettgen](https://forum.shopware.com/u/hloettgen)\
**Antworten:** 0\
**Zuletzt aktualisiert:** [5. März 2020 um 11:51 UTC](https://forum.shopware.com/t/wrong-image-title/65252 "2020-03-05T11:51:29Z")

</div>

Hello, i have a strange phenomenon… If i upload my picture (10001.jpg), then it shows in the backend as jpg.10001 and this leads to not being found, if i want to assign it to a product… My REST Resource is like that…

---

## [How to edit SW-Mail-Template-Detail Page](https://forum.shopware.com/t/how-to-edit-sw-mail-template-detail-page/65160)

<div class="topic-metadata">

**Author:** [@gmze](https://forum.shopware.com/u/gmze)\
**Antworten:** 0\
**Zuletzt aktualisiert:** [3. März 2020 um 10:01 UTC](https://forum.shopware.com/t/how-to-edit-sw-mail-template-detail-page/65160 "2020-03-03T10:01:19Z")

</div>

I’m looking to add a custom field to the page, but sadly sw-mail-template-detail.html.twig is not a component. Its placed in the page folder from sw-mail-template. The only components in this folder I found are sw-mail-…

---

## [How to add customfields in product listing criteria?](https://forum.shopware.com/t/how-to-add-customfields-in-product-listing-criteria/65072)

<div class="topic-metadata">

**Author:** [@abinjohnedamana](https://forum.shopware.com/u/abinjohnedamana)\
**Antworten:** 1\
**Zuletzt aktualisiert:** [28. Februar 2020 um 10:08 UTC](https://forum.shopware.com/t/how-to-add-customfields-in-product-listing-criteria/65072 "2020-02-28T10:08:48Z")

</div>

How to add customfields in product listing, search criteria?

---

## [How to pass data to this storefront view page using events ?](https://forum.shopware.com/t/how-to-pass-data-to-this-storefront-view-page-using-events/64912)

<div class="topic-metadata">

**Author:** [@abinjohnedamana](https://forum.shopware.com/u/abinjohnedamana)\
**Antworten:** 1\
**Zuletzt aktualisiert:** [26. Februar 2020 um 04:38 UTC](https://forum.shopware.com/t/how-to-pass-data-to-this-storefront-view-page-using-events/64912 "2020-02-26T04:38:01Z")

</div>

I want to pass some custom data to the product review form when the review from loads after the review saved. How to do that using events? /\*\* \* @Route("/product/{productId}/reviews", name="frontend.product.rev…

---

## [Which tools are used by shopware to detect the errors in composer.json?](https://forum.shopware.com/t/which-tools-are-used-by-shopware-to-detect-the-errors-in-composer-json/64266)

<div class="topic-metadata">

**Author:** [@abinjohnedamana](https://forum.shopware.com/u/abinjohnedamana)\
**Antworten:** 4\
**Zuletzt aktualisiert:** [19. Februar 2020 um 07:33 UTC](https://forum.shopware.com/t/which-tools-are-used-by-shopware-to-detect-the-errors-in-composer-json/64266 "2020-02-19T07:33:10Z")

</div>

Hi I got some errors when I am submitting my plugin for code review Basic plugin analysis failed. the composer.json file is invalid, Context: \[reason: \[require\] The property require is required I have checked the co…

[Vorherige Seite](https://forum.shopware.com/c/shopware-6-english/programming-en/43.md?page=7)

[Nächste Seite](https://forum.shopware.com/c/shopware-6-english/programming-en/43.md?page=9)
