When I got a product and it's simple without a parent and I call ->getProductUrl() I get a url like this:


And this is giving me:


Meanwhile, a simple product with parent is returning a URL like this, which works:


And If I try to access that url, I will get 404 page not found. Any help with this please?

1 Answer 1


Instead of getProductUrl() I created the whole link by: + getProductPath(). This way the linked worked, also do not forget to change the option so that the product is visible, from "Not visible individually"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.