To support our customers during COVID-19 pandemic, we had introduced many
offers and discounts
to help your ecommerce businesses. Learn more

Magento 2 how to get store information of order

Magento 2 how to get store information of order

$store_view_name = $_order->getStore()->getName(); // Store view name of order.
$store_name = $_order->getStore()->getGroup()->getName() // Store name of order.
$store_code = $_order->getStore()->getCode(); // Store code of order.
$web_site_name = $_order->getStore()->getWebsite()->getName(); // Website name of order.

May 17, 2018
Did you like this post?
0
0