# Preisfunktion in Shopware

**URL:** https://forum.shopware.com/t/preisfunktion-in-shopware/66752
**Category:** Programmierung
**Created:** [6. Mai 2020 um 06:37 UTC](https://forum.shopware.com/t/preisfunktion-in-shopware/66752 "2020-05-06T06:37:43Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![anon74605289](https://avatars.discourse-cdn.com/v4/letter/a/58956e/32.png) [@anon74605289](https://forum.shopware.com/u/anon74605289)
#### Post date: [6. Mai 2020 um 06:37 UTC](https://forum.shopware.com/t/preisfunktion-in-shopware/66752/1 "2020-05-06T06:37:43Z")

</div>

Ich möchte den Preis der in Shopware für ein Produkt hinterlegt ist durch einen eigenen Preis aus eigenem Plugin überschreiben.

Und zwar dergestalt, das an jeder Stelle im Shop nur noch mein neuer eigens erstellter Preis und nicht der Shopware eigene Preis gezogen wird.

Welche Möglichkeiten habe ich dazu und wie rufe ich dann diesen neuen Preis im jeweiligen Produkt auf?

Was ich habe ist eine Zuordnung des Preises zum Produkt in der DB.

---

<div class="post-metadata">

### Author: ![MarkusFischer](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/markusfischer/32/13693_2.png) [@MarkusFischer](https://forum.shopware.com/u/MarkusFischer)
#### Post date: [6. Mai 2020 um 07:06 UTC](https://forum.shopware.com/t/preisfunktion-in-shopware/66752/2 "2020-05-06T07:06:28Z")

</div>

Wenn ich Deine Frage richtig verstehe, wirst Du Dich mit der API und dem Shopware Data Abstraction Layer beschäftigen müssen:&nbsp;

DAL:

[https://docs.shopware.com/en/shopware-platform-dev-en/how-to/updating-entities-dal](https://docs.shopware.com/en/shopware-platform-dev-en/how-to/updating-entities-dal)

API:

[https://docs.shopware.com/en/shopware-platform-dev-en/store-api-guide](https://docs.shopware.com/en/shopware-platform-dev-en/store-api-guide)

---

<div class="post-metadata">

### Author: ![anon74605289](https://avatars.discourse-cdn.com/v4/letter/a/58956e/32.png) [@anon74605289](https://forum.shopware.com/u/anon74605289)
#### Post date: [6. Mai 2020 um 07:25 UTC](https://forum.shopware.com/t/preisfunktion-in-shopware/66752/3 "2020-05-06T07:25:25Z")

</div>

Die Daten sind alle da, ich muss lediglich den Preis eines bestehenden Produktes ändern.

Und meine Frage ist, wie ich das am besten angehe. Hast du / Habt ihr Ideen?

---

<div class="post-metadata">

### Author: ![marc.matzkeit](https://avatars.discourse-cdn.com/v4/letter/m/50afbb/32.png) [@marc.matzkeit](https://forum.shopware.com/u/marc.matzkeit)
#### Post date: [2. Dezember 2021 um 09:36 UTC](https://forum.shopware.com/t/preisfunktion-in-shopware/66752/4 "2021-12-02T09:36:43Z")

</div>

@anon74605289 : Habt ihr dafür eine Lösung gefunden? Wir interessieren uns auch dafür.
