Magento 2 How can we get product url with product collection?
$productCollection = $productObj;
Gives from product collection url using loop the collection,
foreach($productCollection as $_product){
echo $_product->getProductUrl();
}
$productCollection = $productObj;
Gives from product collection url using loop the collection,
foreach($productCollection as $_product){
echo $_product->getProductUrl();
}