Search This Blog

Magento 2 get customer order details from order id

Magento 2 script to get the order details form the order id , how to get the order increment number ,

customer details from the order number , customer first name , last name, middle name , order state ,

order status , no of quantity purchased , coupon code  details

       $orderId = "1";

       $orderDetailsArray = $objectManager->create('Magento\Sales\Model\Order')->load($orderId);

      echo $orderDataArray->getData('entity_id'); // get order entity id

# get state of the order
echo $orderDataArray->getData('state');

# get status of the order
echo $orderDataArray->getData('status');

# get coupon_code of the order
echo $orderDataArray->getData('coupon_code');

# get shipping_description of the order
echo $orderDataArray->getData('shipping_description');

# check if  virtual product in the order
echo $orderDataArray->getData('is_virtual');

# get store_id of the orderecho 
echo $orderDataArray->getData('store_id');

# get customer_id of the order
echo $orderDataArray->getData('customer_id');

# get base_discount_amount of the order
echo $orderDataArray->getData('base_discount_amount');

# get base_discount_canceled of the order
echo $orderDataArray->getData('base_discount_canceled');

# get base_discount_invoiced of the order
echo $orderDataArray->getData('base_discount_invoiced');

# get  base_discount_refunded of the order
echo $orderDataArray->getData('base_discount_refunded');

# get base_grand_total of the order
echo $orderDataArray->getData('base_grand_total');

# get base_shipping_amount of the order
echo $orderDataArray->getData('base_shipping_amount');

# get base_shipping_canceled of the order
echo $orderDataArray->getData('base_shipping_canceled');

# get base_shipping_invoiced of the order
echo $orderDataArray->getData('base_shipping_invoiced');

# get base_shipping_refunded of the order
echo $orderDataArray->getData('base_shipping_refunded');

# get discount_amount  of the order
echo $orderDataArray->getData('discount_amount');

# get grand_total of the order
echo $orderDataArray->getData('grand_total');

# get shipping_amount of the order
echo $orderDataArray->getData('shipping_amount');

# get total_qty_ordered of the order
echo $orderDataArray->getData('total_qty_ordered');

# get customer_email of the order
echo $orderDataArray->getData('customer_email');

# get customer_firstname of the order
echo $orderDataArray->getData('customer_firstname');

# get customer_lastname of the order
echo $orderDataArray->getData('customer_lastname');

# get created_at of the order
echo $orderDataArray->getData('created_at');

# get coupon_rule_name of the order
echo $orderDataArray->getData('coupon_rule_name');

# get total_item_count of the order
echo $orderDataArray->getData('total_item_count');

PNR Status on WhatsApp : How to check PNR status on Whatsapp

Great news for frequent travelers who are using whats app you can check PNR Status on WhatsApp
 Now if you have a whats app account and a internet connection pack you can check the status of

your train , i.e., pnr status of the ticket ,

Whether your ticket is in RAC, WL, PQWL, GNWL,RLGN CONF etc., . As whats-app is available

with almost all the users and has become a part of our daily life to communicate with friends, family ,

office work .With this we can now check PNR Status on WhatsApp 

It has become so much part of our life we are sharing our status of happiness , joyful ,

missing others , or DP picture  also called as Display Photo status. We are using whatsapp for calls

for international numbers which is connecting via internet and is easily accessible. Whats app has

now this feature with MakeMyTrip travel based  application to display the IRCTC Indian Railway PNR

train status or live train status on your smartphone.

Steps to check PNR Status on WhatsApp

Here are the simple steps how to check Indian Railways train timings, PNR status by whatsapp

Step 1 : Add the following whats app Number to your contact  7349389104.

Step 2 : Message to the following number on Whatsapp by pinging the following number.


Step 3 : Wait for the response from the server. Make sure you are connected to the internet. You will see the following response

Ganesh Chaturthi Whats app DP pictures , wishes and greeting to share on Twitter , Facebook

Ganesh Chaturthi is a festival where we celebrate together in public by using pendal  , placing the Lord Ganpati and decorating with flowers,  light,  fruits and offering prasadam to devotees.  In this year people are using idols made up of clay or mud instead of plaster of Paris, when we insert the idol in water it will become eco friendly and nature gets benifit. Here we have some images of Ganesh which can be used in WhatsApp DP status , also we have added a picture of Gouri celebration  , this festival is before Ganesh Chaturthi , wish you a happy festive season to you and your family 

20 Happy Status and Quotes For Whatsapp

Happy whats app status  list below which we can upload in any of the social media website such as
facebook, google, whatsapp etc , this you can use in Whatsapp status or whats app quote . Be happy Spread Happiness . All the happiness quotes , feeling happy quotes or share the happy message with your loved ones in

  • 😊😊😊😍😍😍😍😍😍Be Happy, Keep others Happy😊😊😊😍😍😍😍😍😍

  • My morning does is Happiness😊😊😊😍😍😍😍😍😍

  • 😊😊😊😍😍😍😍😍😍Feeling Happyyyyyyyyyyyyyyyyyyy

  • Let the sun shine upon you andπŸ˜‡πŸ˜‡πŸ˜‡πŸ˜‡πŸ˜‡ happines be brighter then sun

  • Clouds of Happiness bursting upon you

  • 😊😊😊😊Life will always teach new lessons

  • Learn from the past and implement😊😊😊😊 in present to be happy in future😊😊😊😊

  • 😊😊😊😊Let the past behind , work for present be happy tomorrow😊😊😊😊

  • πŸ˜‡πŸ˜‡πŸ˜‡πŸ˜‡πŸ˜‡Happy Lived Ever AfterπŸ˜‡πŸ˜‡πŸ˜‡πŸ˜‡πŸ˜‡

  • Living Life Happily

  • Finding the well of happinessπŸ˜‡πŸ˜‡πŸ˜‡πŸ˜‡

  • 😊😊😊😊Keep on digging, you will reach your goal😊😊😊😊

  • 😊😊😊😊Never give up, after dark there is always light😊😊😊😊

  • Trust yourself, keep moving forward and you will meet happinessπŸ˜‡πŸ˜‡πŸ˜‡πŸ˜‡πŸ˜‡

  • Right Lesson is thought by anyone, be good to all😊😊😊😊

  • πŸ˜‡πŸ˜‡πŸ˜‡πŸ˜‡πŸ˜‡Enemy can become your best friend

  • I am always Happy πŸ˜‡πŸ˜‡πŸ˜‡πŸ˜‡

  • 😊😊😊😊Happy man is a healthy man 

  • Smile is the best answer for all questions😊😊😊😊

  • Feeling exited and happy πŸ˜ŠπŸ˜‡


Top 12 Ganesh Chaturthi Whats app status message , wishes and greeting to share on Twitter , Facebook Whats-app

😍😍😍😍😍😍Happy Ganesh Chaturthi to You and your family 😍😍😍😍😍😍

😘😘😘😘😘😘Wishing a joyful Ganesh Chaturthi😘😘😘😘

πŸ˜‡πŸ˜‡πŸ˜‡πŸ˜‡πŸ˜‡πŸ˜‡May the God of wisdow shower all the blessing upon youπŸ˜‡πŸ˜‡πŸ˜‡πŸ˜‡πŸ˜‡πŸ˜‡

πŸ˜ƒπŸ˜ƒπŸ˜ƒπŸ˜ƒπŸ˜ƒπŸ˜ƒLet this Ganesh Chaturthi make all your wishes   come trueπŸ˜ƒπŸ˜ƒπŸ˜ƒπŸ˜ƒπŸ˜ƒπŸ˜ƒ

🎈🎈🎈🎈🎈🎈Happy Festival Let this festival bring you happiness and let the blessing always be upon you🎈🎈🎈🎈🎈

πŸŽ†πŸŽ†πŸŽ†πŸŽ†πŸŽ†May the Lord Ganapathi keep you protected , Happy Ganesh Chatruthi :)πŸŽ†πŸŽ†πŸŽ†πŸŽ†πŸŽ†

πŸŽ‰πŸŽ‰πŸŽ‰πŸŽ‰πŸŽ‰Wishes from me to you and your family on this auscpiocious occasion of Ganesh ChaturthiπŸŽ‰πŸŽ‰πŸŽ‰πŸŽ‰πŸŽ‰

Wishing you Happy Ganesh Chaturthi will loaded wealth and health🎯🎯🎯🎯🎯
Life be as sweet as Modak
Blessing always be upon you and your loved one's
Always be successful in your workπŸ†πŸ†πŸ†πŸ†πŸ†πŸ†
Happy Chavathi from me and my family

Let the Lord Ganesha give you the strenght to overcome obstacle easily
May the God provide you his wisdom for wealthπŸ’’πŸ’’πŸ’’πŸ’’πŸ’’πŸ’’
May the Lord Ganesha provide you strong healthπŸƒπŸƒπŸƒπŸƒπŸƒπŸƒ
Wishing you a happy chavathi

On this Chavathi Festival may all your whishes come trueπŸ†πŸ†πŸ†πŸ†πŸ†πŸ†
Let the mountain of wealth shower in your pocket
Let the sun rays of happiness  shine your life brightπŸŽ‡πŸŽ‡πŸŽ‡πŸŽ‡πŸŽ‡πŸŽ‡πŸŽ‡
Happy Ganesh Chatruthi

Ondu Earadu Muru Nalaku🌝🌝🌝🌝🌝🌝
Ganapathi Papa Morgaya
Fudacha varsahi Loakr yaa🌞🌞🌞🌞🌞🌞

Ed Do Teen Chaar🌈🌈🌈🌈🌈🌈
Ganapathi Papaa Morgaya
Ed Do Teen Chaar
Ganapathi ki jay jay kaarπŸŒ„πŸŒ„πŸŒ„πŸŒ„πŸŒ„πŸŒ„

Introduction To Python Panda

What is Python Panda

Python Panda is a high perfomrance BSD license library

Python Panda is a open source

Wes McKinney started to develop Python Panda in 2008

How to install Python Panda

conda install pandas

Some of the featre of Python Panda are 

  •  Python Panda  is providing high-performance

  •  Python Panda  is easy-to-use data structures and data analysis tools for the Python programming language

  •  Python Panda  is Highly optimized for performance

  •  Python Panda  is  merging and joining of data sets

  •  Python Panda  is transforming data with a powerful group by engine 

  •  Python Panda  is  having high performance

  •  Python Panda  can split-apply-combine operations on data sets

  •  In Python Panda    Columns can be inserted and deleted from data structures for size mutability

  •  Python Panda  is  used in Finance, Economics, Advertising,Statistics,  Web Analytics,Neuroscience,

  •  Python Panda  is  Intelligent data alignment and integrated handling of missing data

  •  Python Panda  is  easily manipulate messy data into an orderly form

  •  Python Panda  is  efficient DataFrame object for data manipulation with integrated indexing

  •  Python Panda  is Intelligent label-based slicing, fancy indexing, and subsetting of large data sets;

Happy Janmashtami

Happy Janmashtami

Solution for Local Storage clear in chrome browser, HTML5 javascript storage types

There are two types of storage in HTML 5 web storage

  • window.sessionStorage

  • window.localStorage 

In local storage when a browser is closed it will not be erased or removed or deleted , when you

come after some days the data will be present here , it means data here is stored with no times, i.e.,

data will be present unit you remove it manually, there will be no expiration date for the data store in

the local storage .5mb data can be stored in the local storage . The storage concept are present in the browser for example a browser means chrome browser from google, mozilla firefox, safari ,  internet explorer also called as IE , we

Session storage is something which is similar to local storage , it also can store data upto 5mb , the

only difference here is when a session is closed the data is deleted. It is related to the session hence it

is called as session storage

How to  delete the storage from the web  browser chrome ?

 To delete the storage from web browser , we will need to press F12

and a console of the browser open's up  as below

Click on Applications > Local Storage and  you will be able to see the storage with browser url.

There is also clear storage which can be used to clear the storage

count(): Parameter must be an array or an object that implements Countable

The following error is coming , if you guys have any solution  please let me know , i have recently updated from php 5.6 to 7,2 in the higher version of php 7.2 the below error is coming 

count(): Parameter must be an array or an object that implements Countable

 Should we upgraded to  other php version, please suggest

Magento 2 How to get order details from Order Id script

To get the order details from magento 2 we will require the order id , first we will place the order as a customer in the installation we have , then we will login in to the admin panel or dashboard and navigate to Sales > Orders and click on the order details once we  have clicked on it we will see the order id in the url , note down the order id and replace the order id by the code you have

$orderId = "1";
$orderDetailsArray = $objectManager->create('Magento\Sales\Model\Order')->load($orderId);

by printing this you will get the output as below as i am using command prompt for execution you can see the result here

Magento 2 admin menu not working when we try to click and images not appearing

In windows 10 enviroment when we install magento , the admin panel linls of magento 2 will be broken or the links present in magento2 admin panel will not be clickable and all the images will not appear as below, the following image shows  as we can see dashbaoard , sales etc are not working and image is not appearing

To fix the above screen , its very simple in windows machine , try to run the following command

php bin/magento setup:static-content:deploy

from windows command prompt,

while running the above command you might get the following error
 'php' is not recognized as an internal or external command, operable program or batch file.
to solve the above error we have created a separate post , please click on the following link to fix the php error

after fixing the above solution, we can run the command and wait for the completion of the command.
Once the command is executed , try to reload the admin page or try to login and logout from the admin panel and login once again.As soon as you login to m2 admin panel or dashboard

all the links and menu will be fixed an you can navigate to any pages

magento 2 'php' is not recognized as an internal or external command, operable program or batch file.

When running the following command in magento 2 "php bin/magento setup:static-content:deploy"

Magento 2 while running cli commands on command prompt we sometimes getting the following error in windows 10 machine or windows xp as "'php' is not recognized as an internal or external command, operable program or batch file."

To solve this error we will need to add the php path to the system enviroment variable and we will see how to add the following

In windows 10
 Go To

  Start Menu  > Search for  "Advanced system setting"

Click on " Enviroment Variable"

Add the following value in the path  "C:\xampp\php"

now we will close the command prompt and start it again , and type php , it will begin to work

It will begin to work

Magento 2 code how to redirect to previous page url in Magento2

Magento 2  code how to redirect to previous page url in Magento2

In magento 2 when a customer login he will be redirected to the account page , for the customer to reutn to the previous page from where he has logged in we will need to do the changes in the code for the customer to redirect to the previous page  magento 2 redirect to login page or magento 2 redirect after login  or magento 2 redirect to homepage or magento 2 redirect to previous page after login

namespace Free\Samaya\Controller\Time;

class Index extends \Magento\Framework\App\Action\Action

  public function __construct( 
        PageFactory $resultPageFactory
    ) { 
        $this->resultPageFactory = $resultPageFactory;

public function execute()
$urlToRedirect = $this->resultRedirectFactory->create();
$backUrl = $this->getBackUrl($this->_redirect->getRefererUrl());
                return $urlToRedirect;