# Plugin "Coupons"

**URL:** https://forum.shopware.com/t/plugin-coupons/35121
**Category:** Plugins
**Created:** [8. März 2016 um 14:59 UTC](https://forum.shopware.com/t/plugin-coupons/35121 "2016-03-08T14:59:33Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![cbra](https://avatars.discourse-cdn.com/v4/letter/c/d26b3c/32.png) [@cbra](https://forum.shopware.com/u/cbra)
#### Post date: [8. März 2016 um 14:59 UTC](https://forum.shopware.com/t/plugin-coupons/35121/1 "2016-03-08T14:59:33Z")

</div>

Hi \*,

wir wollen Gutscheine mit diesem Plugin umsetzten:  
[http://store.shopware.com/swagcoupons/coupons.html](http://store.shopware.com/swagcoupons/coupons.html)

Ich bin im Demoshop zum Testen nach der Anleitung vorgegangen und es funktioniert&nbsp;gut  
[http://community.shopware.com/Plugin-Coupons\_detail\_1820.html](http://community.shopware.com/Plugin-Coupons_detail_1820.html)

Nun kam die Frage auf, ob pro Bestellung mehrere Gutscheine eingelöst werden können. Wenn ich das versuche, kommt die Meldung, dass nur ein Gutschein pro Bestellung eingelöst werden kann (vgl. Screenshot).&nbsp;

Frage: Gibt es irgenwo Einstellungen, mit denen man mehrere Gutscheine pro Bestellung zulassen kann? Habe nicht s gefunden.

LG

CBra

![](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/2/2dadeb0251acbda9085a1ee2aaa1fb05e014b0d1.png)

---

<div class="post-metadata">

### Author: ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)
#### Post date: [8. März 2016 um 15:25 UTC](https://forum.shopware.com/t/plugin-coupons/35121/2 "2016-03-08T15:25:26Z")

</div>

Das Plugin arbeitet hier ja mit der Core-Funktionalität. Da ist es aktuell nur möglich einen Gutschein pro Bestellung einzulösen. Diese Möglichkeit gibt es also ohne eine individuelle Erweiterung/Plugin nicht in Shopware.

---

<div class="post-metadata">

### Author: ![Schnurk](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@Schnurk](https://forum.shopware.com/u/Schnurk)
#### Post date: [24. August 2016 um 11:53 UTC](https://forum.shopware.com/t/plugin-coupons/35121/3 "2016-08-24T11:53:09Z")

</div>

Hallo [@Moritz Naczenski]([http://forum.shopware.com/profile/14574/Moritz](http://forum.shopware.com/profile/14574/Moritz) Naczenski „Moritz Naczenski“)‍ ,

das Plugin ist im Store nicht mehr auffindbar, hast du eine Ahnung warum ?

Gruß

Stefan

---

<div class="post-metadata">

### Author: ![Schnurk](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@Schnurk](https://forum.shopware.com/u/Schnurk)
#### Post date: [15. September 2016 um 09:54 UTC](https://forum.shopware.com/t/plugin-coupons/35121/4 "2016-09-15T09:54:01Z")

</div>

Hi [@Moritz Naczenski]([http://forum.shopware.com/profile/14574/Moritz](http://forum.shopware.com/profile/14574/Moritz) Naczenski „Moritz Naczenski“)‍ ,

konntest du hier etwas rausfinden ?

Wird das Plugin überarbeitet oder wurde es komplett entfernt ?

Viele Grüße

Stefan

---

<div class="post-metadata">

### Author: ![AndreHerking](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/andreherking/32/7839_2.png) [@AndreHerking](https://forum.shopware.com/u/AndreHerking)
#### Post date: [7. Oktober 2016 um 13:24 UTC](https://forum.shopware.com/t/plugin-coupons/35121/5 "2016-10-07T13:24:37Z")

</div>

Hallo Stefan,

aktuell findet keine Weiterentwicklung des Coupon-Plugins statt weshalb es auch nicht im Store auffindbar ist.

LG Andre&nbsp; ![Shopware](https://forum.shopware.com/plugins/CKEditor/plugins/smiley/images/shopware.png "Shopware")

---

<div class="post-metadata">

### Author: ![kadis](https://avatars.discourse-cdn.com/v4/letter/k/c57346/32.png) [@kadis](https://forum.shopware.com/u/kadis)
#### Post date: [16. Dezember 2016 um 10:21 UTC](https://forum.shopware.com/t/plugin-coupons/35121/6 "2016-12-16T10:21:47Z")

</div>

Hallo Andre,

könnt ihr den Quellcode des Plugins dann öffnen. Dann kann die Community das Plugin aktuell halten.

Zur Zeit ist es verschlüsselt und macht Probleme in SW5.

```
core.ERROR: exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'ub.customernumber' in 'field list''

```

&nbsp;

---

<div class="post-metadata">

### Author: ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)
#### Post date: [16. Dezember 2016 um 10:56 UTC](https://forum.shopware.com/t/plugin-coupons/35121/7 "2016-12-16T10:56:02Z")

</div>

Ich schau mal, ob ich das im Laufe des Tages so einstellen kann, dass du über den Account eine unverschlüsselte Version bekommst.

---

<div class="post-metadata">

### Author: ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)
#### Post date: [16. Dezember 2016 um 12:53 UTC](https://forum.shopware.com/t/plugin-coupons/35121/8 "2016-12-16T12:53:46Z")

</div>

> [@kadis schrieb:](https://forum.shopware.com/profile/3483/kadis "kadis")
> 
> Hallo Andre,
> 
> könnt ihr den Quellcode des Plugins dann öffnen. Dann kann die Community das Plugin aktuell halten.
> 
> Zur Zeit ist es verschlüsselt und macht Probleme in SW5.
> 
> core.ERROR: exception ‚PDOException‘ with message ‚SQLSTATE[42S22]: Column not found: 1054 Unknown column ‚ub.customernumber‘ in ‚field list‘‘
> 
> &nbsp;

Wenn du jetzt in den Account gehst und das Plugin herunterlädst, bekommst du es unverschlüsselt.&nbsp;

---

<div class="post-metadata">

### Author: ![kadis](https://avatars.discourse-cdn.com/v4/letter/k/c57346/32.png) [@kadis](https://forum.shopware.com/u/kadis)
#### Post date: [19. Dezember 2016 um 09:21 UTC](https://forum.shopware.com/t/plugin-coupons/35121/9 "2016-12-19T09:21:16Z")

</div>

Hallo Moritz,

besten Dank. Um das Problem zu lösen ist nur eine Änderung in der SQL Abfrage nötig.

Datei CustomerAndOrderService.php Zeile 52 ändern in:

```
$sql = "
            SELECT
                `b`.`company` AS `billing_company`,
                `b`.`department` AS `billing_department`,
                `b`.`salutation` AS `billing_salutation`,
                /*`ub`.`customernumber`,*/
                `b`.`firstname` AS `billing_firstname`,
                `b`.`lastname` AS `billing_lastname`,
                `b`.`street` AS `billing_street`,
                `b`.`zipcode` AS `billing_zipcode`,
                `b`.`city` AS `billing_city`,
                `b`.`phone` AS `phone`,
                `b`.`phone` AS `billing_phone`,
                '' AS `fax`,
                '' AS `billing_fax`,
                `b`.`countryID` AS `billing_countryID`,
                `b`.`stateID` AS `billing_stateID`,
                `bc`.`countryname` AS `billing_country`,
                `bc`.`countryiso` AS `billing_countryiso`,
                `bca`.`name` AS `billing_countryarea`,
                `bc`.`countryen` AS `billing_countryen`,
                `b`.`ustid`,
                `ba`.`text1` AS `billing_text1`,
                `ba`.`text2` AS `billing_text2`,
                `ba`.`text3` AS `billing_text3`,
                `ba`.`text4` AS `billing_text4`,
                `ba`.`text5` AS `billing_text5`,
                `ba`.`text6` AS `billing_text6`,
                `b`.`orderID` as `orderID`,
                `s`.`company` AS `shipping_company`,
                `s`.`department` AS `shipping_department`,
                `s`.`salutation` AS `shipping_salutation`,
                `s`.`firstname` AS `shipping_firstname`,
                `s`.`lastname` AS `shipping_lastname`,
                `s`.`street` AS `shipping_street`,
                `s`.`zipcode` AS `shipping_zipcode`,
                `s`.`city` AS `shipping_city`,
                `s`.`stateID` AS `shipping_stateID`,
                `s`.`countryID` AS `shipping_countryID`,
                `sc`.`countryname` AS `shipping_country`,
                `sc`.`countryiso` AS `shipping_countryiso`,
                `sca`.`name` AS `shipping_countryarea`,
                `sc`.`countryen` AS `shipping_countryen`,
                `sa`.`text1` AS `shipping_text1`,
                `sa`.`text2` AS `shipping_text2`,
                `sa`.`text3` AS `shipping_text3`,
                `sa`.`text4` AS `shipping_text4`,
                `sa`.`text5` AS `shipping_text5`,
                `sa`.`text6` AS `shipping_text6`,
                `u`.*,
                /*ub.birthday,*/
                   `g`.`id` AS `preisgruppe`,
                   `g`.`tax` AS `billing_net`
            FROM
                `s_order_billingaddress` as `b`
            LEFT JOIN `s_order_shippingaddress` as `s`
                ON `s`.`orderID` = `b`.`orderID`
            LEFT JOIN `s_user_billingaddress` as `ub`
                ON `ub`.`userID` = `b`.`userID`
            LEFT JOIN `s_user` as `u`
                ON `b`.`userID` = `u`.`id`
            LEFT JOIN `s_core_countries` as `bc`
                ON `bc`.`id` = `b`.`countryID`
            LEFT JOIN `s_core_countries` as `sc`
                ON `sc`.`id` = `s`.`countryID`
            LEFT JOIN `s_core_customergroups` as `g`
                ON `u`.`customergroup` = `g`.`groupkey`
            LEFT JOIN s_core_countries_areas bca
                ON bc.areaID = bca.id
            LEFT JOIN s_core_countries_areas sca
                ON sc.areaID = sca.id
            LEFT JOIN s_order_billingaddress_attributes ba
                ON b.id = ba.billingID
            LEFT JOIN s_order_shippingaddress_attributes sa
                ON s.id = sa.shippingID
            WHERE `b`.`orderID`= :id;
        ";

```

&nbsp;

---

<div class="post-metadata">

### Author: ![sputn1k](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@sputn1k](https://forum.shopware.com/u/sputn1k)
#### Post date: [20. Februar 2017 um 13:59 UTC](https://forum.shopware.com/t/plugin-coupons/35121/10 "2017-02-20T13:59:28Z")

</div>

> [@Moritz Naczenski schrieb:](https://forum.shopware.com/profile/14574/Moritz%20Naczenski "Moritz%20Naczenski")
> 
> > [@kadis schrieb:](https://forum.shopware.com/profile/3483/kadis "kadis")
> > 
> > Hallo Andre,
> > 
> > könnt ihr den Quellcode des Plugins dann öffnen. Dann kann die Community das Plugin aktuell halten.
> > 
> > Zur Zeit ist es verschlüsselt und macht Probleme in SW5.
> > 
> > core.ERROR: exception ‚PDOException‘ with message ‚SQLSTATE[42S22]: Column not found: 1054 Unknown column ‚ub.customernumber‘ in ‚field list‘‘
> > 
> > &nbsp;
> 
> Wenn du jetzt in den Account gehst und das Plugin herunterlädst, bekommst du es unverschlüsselt.&nbsp;
> 
> &nbsp;
> 
> &nbsp;

Hi Moritz,

&nbsp;

habe exakt das selbe Problem in einem Shop den ich betreue. Auf welchem Wege kann ich auch eine unverschlüsselte Version des Plugins erhalten?

&nbsp;

Gruß

Martin&nbsp;

---

<div class="post-metadata">

### Author: ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)
#### Post date: [20. Februar 2017 um 14:35 UTC](https://forum.shopware.com/t/plugin-coupons/35121/11 "2017-02-20T14:35:57Z")

</div>

Du bekommst die letzte verfügbare Version im Account quelloffen zum Download.

---

<div class="post-metadata">

### Author: ![sputn1k](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@sputn1k](https://forum.shopware.com/u/sputn1k)
#### Post date: [21. Februar 2017 um 08:25 UTC](https://forum.shopware.com/t/plugin-coupons/35121/12 "2017-02-21T08:25:21Z")

</div>

> [@Moritz Naczenski schrieb:](https://forum.shopware.com/profile/14574/Moritz%20Naczenski "Moritz%20Naczenski")
> 
> Du bekommst die letzte verfügbare Version im Account quelloffen zum Download.

Ich danke Dir! Mit den Änderungen von kadis funktiniert es nun!&nbsp;

---

<div class="post-metadata">

### Author: ![zinitsolutions](https://avatars.discourse-cdn.com/v4/letter/z/bcef8e/32.png) [@zinitsolutions](https://forum.shopware.com/u/zinitsolutions)
#### Post date: [8. Juni 2017 um 11:46 UTC](https://forum.shopware.com/t/plugin-coupons/35121/13 "2017-06-08T11:46:43Z")

</div>

Hallo, [@Moritz Naczenski]([http://forum.shopware.com/profile/14574/Moritz](http://forum.shopware.com/profile/14574/Moritz) Naczenski “Moritz Naczenski”)‍, können wir&nbsp;auch&nbsp;eine unverschlüsselte Version dieses Plugins erhalten? Soll da viel umgeschrieben werden, damit es mit Shopware 5.2.24 funktioniert?Vielen Dank

---

<div class="post-metadata">

### Author: ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)
#### Post date: [8. Juni 2017 um 11:53 UTC](https://forum.shopware.com/t/plugin-coupons/35121/14 "2017-06-08T11:53:18Z")

</div>

@zinitsolutions‍

Die Kunden, die das Plugin käuflich erworben haben, finden es in Ihrem Account. Nur diese bekommen es auch quelloffen direkt über den Account. Andere Kunden, die das Plugin nicht ehemals gekauft haben, haben keine Möglichkeit das Plugin zu erhalten.
