0

How do I get all discounts on an order?

Is it possible to get all promotions applied on an order:

$order_id = \Drupal::routeMatch()->getParameter('commerce_order')->id();
$order = Order::load($order_id);

// how to get all promotions numbers off of this order object

thanks.

Your Answer

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

Browse other questions tagged or ask your own question.