# Programming (EN)

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

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

**Page:** 3

---

## [How to add a package dependency to a shopware 6 plugin?](https://forum.shopware.com/t/how-to-add-a-package-dependency-to-a-shopware-6-plugin/86326)

<div class="topic-metadata">

**Author:** [@murthoprovides](https://forum.shopware.com/u/murthoprovides)\
**Antworten:** 1\
**Zuletzt aktualisiert:** [10. August 2023 um 05:43 UTC](https://forum.shopware.com/t/how-to-add-a-package-dependency-to-a-shopware-6-plugin/86326 "2023-08-10T05:43:20Z")

</div>

How do I add a package to my shopware 6 plugin? I want to create an extension to the current behaviour of uploading media files. That’s why I want to install this composer package in my plugin: GitHub - runelaenen/sw6-m…

---

## [How do I add a Shipping method to the saleschannel via the repository pattern](https://forum.shopware.com/t/how-do-i-add-a-shipping-method-to-the-saleschannel-via-the-repository-pattern/66992)

<div class="topic-metadata">

**Author:** [@koendb](https://forum.shopware.com/u/koendb)\
**Antworten:** 1\
**Zuletzt aktualisiert:** [4. August 2023 um 13:50 UTC](https://forum.shopware.com/t/how-do-i-add-a-shipping-method-to-the-saleschannel-via-the-repository-pattern/66992 "2023-08-04T13:50:43Z")

</div>

Hello, I am making a shipping method plugin for the company I work for. We have an api that checks available shipping methods. The shipping method chosen by the customer needs to be added to the shopware database so tha…

---

## [Add new variables/data for Vue in Administration](https://forum.shopware.com/t/add-new-variables-data-for-vue-in-administration/100731)

<div class="topic-metadata">

**Author:** [@Cornelia](https://forum.shopware.com/u/Cornelia)\
**Antworten:** 0\
**Zuletzt aktualisiert:** [4. August 2023 um 05:53 UTC](https://forum.shopware.com/t/add-new-variables-data-for-vue-in-administration/100731 "2023-08-04T05:53:16Z")

</div>

Hi :slight\_smile: I’ve added a new e-mail field to the customer via an entity extension. The new field is added via the file /var/www/html/custom/plugins/MyPlugin/src/Resources/app/administration/src/module/extension/s…

---

## [How to detect that webhook failed](https://forum.shopware.com/t/how-to-detect-that-webhook-failed/100728)

<div class="topic-metadata">

**Author:** [@FrankVdLaar](https://forum.shopware.com/u/FrankVdLaar)\
**Antworten:** 0\
**Zuletzt aktualisiert:** [3. August 2023 um 13:28 UTC](https://forum.shopware.com/t/how-to-detect-that-webhook-failed/100728 "2023-08-03T13:28:04Z")

</div>

Hi, Using the admin API, I’ve created a webhook that triggers when an order has been paid. That works nicely, even without using an app. But I would like to know when the webhook fails, e.g. when there are connection pr…

---

## [EntityRepositoryInterface Error when applying Shopware 6 developer training plugin](https://forum.shopware.com/t/entityrepositoryinterface-error-when-applying-shopware-6-developer-training-plugin/99783)

<div class="topic-metadata">

**Author:** [@isla\_che](https://forum.shopware.com/u/isla_che)\
**Antworten:** 3\
**Zuletzt aktualisiert:** [2. August 2023 um 12:17 UTC](https://forum.shopware.com/t/entityrepositoryinterface-error-when-applying-shopware-6-developer-training-plugin/99783 "2023-08-02T12:17:27Z")

</div>

I’m new to Shopware development, i applied all the steps from this course, and I got this error :https://academy.shopware.com/courses/take/shopware-6-developer-training-english # SwagShopFinder\\Storefront\\Subscriber\\Foot…

---

## [Payment token is too long](https://forum.shopware.com/t/payment-token-is-too-long/67246)

<div class="topic-metadata">

**Author:** [@mantic](https://forum.shopware.com/u/mantic)\
**Antworten:** 2\
**Zuletzt aktualisiert:** [9. Juli 2023 um 14:52 UTC](https://forum.shopware.com/t/payment-token-is-too-long/67246 "2023-07-09T14:52:13Z")

</div>

Hello, I am developing a plugin for a payment gateway. I need to set up redirection to the payment gateway, where „$ redirectUrl“ is required. Unfortunately, the payment gateway has the restriction that this field must n…

---

## [Storefront JS Not Working - Shopware 6.5](https://forum.shopware.com/t/storefront-js-not-working-shopware-6-5/99630)

<div class="topic-metadata">

**Author:** [@deepak\_a](https://forum.shopware.com/u/deepak_a)\
**Antworten:** 3\
**Zuletzt aktualisiert:** [13. Juni 2023 um 07:58 UTC](https://forum.shopware.com/t/storefront-js-not-working-shopware-6-5/99630 "2023-06-13T07:58:18Z")

</div>

Hello… I have one major issue in my custom plugin. I developed the custom plugin in shopware version 6.4.\* . The custom plugin working correctly in shopware version 6.4.\* series. But the plugin is not working in shopwar…

---

## [Extend Core Services via custom plugin](https://forum.shopware.com/t/extend-core-services-via-custom-plugin/99722)

<div class="topic-metadata">

**Author:** [@yurii.k](https://forum.shopware.com/u/yurii.k)\
**Antworten:** 1\
**Zuletzt aktualisiert:** [22. Mai 2023 um 08:50 UTC](https://forum.shopware.com/t/extend-core-services-via-custom-plugin/99722 "2023-05-22T08:50:04Z")

</div>

Hi! Is it possible to extend core services functionality via custom plugins? E.g. Shopware\\Core\\Checkout\\Cart\\Address\\AddressValidator - I have to extend this class with my own validate method. I’m sure it is possible,…

---

## [Shopware 6 -\> AWS Secrets Manager integration](https://forum.shopware.com/t/shopware-6-aws-secrets-manager-integration/99588)

<div class="topic-metadata">

**Author:** [@efekan.c](https://forum.shopware.com/u/efekan.c)\
**Antworten:** 0\
**Zuletzt aktualisiert:** [8. Mai 2023 um 09:20 UTC](https://forum.shopware.com/t/shopware-6-aws-secrets-manager-integration/99588 "2023-05-08T09:20:12Z")

</div>

Hi guys I’m currently trying to integrate AWS Secrets Manager with Shopware6 for the database\_url but does someone know how I could do this simply or has it been done before? Kind Regards, Efekan

---

## [Image Upload withREST API](https://forum.shopware.com/t/image-upload-withrest-api/70467)

<div class="topic-metadata">

**Author:** [@BastianHbner](https://forum.shopware.com/u/BastianHbner)\
**Antworten:** 15\
**Zuletzt aktualisiert:** [27. April 2023 um 09:54 UTC](https://forum.shopware.com/t/image-upload-withrest-api/70467 "2023-04-27T09:54:28Z")

</div>

Hi, I’m trying to upload some images with the following command but i get an error message all the time. Does anyone have any idea why?

---

## [Missing prices in shipping methods (API)](https://forum.shopware.com/t/missing-prices-in-shipping-methods-api/68277)

<div class="topic-metadata">

**Author:** [@Hoargarth](https://forum.shopware.com/u/Hoargarth)\
**Antworten:** 3\
**Zuletzt aktualisiert:** [21. April 2023 um 08:50 UTC](https://forum.shopware.com/t/missing-prices-in-shipping-methods-api/68277 "2023-04-21T08:50:41Z")

</div>

When fetching shipping methods with api-v1, the prices for all methods are missing in the response data. What steps did I do? Added prices to dummy shipping methods (Default and Express) as shown below. Both methods g…

---

## [Admin API - Update product translations?](https://forum.shopware.com/t/admin-api-update-product-translations/99402)

<div class="topic-metadata">

**Author:** [@michael7](https://forum.shopware.com/u/michael7)\
**Antworten:** 0\
**Zuletzt aktualisiert:** [20. April 2023 um 09:35 UTC](https://forum.shopware.com/t/admin-api-update-product-translations/99402 "2023-04-20T09:35:42Z")

</div>

Hi. I am using the REST API on a local developer shopware 6 docker, to create/import some products. However i would like to update the product texts for multiple languages, how is this done ? Thanks. /Michael

---

## [cURL error 28: Operation timed out after 5001 milliseconds with 0 bytes](https://forum.shopware.com/t/curl-error-28-operation-timed-out-after-5001-milliseconds-with-0-bytes/99290)

<div class="topic-metadata">

**Author:** [@charles0301](https://forum.shopware.com/u/charles0301)\
**Antworten:** 0\
**Zuletzt aktualisiert:** [11. April 2023 um 13:10 UTC](https://forum.shopware.com/t/curl-error-28-operation-timed-out-after-5001-milliseconds-with-0-bytes/99290 "2023-04-11T13:10:54Z")

</div>

we are creating a payment app for Shopware 6 Cloud shop. While sending a payment request call to our server we received the „Curl time out error in shopware“. It is possible to increase the timeout in the cloud shop (or)…

---

## [Internal Server Error (500) when updating a newly created product (e.g. its visibilitiy)](https://forum.shopware.com/t/internal-server-error-500-when-updating-a-newly-created-product-e-g-its-visibilitiy/99232)

<div class="topic-metadata">

**Author:** [@hauke.coltzau](https://forum.shopware.com/u/hauke.coltzau)\
**Antworten:** 0\
**Zuletzt aktualisiert:** [5. April 2023 um 12:30 UTC](https://forum.shopware.com/t/internal-server-error-500-when-updating-a-newly-created-product-e-g-its-visibilitiy/99232 "2023-04-05T12:30:55Z")

</div>

(System: Shopware 6.4.20.0) Hi there, we regularly synchronize product data from our PIM-systems to shops via the admin api. Creation a new product via POST request to the product entity endpoint works as expected. Bu…

---

## [Create webhook using API](https://forum.shopware.com/t/create-webhook-using-api/99207)

<div class="topic-metadata">

**Author:** [@mahesh.ganjalagunte](https://forum.shopware.com/u/mahesh.ganjalagunte)\
**Antworten:** 0\
**Zuletzt aktualisiert:** [3. April 2023 um 15:48 UTC](https://forum.shopware.com/t/create-webhook-using-api/99207 "2023-04-03T15:48:29Z")

</div>

Looking to see if anyone has been able to create a new webhook using the steps listed for this endpoint. We are getting FRAMEWORK\_\_WRITE\_CONSTRAINT\_VIOLATION / 400 error with a message of „This field is write-protecte…

---

## [Oauth client Credentials Grant Integration gets an empty response](https://forum.shopware.com/t/oauth-client-credentials-grant-integration-gets-an-empty-response/99173)

<div class="topic-metadata">

**Author:** [@charles0301](https://forum.shopware.com/u/charles0301)\
**Antworten:** 2\
**Zuletzt aktualisiert:** [3. April 2023 um 14:28 UTC](https://forum.shopware.com/t/oauth-client-credentials-grant-integration-gets-an-empty-response/99173 "2023-04-03T14:28:13Z")

</div>

During the Client Credentials oauth API (api/oauth/token) call I am receiving an empty response with a 302 status code in the APP server. If anyone facing this issue and guides me to fix this issue.

---

## [Check Login Status in Twig / Theme](https://forum.shopware.com/t/check-login-status-in-twig-theme/72117)

<div class="topic-metadata">

**Author:** [@MKFS](https://forum.shopware.com/u/MKFS)\
**Antworten:** 4\
**Zuletzt aktualisiert:** [31. März 2023 um 08:15 UTC](https://forum.shopware.com/t/check-login-status-in-twig-theme/72117 "2023-03-31T08:15:25Z")

</div>

Hi community, I want to show a certain meta-information in the product-detail-page, but only if the user is logged in. This {% if $sUserLoggedIn %} .... {% endif %} doesn’t work and I can’t find anything about that …

---

## [Repository Mock - StaticEntityRepository on flex template](https://forum.shopware.com/t/repository-mock-staticentityrepository-on-flex-template/98968)

<div class="topic-metadata">

**Author:** [@kl-ffit](https://forum.shopware.com/u/kl-ffit)\
**Antworten:** 0\
**Zuletzt aktualisiert:** [16. März 2023 um 10:41 UTC](https://forum.shopware.com/t/repository-mock-staticentityrepository-on-flex-template/98968 "2023-03-16T10:41:23Z")

</div>

Hey. I’m developing a plugin using the flex template and wanted to write some tests with PHPUnit. I’m having problem with mocking repositories. Wanted to follow this guide in docks, as it looks pretty simple. Sadly th…

---

## [Problem with Translation of own Entities after Update](https://forum.shopware.com/t/problem-with-translation-of-own-entities-after-update/98827)

<div class="topic-metadata">

**Author:** [@towo1977](https://forum.shopware.com/u/towo1977)\
**Antworten:** 0\
**Zuletzt aktualisiert:** [7. März 2023 um 08:51 UTC](https://forum.shopware.com/t/problem-with-translation-of-own-entities-after-update/98827 "2023-03-07T08:51:21Z")

</div>

i do have a plugin with own Entity-Elements. at this entity i have a TranslationsAssociationField in 6.4.8 new/update an entry works fine. after update to 6.4.20 i get an error „Call to a member function is() on null“ …

---

## [Upsert doesn't work correctly.](https://forum.shopware.com/t/upsert-doesnt-work-correctly/72798)

<div class="topic-metadata">

**Author:** [@DionantSolutions](https://forum.shopware.com/u/DionantSolutions)\
**Antworten:** 2\
**Zuletzt aktualisiert:** [20. Februar 2023 um 19:59 UTC](https://forum.shopware.com/t/upsert-doesnt-work-correctly/72798 "2023-02-20T19:59:02Z")

</div>

When adding a product using upsert it creates the product correctly. But trying to ‚update‘ the product using the the same method doesn’t work, as I get an integrity constraint, saying the following; SQLSTATE\[23000\]:…

---

## [Product\_number instead of Product ID API Stock Update HELP :(](https://forum.shopware.com/t/product-number-instead-of-product-id-api-stock-update-help/96194)

<div class="topic-metadata">

**Author:** [@bettenundwohnen](https://forum.shopware.com/u/bettenundwohnen)\
**Antworten:** 4\
**Zuletzt aktualisiert:** [20. Februar 2023 um 19:54 UTC](https://forum.shopware.com/t/product-number-instead-of-product-id-api-stock-update-help/96194 "2023-02-20T19:54:02Z")

</div>

Hi dear community, since I’ve burned the second day searching, trying and failing… :frowning: Maybe someone can help me. I understand the API to some extent. I have the following data from a daily generated feed: prod…

---

## [Notification/message is running forever](https://forum.shopware.com/t/notification-message-is-running-forever/98337)

<div class="topic-metadata">

**Author:** [@marc.kern](https://forum.shopware.com/u/marc.kern)\
**Antworten:** 2\
**Zuletzt aktualisiert:** [16. Februar 2023 um 22:03 UTC](https://forum.shopware.com/t/notification-message-is-running-forever/98337 "2023-02-16T22:03:07Z")

</div>

Hi, We are working on shopware 6 (v6.4.18.1) , and in the backend always there is an API call for „notification/message?limit=5“ is running forever. Sometimes it will take long time to load and it’s affecting our perfo…

---

## [How to create Stroe API controller for APP plugin](https://forum.shopware.com/t/how-to-create-stroe-api-controller-for-app-plugin/98485)

<div class="topic-metadata">

**Author:** [@charles0301](https://forum.shopware.com/u/charles0301)\
**Antworten:** 3\
**Zuletzt aktualisiert:** [15. Februar 2023 um 17:11 UTC](https://forum.shopware.com/t/how-to-create-stroe-api-controller-for-app-plugin/98485 "2023-02-15T17:11:17Z")

</div>

We are sending requests to the APP backend server during checkout to confirm loading. How to create a controller to communicate with the External server.

---

## [Update Order Transaction custom fields](https://forum.shopware.com/t/update-order-transaction-custom-fields/98047)

<div class="topic-metadata">

**Author:** [@miro](https://forum.shopware.com/u/miro)\
**Antworten:** 1\
**Zuletzt aktualisiert:** [27. Januar 2023 um 15:25 UTC](https://forum.shopware.com/t/update-order-transaction-custom-fields/98047 "2023-01-27T15:25:30Z")

</div>

Hi guys. In my payment plugin I want to update the order\_transcation.custom\_fields field on checkout-finish page. I want to put in it the provider Transaction ID. I read into the Dev guide how to update into the DB, but…

---

## [What is Order Transaction Version](https://forum.shopware.com/t/what-is-order-transaction-version/98217)

<div class="topic-metadata">

**Author:** [@miro](https://forum.shopware.com/u/miro)\
**Antworten:** 0\
**Zuletzt aktualisiert:** [26. Januar 2023 um 13:51 UTC](https://forum.shopware.com/t/what-is-order-transaction-version/98217 "2023-01-26T13:51:22Z")

</div>

Hi, I am exploring the order\_transaction table and spot two fields - version\_id and order\_version\_id. In my case both fields hold same id. I checked the version table, but can not find the id from the order\_transaction …

---

## [What is the event to listen to for invoice generation?](https://forum.shopware.com/t/what-is-the-event-to-listen-to-for-invoice-generation/89132)

<div class="topic-metadata">

**Author:** [@rimvydas](https://forum.shopware.com/u/rimvydas)\
**Antworten:** 2\
**Zuletzt aktualisiert:** [25. Januar 2023 um 15:15 UTC](https://forum.shopware.com/t/what-is-the-event-to-listen-to-for-invoice-generation/89132 "2023-01-25T15:15:58Z")

</div>

Hello, What exactly are the events for invoices, credit notes etc. called? Do they even exist or do you need to setup the shop in a particular way so that generating invoices emits an event?

---

## [Get properties by id?](https://forum.shopware.com/t/get-properties-by-id/98167)

<div class="topic-metadata">

**Author:** [@KopfGroup](https://forum.shopware.com/u/KopfGroup)\
**Antworten:** 3\
**Zuletzt aktualisiert:** [24. Januar 2023 um 10:47 UTC](https://forum.shopware.com/t/get-properties-by-id/98167 "2023-01-24T10:47:43Z")

</div>

Hello, I’m trying to lookup properties by their id using the DAL, but I cant seem to find anything on it. Thanks in advance :slight\_smile:

---

## [The selected file "dummy.pdf" has an unsupported format. Please use one of the following types: application/pdf, image/\*](https://forum.shopware.com/t/the-selected-file-dummy-pdf-has-an-unsupported-format-please-use-one-of-the-following-types-application-pdf-image/98077)

<div class="topic-metadata">

**Author:** [@abinjohnedamana](https://forum.shopware.com/u/abinjohnedamana)\
**Antworten:** 1\
**Zuletzt aktualisiert:** [19. Januar 2023 um 05:33 UTC](https://forum.shopware.com/t/the-selected-file-dummy-pdf-has-an-unsupported-format-please-use-one-of-the-following-types-application-pdf-image/98077 "2023-01-19T05:33:22Z")

</div>

I am getting the following error when I am trying to upload a pdf file in Settings → Email templates → Attachments The selected file „dummy.pdf“ has an unsupported format. Please use one of the following types: applica…

---

## [Open source script to optimize Shopware 6 sitemap](https://forum.shopware.com/t/open-source-script-to-optimize-shopware-6-sitemap/98005)

<div class="topic-metadata">

**Author:** [@Srcaft](https://forum.shopware.com/u/Srcaft)\
**Antworten:** 0\
**Zuletzt aktualisiert:** [13. Januar 2023 um 21:38 UTC](https://forum.shopware.com/t/open-source-script-to-optimize-shopware-6-sitemap/98005 "2023-01-13T21:38:50Z")

</div>

Hello together, in some cases the google search console seem to have some trouble with parsing sitemaps created by Shopware 6. This seems mostly happen when the sitemap has a very large amount of entries. To fix this pr…

---

## [Need some help on Checkout page](https://forum.shopware.com/t/need-some-help-on-checkout-page/97954)

<div class="topic-metadata">

**Author:** [@miro](https://forum.shopware.com/u/miro)\
**Antworten:** 2\
**Zuletzt aktualisiert:** [12. Januar 2023 um 10:39 UTC](https://forum.shopware.com/t/need-some-help-on-checkout-page/97954 "2023-01-12T10:39:29Z")

</div>

Hi to all! I am trying to create a payment plugin for ShopWare 6 and I am stuck when try to get the Shipping and the Billing address. I know I am new in Shopware development, but few directions will be very helpful. S…

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

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