Jump to content
abolfazl-m

Remove ID product in URL link 1.6

Recommended Posts

Hello ,
i have a question,,
i want to remove all id product in url friendly ,,
in prestashop 1.6
please help me

  • Like 2

Share this post


Link to post
Share on other sites

Hi

 

in setting==>SEO&URL

 

in the last section (botton) in 1line you have 

{category:/}{id}-{rewrite}{-:ean13}.html

change to 

{category:/}{rewrite}{-:ean13}.html

 

@++

 

loulou66

  • Like 1

Share this post


Link to post
Share on other sites

Hi

 

in setting==>SEO&URL

 

in the last section (botton) in 1line you have 

{category:/}{id}-{rewrite}{-:ean13}.html

change to 

{category:/}{rewrite}{-:ean13}.html

 

@++

 

loulou66

error

Keyword "{id}" required for route "product_rule" (rule: "{category:/}{rewrite}{-:ean13}.html")
  • Like 1

Share this post


Link to post
Share on other sites

You have to use a third party module for this, or override a number of classes on your own (mainly routes, but I never dove into it so I can't tell if there are other ones concerned)  ;)

Share this post


Link to post
Share on other sites

All modules that suppose to remove id from url seems the same. All of them require to use .html at the end of produt url & all of them require to use a / at the end of category page.

 

Do you know any module that is fully functional to manage my SEF urls and pass above restrictions?

Share this post


Link to post
Share on other sites

unfortunately not, the only thing I can think about is modifying the routes class and htaccess to achieve a custom result :(

Share this post


Link to post
Share on other sites

unfortunately not, the only thing I can think about is modifying the routes class and htaccess to achieve a custom result :(

 

I see, at least this way i ll stop checking around. For the recond, i believe thats a shame for a so popular ecommerse cart. Full functional SEF management is a must have nowadays.

Share this post


Link to post
Share on other sites

I download the clean url module. It help me remove id from all page, but main category and sub category page is error. It show This page does not exist as the first attach file. May i know what you setting you put on the SEO & URls page? 

post-852368-0-13355600-1412934178_thumb.jpg

Share this post


Link to post
Share on other sites

What happens when you use URL rewrite, does it still display the category ID?

Share this post


Link to post
Share on other sites

After install clean url module the id on url was disappear, but main category and sub category cannot see. I buy advance url only it solve my problem.

  • Like 1

Share this post


Link to post
Share on other sites

After install clean url module the id on url was disappear, but main category and sub category cannot see. I buy advance url only it solve my problem.

 

 

OK, that is good to know.

Share this post


Link to post
Share on other sites

In 2015 prestashop still have id in urls ... impressive ! ^_^

It's also a shame that there are at least 10 modules that clean the urls and they all have the same price  :blink:

  • Like 1

Share this post


Link to post
Share on other sites

I guess it's because the addons store has a fixed minimum price :)

  • Like 1

Share this post


Link to post
Share on other sites

you can not change the core of ps for us to do it manually without buying anything ?

Share this post


Link to post
Share on other sites

you can not change the core of ps for us to do it manually without buying anything ?

 

Me? no :D I'm not in the Presta Team :D

  • Like 2

Share this post


Link to post
Share on other sites

Hi This is Vineet

My advise is that you first check whether the server supports the url rewriting or not ....if it doesnot then all the url modules or methods will only create more issues of new nature for each one of you.

Share this post


Link to post
Share on other sites

I'm working on a url rewriting module myself, I think i'll publish it soon enough at a reasonable price (also together with the SEO booster in a new version)

  • Like 1

Share this post


Link to post
Share on other sites

They seem to leave out obviously important features that you would expect to be there by default, and should be.

Like for example, I can see an option to set minimum product order, yet there's no option to set maximum product order.

 

That just doesn't make sense to me, unless they left it out so that developers could create a module to do the job.

Edited by sounds (see edit history)

Share this post


Link to post
Share on other sites

They seem to leave out obviously important features that you would expect to be there by default, and should be.

Like for example, I can see an option to set minimum product order, yet there's no option to set maximum product order.

 

That just doesn't make sense to me, unless they left it out so that developers could create a module to do the job.

you've got right, it was necessary to develop such addon, and feature sounds like it should be in PS by default. sadly speaking - it isnt.

Share this post


Link to post
Share on other sites

Hey guys! 

 

Found the module that is free, removes all the IDs and even .html from product pages: 

https://github.com/ZiZuu-store/zzCleanURLs

 

It seems that this one is very similar to https://github.com/wayann/PrestaShop-modules-CleanURLs as both of these were forked from https://github.com/Lebioda/PrestaShop-modules-CleanURLs. I chose the first one mentioned only because it has the most recent commits.

 

Finally, a nice www.myshop.com/category/product link and free of charge! Spread the word!

  • Like 5

Share this post


Link to post
Share on other sites

Hey guys! 

 

Found the module that is free, removes all the IDs and even .html from product pages: 

https://github.com/ZiZuu-store/zzCleanURLs

 

It seems that this one is very similar to https://github.com/wayann/PrestaShop-modules-CleanURLs as both of these were forked from https://github.com/Lebioda/PrestaShop-modules-CleanURLs. I chose the first one mentioned only because it has the most recent commits.

 

Finally, a nice www.myshop.com/category/product link and free of charge! Spread the word!

 

I've tried to install zzCleanURLs but I'm getting errors when set settings as the author show in the module page: Keyword "{id}" required for route "product_rule" (rule: "{category:/}{rewrite}")

 
I'm using PS 1.6.1.2
 
Someone can help me removing IDs from url?
 
Thanks

Share this post


Link to post
Share on other sites

and what happens when you need to rename the product?  By not having the ID in the URL, you just killed your page ranking, or you just created a rewrite maintenance nightmare..

 

ask your self this... why do you think the ID needs to be removed from the URL?

  • Like 1

Share this post


Link to post
Share on other sites
Hi 

 

 it's work perfect with prestashop 1.6.1.4.

 

You must:

1. install the  module

2. got to Seo&Url,  delete {id} and remove Friendly url (ignore errors) and Save.

3.  Go to Perfomance and Clear Cache

4. active Friendly url

 

Done!

Sorry for my english...   :P  :P

  • Like 1

Share this post


Link to post
Share on other sites

and what happens when you need to rename the product?  By not having the ID in the URL, you just killed your page ranking, or you just created a rewrite maintenance nightmare..

 

ask your self this... why do you think the ID needs to be removed from the URL?

 

We're coming from OpenCart that made this easy - all our products were on a domain.com/category/partnumber path. Our part number used here is our company's unique part number for each product, so we want to keep the paths the same.

 

The problem coming to PS is that our part numbers have leading 0s (PS removes them in the ID field), and some also have letters in them (PS also removes them in the ID). So because ID is forced in the URL this just creates a mess for us.

 

The best solution in our case would be the ability to use the "reference number" in the URL instead of ID, so it wouldn't break our part numbering system.

 

As it is I have to investigate 3rd party modifications that I hope won't cause other problems.

  • Like 1

Share this post


Link to post
Share on other sites

We're coming from OpenCart that made this easy - all our products were on a domain.com/category/partnumber path. Our part number used here is our company's unique part number for each product, so we want to keep the paths the same.

 

The problem coming to PS is that our part numbers have leading 0s (PS removes them in the ID field), and some also have letters in them (PS also removes them in the ID). So because ID is forced in the URL this just creates a mess for us.

 

The best solution in our case would be the ability to use the "reference number" in the URL instead of ID, so it wouldn't break our part numbering system.

 

As it is I have to investigate 3rd party modifications that I hope won't cause other problems.

Finally, a good justification for removing the ID's from the URL in Prestashop.  Thanks for sharing.  I can definitely understand why you would need this, as you are coming from a different platform that used different URL patterns.

Share this post


Link to post
Share on other sites

not working for me in prestashop 1.6.1.4.

 

I follow all steps, clean cache, disable/enable friendly url, after page refresh all {id} keywords are back.

 

any ideeas?

Share this post


Link to post
Share on other sites

We're coming from OpenCart that made this easy - all our products were on a domain.com/category/partnumber path. Our part number used here is our company's unique part number for each product, so we want to keep the paths the same.

 

The problem coming to PS is that our part numbers have leading 0s (PS removes them in the ID field), and some also have letters in them (PS also removes them in the ID). So because ID is forced in the URL this just creates a mess for us.

 

The best solution in our case would be the ability to use the "reference number" in the URL instead of ID, so it wouldn't break our part numbering system.

 

As it is I have to investigate 3rd party modifications that I hope won't cause other problems.

Why you dont put a letter or a number in front of your part Number. the rest of the number can be untouched. So you don t need to make any changes.

regards

manfred

Share this post


Link to post
Share on other sites

not working for me in prestashop 1.6.1.4.

 

I follow all steps, clean cache, disable/enable friendly url, after page refresh all {id} keywords are back.

 

any ideeas?

I assume you did all this?

----------------

INSTALLATION

Install the module from the Backoffice (administration panel), download the release ZIP file (zzcleanurls.zip) as it already contains the right folder name (zzcleanurls, not zzcleanurls-version_x.y.z !)

In the modules tab, click on add a new module. Click on Browse to open the dialogue box letting you search your computer, select the ZIP file then validate the dialogue box. Finally click on Upload this module.

Make sure your SEO and URL settings are as follows:

This is MANDATORY

  • products: {category:/}{rewrite} (you can add .html at the end)
  • categories: {categories:/}{rewrite}/
  • manufacturers: manufactures/{rewrite}
  • suppliers: suppliers/{rewrite}
  • CMS page: info/{rewrite} (you can add .html at the end)
  • CMS category: info/{rewrite}/
  • modules: modules/{module}{/:controller}

You can replace words such as "info", "suppliers", etc with whatever you want, given that it does not conflicts with a category name

Remember to

  • clear the browser cache
  • clear PS cache (under smarty -> cache and smarty -> compile)

---------------------

One other thing that helped me when I got error message is to throw away (on the server in the cache-folder)  the complete folder  "smarty" AND the file "class_index.php"

Then maybe turn off friendly URL (in SEO&URL's) save and then turn it ON again.

 

Maybe that helps you too.

Share this post


Link to post
Share on other sites

zzCleanURLs worked well for us, it allowed us to keep our old domain.com/category/partnumber path. Just a bit worried about it breaking in future platform updates. Could get messy.

 

I hope PS becomes more flexible with this in the future. If IDs can't have leading 0s or letters I'd like it to allow reference numbers in their place in URLs.

 

Why you dont put a letter or a number in front of your part Number. the rest of the number can be untouched. So you don t need to make any changes.

regards

manfred

We considered something like that, but it breaks our old URLs, could lead to confusion, and letters can't be in the IDs which we need.

Share this post


Link to post
Share on other sites

Yes, I follow all steps, but after page refresh all ID are back in url

 

conform with this note id* is required

 

There are several available keywords for each route listed below; note that keywords with * are required!

 

I use PS 1.6.1.4

Share this post


Link to post
Share on other sites

After long and hard work tying over and over again with a payed module (advancedURL) I could not get it to work without the .html (in Prestashop 1.6.1.4).

 

And yes! praize for the free module mentioned above by Bradas, it worked immediatly:

Prestashop module "ZiZuu Clean URLs"

I guess the best things come for free.

I am unable to install the ZiZuu Clean URLs module. I downloaded the zip and installed it thought the backend, but when its finished uploading it says "The module was successfully downloaded."   but it doesnt populate in the modules list. I even tried uploading it via FTP and it still wont populate. 

 

Could anyone assist me with this?

Share this post


Link to post
Share on other sites

HI

 

with the zip file of Github you must

1°) download the file
2°) uncompress it on your computer

3°) open the folder uncopressed you find one folder with the same name

4°) rename this folder without -master

5°) upload on you ftp with fillezilla in module folder of your PS

6°) you can now see the module in module page of your BO

 

@++

 

Loulou66

Share this post


Link to post
Share on other sites

HI

 

with the zip file of Github you must

1°) download the file

2°) uncompress it on your computer

3°) open the folder uncopressed you find one folder with the same name

4°) rename this folder without -master

5°) upload on you ftp with fillezilla in module folder of your PS

6°) you can now see the module in module page of your BO

 

@++

 

Loulou66

I did this exactly. I even tried renaming the folder, zipping it back up and then uploading it in the back office. Still not showing up. Anything other ideas?

Share this post


Link to post
Share on other sites

Hey guys! 

 

Found the module that is free, removes all the IDs and even .html from product pages: 

https://github.com/ZiZuu-store/zzCleanURLs

 

It seems that this one is very similar to https://github.com/wayann/PrestaShop-modules-CleanURLs as both of these were forked from https://github.com/Lebioda/PrestaShop-modules-CleanURLs. I chose the first one mentioned only because it has the most recent commits.

 

Finally, a nice www.myshop.com/category/product link and free of charge! Spread the word!

 

 

English: It works perfectly in PS version 1.6

Portuguese: Funciona perfeitamente na versão PS 1.6

Espanish: Funciona perfectamente en PS versión 1.6

  • Like 2

Share this post


Link to post
Share on other sites

I did this exactly. I even tried renaming the folder, zipping it back up and then uploading it in the back office. Still not showing up. Anything other ideas?

 

Same problem... Do you have solved it?

Edited by mile058 (see edit history)

Share this post


Link to post
Share on other sites

and what happens when you need to rename the product?  By not having the ID in the URL, you just killed your page ranking, or you just created a rewrite maintenance nightmare..

 

ask your self this... why do you think the ID needs to be removed from the URL?

You might not understand why, but at the same time, all other CMS-es make efforts to avoid displaying IDs and they all succeeded.

The "pretty URL" concept it's been around for quite a while, surprised you are not familiar with it.

How would you kill your page ranking by removing a numerical ID? On the contrary, it's a good SEO move to have clean URLs

Edited by bg17aw (see edit history)

Share this post


Link to post
Share on other sites

Finally, a good justification for removing the ID's from the URL in Prestashop.  Thanks for sharing.  I can definitely understand why you would need this, as you are coming from a different platform that used different URL patterns.

OpenCart it's just another e-commerce CMS. You seem to miss the point, which is getting rid of the IDs in the URLs, in a direct competitor for Prestashop.

You have to wonder, if they can do it and include it in the system, why can't Prestashop do the same thing

Share this post


Link to post
Share on other sites

The only thing I have to wonder is WHY anyone feels the need to remove the ID.  There is no benefit for doing it

 

How would you kill your page ranking by removing a numerical ID?

 

Because when you change this product, which will now have a different URL, you will either lose your page ranking, or you will need to create re-write rules and maintain them.. have fun with that

 

On the contrary, it's a good SEO move to have clean URLs

 

That is opinion, and there is nothing factual about that

Share this post


Link to post
Share on other sites

The only thing I have to wonder is WHY anyone feels the need to remove the ID.  There is no benefit for doing it

 

Because when you change this product, which will now have a different URL, you will either lose your page ranking, or you will need to create re-write rules and maintain them.. have fun with that

 

That is opinion, and there is nothing factual about that

You seem to assume everybody asking for this already has a website, already has products on the site, and those product pages are already promoted everywhere and have high rank.

Most people wonder why their links start with numbers, coming from other CMS-es smart enough not to do that.

I would love to hear more about the problems with re-write rules, if you care to share, but keeping in mind we are starting a new website (or a relatively recently released one).

 

As for SEO impact, you state your own opinions, there is nothing factual about yours either.

But common sense tells us a clean URL is easier to understand for a human, quicker to read etc.

And anything optimized for humans is considered a positive signal for Google, hence SEO impact is there. 

The last two sentences might answer your question about why remove them. One could ask "why keep them" ? Why is it so important for you to have them?

Edited by bg17aw (see edit history)

Share this post


Link to post
Share on other sites

I have an Issue afrer reset my module clean url web page is not getting displayed neither the admin panel..

 

How to fix it ... Urgent help needed..

 image.png

Edited by mbawithfun (see edit history)

Share this post


Link to post
Share on other sites

Everybody with problems in this aerea:

 

Go to advanced parameters; -> performance, scroll down to: debugmode; -> check that the 'slide' "disable all overrides" is set to NO

 

(When you do an automatic upgrade, this switch can be turned to yes)

 

Took me endless time to find this simple thing, thank you Milos (MyPresta)!

Share this post


Link to post
Share on other sites

PS 1.6.1.12

 

Recommended GitHup works fine! Just need to be sure you download right version and need to find it in modules and install it. Its not automatic.

Edited by Zeryk (see edit history)

Share this post


Link to post
Share on other sites

need to check for the duplicates and it looks like no option to have one product assigned to more then 1 category with different URLs :-(

Edited by Zeryk (see edit history)

Share this post


Link to post
Share on other sites

as a developer of pretty clean urls i can suggest to use mine addon that:

- works with prestashop 1.7 and allows to remove attribute id from product url, and remember selected attribute (other modules do not remember selected attribute if you will switch it on product page!)

- works with prestashop 1.7 and allows to use customization fields (other modules do not remember selected attribute when you fill out customization field)

- allows to use duplicated names of categories and products (module analyse the structure of urls and build product / category pages based on url structure - so you can use duplicated names)

Share this post


Link to post
Share on other sites

Or you can use thirtybees which has a very good rewriting system

  • Like 1

Share this post


Link to post
Share on other sites

Magento and Shopify both don't add product ids.

It is really embarrassing that in 2017 we're still adding product ids to the URL. It's ugly and not user friendly.

In my opinion this is currently one of the biggest arguments against Prestashop.

Even Woocommerce has better product urls than this!

Share this post


Link to post
Share on other sites
On 3/26/2018 at 8:41 AM, wutever0 said:

It is really embarrassing that in 2017 we're still adding product ids to the URL. It's ugly and not user friendly.

Most large ecommerce sites do however.

Should amazon, walmart, target etc... all be embarrassed because they add product Ids to their URLs? 

Share this post


Link to post
Share on other sites
On 27/03/2018 at 7:39 PM, bellini13 said:

Most large ecommerce sites do however.

Should amazon, walmart, target etc... all be embarrassed because they add product Ids to their URLs? 

OK. So how exactly bad it is to have ID's in the url? 

Share this post


Link to post
Share on other sites
1 hour ago, Edvinas said:

OK. So how exactly bad it is to have ID's in the url? 

What does this mean? 

Share this post


Link to post
Share on other sites

You can use some 3rd party modules to remove ID from URLs easily, such as Advanced URLs module, clear URLs module or Pretty URLs module, I used this module, that are working fine.

Share this post


Link to post
Share on other sites
On 3/27/2018 at 7:39 PM, bellini13 said:

Most large ecommerce sites do however.

Should amazon, walmart, target etc... all be embarrassed because they add product Ids to their URLs? 

 

In a large eCommerce site where there are literally thousands of products yes that makes sense because there's just too much complexity to bother about pretty pink addresses on top and the general focus is something else entirely.

If I ever need to build a site like that I won't be using PrestaShop anyway.

But when all you have is 34 products it's really ugly to have domain.com/categ1/05-my-product.html. It's so typically PrestaShop.

I also believe that it is a good sign when you are not able to identify a platform just by looking at it. The more generic a site looks the more professional impression that it gives.

 

 

Share this post


Link to post
Share on other sites
37 minutes ago, wutever0 said:

In a large eCommerce site where there are literally thousands of products yes that makes sense because there's just too much complexity to bother about pretty pink addresses on top and the general focus is something else entirely.

being large or small, or having 34 or thousands has no bearing on this.  Prestashop can be used by small, medium or large stores, I have seen them all, and Prestashop includes a solution that works for all.  You can freely choose to modify Prestashop to remove the IDs, that your choice as a merchant.

But to say it is embarrassing, or to say that Prestashop should cater to only "small" merchants like yourself because you only have 34 products is a pretty silly reason

Lastly, for all those arguing that this is impacting your SEO, its not... Search engines do not care that your URLs contain IDs.  If they did, then all of those big companies would not be at the top of the search results.

Share this post


Link to post
Share on other sites

As already told several times before also in other same topics. There is no SEO impact on that. If you are using ID's or not this does not make any difference for SERP's. For Prestashop it is more secure to don't remove that ID's because Prestashop is built-up on this architecture. It needs the ID's. It only works WITH this ID's. The ID's are a how the name induces an identification-no. which is unique for to identify a category, a product, a customer or what else in the specific database table. By removing them you will have the risk, if it is bad removed, to crash completely your shop.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More