Skip to main content
added 6 characters in body
Source Link
Magento 2
  • 3.8k
  • 7
  • 55
  • 107

We are using magento 1.9. In that

How to get ordered product count not order qty of product. I want to how many product is there in that order?

I am using this but it showing ordered qty only

 <?php 
        $_order = $this->getOrder(); //call the order
        echo $order_qty = floor($_order->getData('qty_ordered''total_qty_ordered')); //get qty of all items rounded to full number (without 3.0000 or so)
        //echo $order_qty;
    ?>

                

We are using magento 1.9. In that

How to get ordered product count not order qty of product. I want to how many product is there in that order?

I am using this but it showing ordered qty only

 <?php 
        $_order = $this->getOrder(); //call the order
        echo $order_qty = floor($_order->getData('qty_ordered')); //get qty of all items rounded to full number (without 3.0000 or so)
        //echo $order_qty;
    ?>

                

We are using magento 1.9. In that

How to get ordered product count not order qty of product. I want to how many product is there in that order?

I am using this but it showing ordered qty only

 <?php 
        $_order = $this->getOrder(); //call the order
        echo $order_qty = floor($_order->getData('total_qty_ordered')); //get qty of all items rounded to full number (without 3.0000 or so)
        //echo $order_qty;
    ?>

                
added 309 characters in body
Source Link
Magento 2
  • 3.8k
  • 7
  • 55
  • 107

We are using magento 1.9. In that

How to get ordered product count not order qty of product. I want to how many product is there in that order?

I am using this but it showing ordered qty only

 <?php 
        $_order = $this->getOrder(); //call the order
        echo $order_qty = floor($_order->getData('qty_ordered')); //get qty of all items rounded to full number (without 3.0000 or so)
        //echo $order_qty;
    ?>

                

We are using magento 1.9. In that

How to get ordered product count not order qty of product. I want to how many product is there in that order?

We are using magento 1.9. In that

How to get ordered product count not order qty of product. I want to how many product is there in that order?

I am using this but it showing ordered qty only

 <?php 
        $_order = $this->getOrder(); //call the order
        echo $order_qty = floor($_order->getData('qty_ordered')); //get qty of all items rounded to full number (without 3.0000 or so)
        //echo $order_qty;
    ?>

                
deleted 2199 characters in body
Source Link
Magento 2
  • 3.8k
  • 7
  • 55
  • 107

weWe are using magento 1.9. In that

How to get ordered product count not order qty of product. I want to how many product is there in that order?

Mage_Sales_Model_Order Object
(
    [_eventPrefix:protected] => sales_order
    [_eventObject:protected] => order
    [_addresses:protected] => 
    [_items:protected] => 
    [_payments:protected] => 
    [_statusHistory:protected] => 
    [_invoices:protected] => 
    [_tracks:protected] => 
    [_shipments:protected] => 
    [_creditmemos:protected] => 
    [_relatedObjects:protected] => Array
        (
        )

    [_orderCurrency:protected] => 
    [_baseCurrency:protected] => 
    [_actionFlag:protected] => Array
        (
        )

    [_canSendNewEmailFlag:protected] => 1
    [_historyEntityName:protected] => order
    [_resourceName:protected] => sales/order
    [_resource:protected] => 
    [_resourceCollectionName:protected] => sales/order_collection
    [_cacheTag:protected] => 
    [_dataSaveAllowed:protected] => 1
    [_isObjectNew:protected] => 
    [_data:protected] => Array
        (
        )

    [_hasDataChanges:protected] => 
    [_origData:protected] => Array
        (
        )

    [_idFieldName:protected] => 
    [_isDeleted:protected] => 
    [_oldFieldsMap:protected] => Array
        (
            [payment_authorization_expiration] => payment_auth_expiration
            [forced_do_shipment_with_invoice] => forced_shipment_with_invoice
            [base_shipping_hidden_tax_amount] => base_shipping_hidden_tax_amnt
        )

    [_syncFieldsMap:protected] => Array
        (
            [payment_authorization_expiration] => payment_auth_expiration
            [forced_do_shipment_with_invoice] => forced_shipment_with_invoice
            [base_shipping_hidden_tax_amount] => base_shipping_hidden_tax_amnt
            [payment_auth_expiration] => payment_authorization_expiration
            [forced_shipment_with_invoice] => forced_do_shipment_with_invoice
            [base_shipping_hidden_tax_amnt] => base_shipping_hidden_tax_amount
        )

)
                

we are using magento 1.9. In that

How to get ordered product count not order qty of product. I want to how many product is there in that order?

Mage_Sales_Model_Order Object
(
    [_eventPrefix:protected] => sales_order
    [_eventObject:protected] => order
    [_addresses:protected] => 
    [_items:protected] => 
    [_payments:protected] => 
    [_statusHistory:protected] => 
    [_invoices:protected] => 
    [_tracks:protected] => 
    [_shipments:protected] => 
    [_creditmemos:protected] => 
    [_relatedObjects:protected] => Array
        (
        )

    [_orderCurrency:protected] => 
    [_baseCurrency:protected] => 
    [_actionFlag:protected] => Array
        (
        )

    [_canSendNewEmailFlag:protected] => 1
    [_historyEntityName:protected] => order
    [_resourceName:protected] => sales/order
    [_resource:protected] => 
    [_resourceCollectionName:protected] => sales/order_collection
    [_cacheTag:protected] => 
    [_dataSaveAllowed:protected] => 1
    [_isObjectNew:protected] => 
    [_data:protected] => Array
        (
        )

    [_hasDataChanges:protected] => 
    [_origData:protected] => Array
        (
        )

    [_idFieldName:protected] => 
    [_isDeleted:protected] => 
    [_oldFieldsMap:protected] => Array
        (
            [payment_authorization_expiration] => payment_auth_expiration
            [forced_do_shipment_with_invoice] => forced_shipment_with_invoice
            [base_shipping_hidden_tax_amount] => base_shipping_hidden_tax_amnt
        )

    [_syncFieldsMap:protected] => Array
        (
            [payment_authorization_expiration] => payment_auth_expiration
            [forced_do_shipment_with_invoice] => forced_shipment_with_invoice
            [base_shipping_hidden_tax_amount] => base_shipping_hidden_tax_amnt
            [payment_auth_expiration] => payment_authorization_expiration
            [forced_shipment_with_invoice] => forced_do_shipment_with_invoice
            [base_shipping_hidden_tax_amnt] => base_shipping_hidden_tax_amount
        )

)
                

We are using magento 1.9. In that

How to get ordered product count not order qty of product. I want to how many product is there in that order?

added 2227 characters in body
Source Link
Magento 2
  • 3.8k
  • 7
  • 55
  • 107
Loading
Source Link
Magento 2
  • 3.8k
  • 7
  • 55
  • 107
Loading