Jump to content

Getting product page moved to new link prestashop 1.7


beginner1

Recommended Posts

Hi, I am trying to get the link of the product pages in prestashop. After going through the product class I found the function getLink() and using that I get a link but when I try to go to that link I get an error that page moved to a new link. How to solve this?

 

$product = new Product("any example product id lets say 4");
$link = $product->getLink();

Edited by beginner1 (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...