aneesahmadweb@gmail.com     03040836207

    Get Current product

    $objectManager =  \Magento\Framework\App\ObjectManager::getInstance();
    
    $registry = $objectManager->get('\Magento\Framework\Registry');
    
    $currentProduct = $registry->registry('current_product');
    
     $currentProduct->getId();
    ?>

    About Author

    You may also like

    No Comment

    You can post first response comment.

    Leave A Comment

    Please enter your name. Please enter an valid email address. Please enter a message.