diff --git a/Helper/Cart.php b/Helper/Cart.php
index d407e90..b8edc0f 100644
--- a/Helper/Cart.php
+++ b/Helper/Cart.php
@@ -49,20 +49,19 @@ public function applyCoupon(\Magento\Quote\Model\Quote $quote, string $coupon):
catch (LocalizedException $e) {
$this->messageManager->addError(
- __("Discount code $coupon couldn't be applied: " .
- $e->getMessage())
+ __("Discount code %1 couldn't be applied: %2",$coupon,$e->getMessage())
);
}
catch (\Exception $e) {
$this->messageManager->addError(
- __("Discount code $coupon couldn't be applied or is invalid")
+ __("Discount code %1 couldn't be applied or is invalid",$coupon)
);
}
if ($quote->getCouponCode() != $coupon) {
$this->messageManager->addError(
- __("Discount code $coupon is invalid. Verify that it's correct and try again.")
+ __("Discount code %1 is invalid. Verify that it's correct and try again.",$coupon)
);
}
}