Skip to main content

Posts

Showing posts from April, 2020

Magento usefull codes

Get order items inside the order $objectManager = \Magento\Framework\App\ObjectManager::getInstance();         $order = $objectManager->create( 'Magento\Sales\Model\Order' )->load($block->getRequest()->getParam( "order_id" ));         $easyParcelData[ 'shipping_address' ] = array(              'id'             => $order->getIncrementId(),              'status'         => $order->getStatus(),              'name'           => $order->getCustomerName(),       ...