I am looking for code how we can load custom template file for product detail page?
I need to remove default magento2 detail page,
I have tried below code to achieve it,
{{block class="Magento\Framework\View\Element\Template" name="product_file" template="Magento_Catalog::product.phtml"}}
I created new cms page, and from category list page, I am redirecting to this page for each of the products by passing parameter with productId.
In detail page i used below code to get product data.
$proId = $_REQUEST['id'];
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$product = $objectManager->create('Magento\Catalog\Model\Product')->load($proId);
$proSku = $product->getSku();
$product_title = $product->getName();
Is this can be achieved any other simple way?