# Programming (EN)

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

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

**Page:** 10

---

## [Class Shopware\\Storefront\\Controller\\StorefrontController not found](https://forum.shopware.com/t/class-shopware-storefront-controller-storefrontcontroller-not-found/64821)

<div class="topic-metadata">

**Author:** [@abinjohnedamana](https://forum.shopware.com/u/abinjohnedamana)\
**Antworten:** 1\
**Zuletzt aktualisiert:** [19. Februar 2020 um 07:27 UTC](https://forum.shopware.com/t/class-shopware-storefront-controller-storefrontcontroller-not-found/64821 "2020-02-19T07:27:20Z")

</div>

I got this error from Shopware code review Warnings of the static code analysis: ------ ------------------------------------------------------------------------- Line src/Storefront/Controller/ShoppingExperienceC…

---

## [How to pass data to the storefront view page from subscriber?](https://forum.shopware.com/t/how-to-pass-data-to-the-storefront-view-page-from-subscriber/64758)

<div class="topic-metadata">

**Author:** [@abinjohnedamana](https://forum.shopware.com/u/abinjohnedamana)\
**Antworten:** 1\
**Zuletzt aktualisiert:** [17. Februar 2020 um 09:21 UTC](https://forum.shopware.com/t/how-to-pass-data-to-the-storefront-view-page-from-subscriber/64758 "2020-02-17T09:21:24Z")

</div>

Hi I have an event subscriber public static function getSubscribedEvents(): array { return \[ ProductEvents::PRODUCT\_REVIEW\_LOADED =\> ‘onProductReviewLoads’ \]; } public …

---

## [Are there any hooks in shopware 6?](https://forum.shopware.com/t/are-there-any-hooks-in-shopware-6/63881)

<div class="topic-metadata">

**Author:** [@abinjohnedamana](https://forum.shopware.com/u/abinjohnedamana)\
**Antworten:** 1\
**Zuletzt aktualisiert:** [14. Februar 2020 um 08:28 UTC](https://forum.shopware.com/t/are-there-any-hooks-in-shopware-6/63881 "2020-02-14T08:28:08Z")

</div>

I want to replace the “mapCustomerData”(Shopware\\Core\\Checkout\\Customer\\SalesChannel\\AccountRegistrationService) function with some custom modifications.Are there any hooks in shopware 6?

---

## [Blank Response in every Create Resourse API  -  Shopware 6](https://forum.shopware.com/t/blank-response-in-every-create-resourse-api-shopware-6/64543)

<div class="topic-metadata">

**Author:** [@ronaksolanki10](https://forum.shopware.com/u/ronaksolanki10)\
**Antworten:** 2\
**Zuletzt aktualisiert:** [12. Februar 2020 um 12:50 UTC](https://forum.shopware.com/t/blank-response-in-every-create-resourse-api-shopware-6/64543 "2020-02-12T12:50:26Z")

</div>

Hello, Thank you in advance For example, here I am creating the product, the product is inserting well while as a response, I receive nothing even success or error status just product gets stored perfectly if I did …

---

## [API - 400 Bad Request, Your browser sent a request that this server could not understand](https://forum.shopware.com/t/api-400-bad-request-your-browser-sent-a-request-that-this-server-could-not-understand/64533)

<div class="topic-metadata">

**Author:** [@ronaksolanki10](https://forum.shopware.com/u/ronaksolanki10)\
**Antworten:** 0\
**Zuletzt aktualisiert:** [7. Februar 2020 um 09:07 UTC](https://forum.shopware.com/t/api-400-bad-request-your-browser-sent-a-request-that-this-server-could-not-understand/64533 "2020-02-07T09:07:26Z")

</div>

Hello, Thank you in advance. I am trying to get the manufacturer using the API. For example $queryString = ‚‘; if (!empty($params)) { $queryString = http\_build\_query($params); } …

---

## [Cannot read property 'api' of undefined  - Shopware.Context.api](https://forum.shopware.com/t/cannot-read-property-api-of-undefined-shopware-context-api/64053)

<div class="topic-metadata">

**Author:** [@michal\_bnet](https://forum.shopware.com/u/michal_bnet)\
**Antworten:** 0\
**Zuletzt aktualisiert:** [16. Januar 2020 um 14:56 UTC](https://forum.shopware.com/t/cannot-read-property-api-of-undefined-shopware-context-api/64053 "2020-01-16T14:56:52Z")

</div>

hi following this example plugin https://github.com/shopware/swag-docs-bundle-example in file swag-docs-bundle-example/src/Resources/app/administration/src/module/swag-bundle/page/swag-bundle-list/ index.js i am g…

---

## [Shopware custom plugin not generating public folder](https://forum.shopware.com/t/shopware-custom-plugin-not-generating-public-folder/63973)

<div class="topic-metadata">

**Author:** [@michal\_bnet](https://forum.shopware.com/u/michal_bnet)\
**Antworten:** 2\
**Zuletzt aktualisiert:** [15. Januar 2020 um 07:12 UTC](https://forum.shopware.com/t/shopware-custom-plugin-not-generating-public-folder/63973 "2020-01-15T07:12:36Z")

</div>

i tested this shopware plugin https://github.com/shopware/swag-docs-new-tab which is linked from official shopware documentation here https://docs.shopware.com/en/shopware-platform-dev-en/how-to/new-tab-admin?category…

---

## [How to refresh the SalesChannelContext?](https://forum.shopware.com/t/how-to-refresh-the-saleschannelcontext/63981)

<div class="topic-metadata">

**Author:** [@abinjohnedamana](https://forum.shopware.com/u/abinjohnedamana)\
**Antworten:** 0\
**Zuletzt aktualisiert:** [14. Januar 2020 um 07:31 UTC](https://forum.shopware.com/t/how-to-refresh-the-saleschannelcontext/63981 "2020-01-14T07:31:41Z")

</div>

Hi i am using ‚SalesChannelContextSwitchEvent‘ I want to do some modifications when the currency changes. When I am changing USD to Euro $event-\>getSalesChannelContext()-\>getCurrency(); function returns the USD not …

---

## [Documentation HowTo Create Form Block](https://forum.shopware.com/t/documentation-howto-create-form-block/63964)

<div class="topic-metadata">

**Author:** [@oliverriske](https://forum.shopware.com/u/oliverriske)\
**Antworten:** 0\
**Zuletzt aktualisiert:** [13. Januar 2020 um 11:07 UTC](https://forum.shopware.com/t/documentation-howto-create-form-block/63964 "2020-01-13T11:07:57Z")

</div>

Could yyou please provide a HowTo for implementing individual Forms?

---

## [What is the URL to the company registration page in shopware6?](https://forum.shopware.com/t/what-is-the-url-to-the-company-registration-page-in-shopware6/63858)

<div class="topic-metadata">

**Author:** [@abinjohnedamana](https://forum.shopware.com/u/abinjohnedamana)\
**Antworten:** 2\
**Zuletzt aktualisiert:** [8. Januar 2020 um 12:02 UTC](https://forum.shopware.com/t/what-is-the-url-to-the-company-registration-page-in-shopware6/63858 "2020-01-08T12:02:10Z")

</div>

In shopware 5 we have a company registration page (https://www.shopwaredemo.co.uk/registerFC/index/sValidation/H) What will be the URL to the company registration page in shopware6?

---

## [Get the custom fields from the subscriber](https://forum.shopware.com/t/get-the-custom-fields-from-the-subscriber/63813)

<div class="topic-metadata">

**Author:** [@webloupe](https://forum.shopware.com/u/webloupe)\
**Antworten:** 0\
**Zuletzt aktualisiert:** [5. Januar 2020 um 14:52 UTC](https://forum.shopware.com/t/get-the-custom-fields-from-the-subscriber/63813 "2020-01-05T14:52:17Z")

</div>

Hey, how can i get the custom fields inside the product subscriber?? I’ve tried $event-\>getPage()-\>getProduct()-\>getCustomFields() and $event-\>getPage()-\>getProduct()-\>getTranslated()\[‘customFields’\] But they are al…

---

## [How to change my timezone in shopware 6?](https://forum.shopware.com/t/how-to-change-my-timezone-in-shopware-6/63766)

<div class="topic-metadata">

**Author:** [@abinjohnedamana](https://forum.shopware.com/u/abinjohnedamana)\
**Antworten:** 0\
**Zuletzt aktualisiert:** [2. Januar 2020 um 06:46 UTC](https://forum.shopware.com/t/how-to-change-my-timezone-in-shopware-6/63766 "2020-01-02T06:46:44Z")

</div>

My current timezone is „Europe/Berlin“. I want to change it to ‚Asia/Calcutta‘ how to do that?

---

## [How to enable php error display in shopware 6?](https://forum.shopware.com/t/how-to-enable-php-error-display-in-shopware-6/63750)

<div class="topic-metadata">

**Author:** [@abinjohnedamana](https://forum.shopware.com/u/abinjohnedamana)\
**Antworten:** 2\
**Zuletzt aktualisiert:** [31. Dezember 2019 um 08:58 UTC](https://forum.shopware.com/t/how-to-enable-php-error-display-in-shopware-6/63750 "2019-12-31T08:58:04Z")

</div>

How to enable php error display in shopware 6? I got the following message when php error occurs but not showing the php error? Unfortunately, something went wrong.

---

## [How to write Join condition with DAL search in shopware 6?](https://forum.shopware.com/t/how-to-write-join-condition-with-dal-search-in-shopware-6/63743)

<div class="topic-metadata">

**Author:** [@abinjohnedamana](https://forum.shopware.com/u/abinjohnedamana)\
**Antworten:** 0\
**Zuletzt aktualisiert:** [30. Dezember 2019 um 12:48 UTC](https://forum.shopware.com/t/how-to-write-join-condition-with-dal-search-in-shopware-6/63743 "2019-12-30T12:48:13Z")

</div>

I have 2 tables table\_A with id, name, customer\_id, sales\_channel\_id table\_B with id, table\_a\_id, product\_id, date I want to search in table\_B with conditions table\_A.customer\_id = :customer\_id And table\_A.sales\_chann…

---

## [How to create a backend module with a custom listing in shopware 6?](https://forum.shopware.com/t/how-to-create-a-backend-module-with-a-custom-listing-in-shopware-6/63706)

<div class="topic-metadata">

**Author:** [@abinjohnedamana](https://forum.shopware.com/u/abinjohnedamana)\
**Antworten:** 0\
**Zuletzt aktualisiert:** [27. Dezember 2019 um 12:53 UTC](https://forum.shopware.com/t/how-to-create-a-backend-module-with-a-custom-listing-in-shopware-6/63706 "2019-12-27T12:53:54Z")

</div>

I want to create a custom backend module. Data for this listing have some conditions so I want to create a new file and function for the custom listing. how to do this in shopware 6? Do we need to create a new API for th…

---

## [createDefaultContext() method marked as  internal](https://forum.shopware.com/t/createdefaultcontext-method-marked-as-internal/63509)

<div class="topic-metadata">

**Author:** [@ivanb](https://forum.shopware.com/u/ivanb)\
**Antworten:** 0\
**Zuletzt aktualisiert:** [12. Dezember 2019 um 13:34 UTC](https://forum.shopware.com/t/createdefaultcontext-method-marked-as-internal/63509 "2019-12-12T13:34:42Z")

</div>

Hello On Shopware 6.10-RC2 version, method Context::createDefaultContext() has been marked as internal. Will our plugin pass validation if we use this method in code? And If it is forbidden, is it possible to get conte…

---

## [Strange json response /api/v1/product](https://forum.shopware.com/t/strange-json-response-api-v1-product/63453)

<div class="topic-metadata">

**Author:** [@Andreas0arttonia](https://forum.shopware.com/u/Andreas0arttonia)\
**Antworten:** 1\
**Zuletzt aktualisiert:** [11. Dezember 2019 um 12:07 UTC](https://forum.shopware.com/t/strange-json-response-api-v1-product/63453 "2019-12-11T12:07:40Z")

</div>

Hi, I’m working on a small connector between a shopware 6 test environment and another database which is gathering product data from sw. Now, I moved the project over to a new computer and from that point on the json r…

---

## [cookies](https://forum.shopware.com/t/cookies/63293)

<div class="topic-metadata">

**Author:** [@ivanb](https://forum.shopware.com/u/ivanb)\
**Antworten:** 0\
**Zuletzt aktualisiert:** [2. Dezember 2019 um 14:03 UTC](https://forum.shopware.com/t/cookies/63293 "2019-12-02T14:03:30Z")

</div>

Hello, Is there a way to access the cookie from the administration module, without using document.cookie?

---

## [How to create Form like payments (eg SEPA,Credit Card)](https://forum.shopware.com/t/how-to-create-form-like-payments-eg-sepa-credit-card/63228)

<div class="topic-metadata">

**Author:** [@charles0301](https://forum.shopware.com/u/charles0301)\
**Antworten:** 0\
**Zuletzt aktualisiert:** [28. November 2019 um 10:47 UTC](https://forum.shopware.com/t/how-to-create-form-like-payments-eg-sepa-credit-card/63228 "2019-11-28T10:47:30Z")

</div>

Hello All, I have created sample invoice payment in shopware 6 but I have not seen any document related to create payment like SEPA. In shopware 5 there is one default payment in SEPA likewise any default payment availa…

---

## [Get access to all prices in storefront](https://forum.shopware.com/t/get-access-to-all-prices-in-storefront/62641)

<div class="topic-metadata">

**Author:** [@Kairalen](https://forum.shopware.com/u/Kairalen)\
**Antworten:** 1\
**Zuletzt aktualisiert:** [26. November 2019 um 10:48 UTC](https://forum.shopware.com/t/get-access-to-all-prices-in-storefront/62641 "2019-11-26T10:48:44Z")

</div>

Hello, please tell me whether it is possible to override the output prices throughout the storefront? (need to add additional text after each price in the storefront). Is it possible to override the currency ( {{ product…

---

## [extending mail template](https://forum.shopware.com/t/extending-mail-template/63184)

<div class="topic-metadata">

**Author:** [@ivanb](https://forum.shopware.com/u/ivanb)\
**Antworten:** 0\
**Zuletzt aktualisiert:** [26. November 2019 um 10:28 UTC](https://forum.shopware.com/t/extending-mail-template/63184 "2019-11-26T10:28:35Z")

</div>

Hello, I need to extend an order confirmation template with some custom information. How to add custom data to the mail template. (For example: {{ delivery.myCustomData }})

---

## [@shopware/webpack-plugin-injector@1.0.0 Not found - for Administration frontend install and build](https://forum.shopware.com/t/shopware-webpack-plugin-injector-1-0-0-not-found-for-administration-frontend-install-and-build/63036)

<div class="topic-metadata">

**Author:** [@vladyslav2019](https://forum.shopware.com/u/vladyslav2019)\
**Antworten:** 0\
**Zuletzt aktualisiert:** [18. November 2019 um 14:10 UTC](https://forum.shopware.com/t/shopware-webpack-plugin-injector-1-0-0-not-found-for-administration-frontend-install-and-build/63036 "2019-11-18T14:10:45Z")

</div>

Before trying to build the administration frontend firstly installing dependencies from the package.json, by npm install command at platform/src/Administration/Resources/administration directory Not found error is resp…

---

## [Installing Shopware 6 in Subfolder not working](https://forum.shopware.com/t/installing-shopware-6-in-subfolder-not-working/63028)

<div class="topic-metadata">

**Author:** [@oliverriske](https://forum.shopware.com/u/oliverriske)\
**Antworten:** 1\
**Zuletzt aktualisiert:** [18. November 2019 um 10:27 UTC](https://forum.shopware.com/t/installing-shopware-6-in-subfolder-not-working/63028 "2019-11-18T10:27:08Z")

</div>

I have installed Shopware 6 in a subfolder /shop. Virtual Host points to http://martel-shopware6.dev4 without /shop. Now Webpack is not resolving some assets correct. How can i fix this?

---

## [Snippets for other languages doesn't work](https://forum.shopware.com/t/snippets-for-other-languages-doesnt-work/62863)

<div class="topic-metadata">

**Author:** [@ivanb](https://forum.shopware.com/u/ivanb)\
**Antworten:** 0\
**Zuletzt aktualisiert:** [7. November 2019 um 15:12 UTC](https://forum.shopware.com/t/snippets-for-other-languages-doesnt-work/62863 "2019-11-07T15:12:10Z")

</div>

Hello, I added snippets for Spanish and French in my module and after installation of these language packs, it is not translated. English and German work fine.

---

## [X-Frame-Options](https://forum.shopware.com/t/x-frame-options/62249)

<div class="topic-metadata">

**Author:** [@ivanb](https://forum.shopware.com/u/ivanb)\
**Antworten:** 0\
**Zuletzt aktualisiert:** [9. Oktober 2019 um 14:59 UTC](https://forum.shopware.com/t/x-frame-options/62249 "2019-10-09T14:59:14Z")

</div>

Is it possible to show a response from the Shopware controller inside an iframe? Or is it possible to somehow override ResponseHeaderListener which always set ‚x-frame-options‘ header to deny? Alternatively, I can die a …

---

## [DAL - No Index Tables?](https://forum.shopware.com/t/dal-no-index-tables/62076)

<div class="topic-metadata">

**Author:** [@brocksinet](https://forum.shopware.com/u/brocksinet)\
**Antworten:** 2\
**Zuletzt aktualisiert:** [1. Oktober 2019 um 07:40 UTC](https://forum.shopware.com/t/dal-no-index-tables/62076 "2019-10-01T07:40:48Z")

</div>

Hello, do I understand it correct that you do not have dedicated index tables in shopware 6? Because I executed bin/console dal:refresh:index and was searching in the db for some index tables. Then I checked some comm…

---

## [How do I access a Cart entity?](https://forum.shopware.com/t/how-do-i-access-a-cart-entity/61864)

<div class="topic-metadata">

**Author:** [@Kairale](https://forum.shopware.com/u/Kairale)\
**Antworten:** 1\
**Zuletzt aktualisiert:** [19. September 2019 um 13:53 UTC](https://forum.shopware.com/t/how-do-i-access-a-cart-entity/61864 "2019-09-19T13:53:15Z")

</div>

Hi! As I understand it for each table in the database exists \*\*Collection.php \*\*Entity.php \*\*Definition.php, and just through them the interaction with the database. I’m trying to create an entity to link product\_id and …

---

## [Inaccuracies in documentation](https://forum.shopware.com/t/inaccuracies-in-documentation/61856)

<div class="topic-metadata">

**Author:** [@AleksaPelse](https://forum.shopware.com/u/AleksaPelse)\
**Antworten:** 1\
**Zuletzt aktualisiert:** [19. September 2019 um 09:22 UTC](https://forum.shopware.com/t/inaccuracies-in-documentation/61856 "2019-09-19T09:22:15Z")

</div>

Hello. I couldn’t find the theme for my question. I’m learning SW\_6 with the documentation and I’m noticing innacuracies. For example: https://docs.shopware.com/en/shopware-platform-dev-en/getting-started/indepth-guide-b…

---

## [custom module](https://forum.shopware.com/t/custom-module/61793)

<div class="topic-metadata">

**Author:** [@ivanb](https://forum.shopware.com/u/ivanb)\
**Antworten:** 0\
**Zuletzt aktualisiert:** [16. September 2019 um 13:29 UTC](https://forum.shopware.com/t/custom-module/61793 "2019-09-16T13:29:31Z")

</div>

I have created a new module on the administration panel. Is it possible to call specific controller action when I click on this module (For example I have created a controller with a route /myplugin/test and when I click…

---

## [Cannot instantiate custom repository](https://forum.shopware.com/t/cannot-instantiate-custom-repository/61671)

<div class="topic-metadata">

**Author:** [@ivanb](https://forum.shopware.com/u/ivanb)\
**Antworten:** 2\
**Zuletzt aktualisiert:** [10. September 2019 um 13:44 UTC](https://forum.shopware.com/t/cannot-instantiate-custom-repository/61671 "2019-09-10T13:44:41Z")

</div>

Hello everyone I tried to get the instance of custom\_entity repository by calling \*\*this-\\\>container-\\\>get('custom\\\_entity.repository')\*\* inside base class of example plugin from GitHub repository (https://github.com/sh…

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

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