As you know there are so many alternate methods to get product details by given id in Magento 1.x. This code snippet will be very useful at many custom development with Magento.

Lets check the code used in Magento 1.x.

List of some methods to get various product details like Short description, Name, Price and Product URL etc.

Download Free New Order Notification Extension

Now lets see how to get product details by id in Magento 2.x. You can load the product by product id simply as below

Enjoy cool stuff! Enjoy Magento 2!! Enjoy Magewallet!!!

Mahendra Paladiya
Mahendra is a Web Developer whose passions includes web development, technical blog writing, and database management. His passion for web development pushed him into learning how to handle different platforms like Core PHP, Magento, Prestashop, WordPress, CodeIgniter, CakePHP and Oracle.