feat: show errors direclty under the input
Änderungen vergleichen
Dateien
4- Michael Danielczok erstellt
Improve error handling for coupon code input. Added a catch block to handle errors when adding a coupon code to the basket. The error message is now displayed directly under the input field, providing a better user experience. Related: #20
+ 27
− 38
@@ -13,6 +13,15 @@
@@ -23,20 +32,14 @@ function ($code, $orderHash) {
@@ -49,40 +52,28 @@ function ($code, $orderHash) {
@@ -104,8 +95,6 @@ function ($code, $orderHash) {