I'm writing a custom indexer and I need to retrieve the product URL for different stores.
$product->setStoreId(2)->getProductUrl();
still returns the URL with the admin store (backoffice) in it.
Do you have an idea how I can retrieve the store specific product URL?
Best Answer
Try it like this: