add category name into product's url

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
akropivko
Posts: 36
Joined: 20 Jan 2021, 12:49

add category name into product's url

Post by akropivko » 16 Feb 2021, 18:39

Hi!
Could you give me an idea how to add product's category name into the default product page URL?
I'd like to have http://127.0.0.1:8000/category_name/product_name/1
instead of
http://127.0.0.1:8000/shop/product_name/1

User avatar
aimeos
Administrator
Posts: 7881
Joined: 01 Jan 1970, 00:00

Re: add category name into product's url

Post by aimeos » 18 Feb 2021, 07:28

That's a bit difficult because you have to adapt the Laravel routing for that and add the category name in each URL as parameter. You also have to think about what's the category name if the product is assigned to several categories.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply