problems with pretty urls - categories with the same name

We are trying to evaluate the suitability of the "Pretty Clean URLs" module in our case. We are developing an eshop for a local distributor of sailing products and we have subcategories that that have the same name under different parent categories. Examples: 1) 2) 
I just want to have the same category name in the url, how to proceed?

friendly urls clean pretty clear prestashop without id

PrestaShop expert answer related to the same friendly urls of categories in PrestaShop

During configuration of "schema of urls" (see docs: schema of urls and pretty clean urls module) you can specify the schema of urls to category pages.
By default category page has structure like: 
Module "pretty clean urls" is ready to include also parent categories to url like:
And this urls structure is suggested to use for pages that have many categories with the same "friendly url".

So, in your case there are two possible solutions:

First: Include parent category to url
- In this case go to preferences > seo & urls (in prestashop 1.6) or to preferences > traffic (prestashop 1.7)
- go to "schema of urls" section and modify schema of url for category from:  {rewrite}/ to:  {parent_categories:/}{rewrite}/
- in effect module will create unique urls and category pages will work even with the same friendly url value

Second: Alter the 'friendly url' value
each category in prestashop has own name and own 'friendly url'. Friendly url field is visible in the url for example 251-optimist or 14-optimist 
- go to category page that has the same 'friendly url' as other category has
- modify the value of 'friendly url', make it unique
- in effect category will have name "optimist" but will have different 'friendly url' in address bar

In my opinion first solution is better because you can use categories with both the same name and friendly url.

Share on Google Plus


This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment


Post a Comment