In this article, we are going to discuss how to get Magento 2 current product details for example product id, product name, and many other details that are displayed on the product page. As we know that Magento is built with many features in that case it also provides a feature in which the registry is included for storing data. Therefore to get Magento 2 current product details to implement the below steps.

Name:  How-to-Get-Current-Product-in-Magento-2-1-950x500.png
Views: 12
Size:  76.9 KB

Steps to get Current Product in Magento2:

Step 1: Create one block file on our custom extension

add Blockname.php in following path


For More Details:

View more threads in the same category: