I am getting the coupon code(promotional code) for an order For a coupon code, I am using this


How to get the coupon code discounted price so I can show it to the user. Like gift card I am getting gift card amount

For gift card name - $orderInfo->getGiftCards()

For gift amount - $orderInfo->getGiftCardsAmount()

I am showing all the information like this

enter image description here

I need to show coupon code option, I am not able to get the coupon code discounted price.

How to get coupon code price.


1 Answer 1


try $order->getDiscountAmount(); or $order->getDiscount();

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.