Jump to content

Retrieve product URL from ID


jonsecu

Recommended Posts

Hi all... I am developing a module and I require the product's URL, all I have is the product's ID. Is there some useful method that may do the job. I have product URLs with this form:

 

http://mydomain.com/main/category/23-product-title.html

 

I know one way may be to compose manually the URL by retrieving the top domain, category and the title. But that leads me again to the problem of retrieving all this info from the ID. Is there any useful method that allows me to do this work?

 

Thank you very much.

Edited by jonsecu (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...