PrestaShop get current product information
Today we talk about how PrestaShop get current product information. You can use this code in hook related to the product page or controller and any other class. In this example, it will be shown the product name and product link, and other information. So let’s start with our example.
$productData = new Product($productId); // get product object with id
$name = $productData->getProductName(); // get product name
$link = $productData->getLink(); // get product link