1

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

$order->getCouponCode();

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.

2

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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