0

I'm using Magento 1.7. In creating new order via admin panel, how do you get the total quantity of items ordered?

2
  • what you mean by total quantity of items ordered ? Means no of items which is ordered in a order?
    – Amit Bera
    Aug 16, 2016 at 8:49
  • Yes, exactly. Because I want to add some fee based on the quantity of the items ordered in the order, prior to submission of the order.
    – KiD Cajes
    Aug 16, 2016 at 8:53

1 Answer 1

1

If you have Order object then using getTotalItemCount() ,you can get no of items ordered in an order.

<?php $_order = $this->getOrder() ?>
<?php echo $_order->getTotalItemCount();?>

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.