Skip to content
Code-Schnipsel Gruppen Projekte
Commit 534307a0 erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

fix: order#140

Übergeordneter 8af4a8f6
No related branches found
No related tags found
Keine zugehörigen Merge Requests gefunden
...@@ -24,4 +24,7 @@ ...@@ -24,4 +24,7 @@
fire="\QUI\ERP\Coupons\Events::onQuiqqerOrderBasketRemovePos" fire="\QUI\ERP\Coupons\Events::onQuiqqerOrderBasketRemovePos"
/> />
<event on="onQuiqqerOrderSuccessful" fire="\QUI\ERP\Coupons\Events::removeCouponsFromSession"/>
<event on="onQuiqqer::order::orderProcessFinish" fire="\QUI\ERP\Coupons\Events::removeCouponsFromSession"/>
</events> </events>
...@@ -393,4 +393,12 @@ protected static function addCouponToOrder($Order, $coupon) ...@@ -393,4 +393,12 @@ protected static function addCouponToOrder($Order, $coupon)
} catch (\Exception $Exception) { } catch (\Exception $Exception) {
} }
} }
/**
*
*/
public static function removeCouponsFromSession()
{
QUI::getSession()->remove('quiqqer-coupons');
}
} }
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren