Jump to content

(Solved) Duplicating a Product, Friendly URL does not update/change.


Recommended Posts

I duplicated a product in Prestashop and changed the name. The friendly URL did not change.

For Example:
-------------------
Original Product Name: Apples and Bananas
Original Product URL http://www.abcstore.com/category-1/20-apples-and-bananas.html

Then I duplicated the original product and changed the name of the new duplicated product from "Apples and Bananas" to "Oranges and Strawberries"
The new product URL should be http://www.abcstore.com/category-1/21-oranges-and-strawberries.html
But no.... instead, it is http://www.abcstore.com/category-1/21-apples-and-bananas.html

In the example above, the product ID successfully changed from "20" to "21", but everything after the product ID did not change.

How do I fix this? Any ideas?

I tried regenerating the htaccess file but that made no difference.

Link to comment
Share on other sites

Hello ,

I am facing exactly the same problem.
I just set up the lateste prestashop.
In the admin when i duplicate product called "lavabo rehausse" , even if i rename the product in the product edition the name "lavabo rehausse" remains in the product list
This has for consequence to give me the same friendly url for all the duplicated products.

Any idea ?

Update :

When i change the langage : the Name of the product in the admin listing change... but the Friendly URL remains the same and contains the name of the original duplicated product...

32731_8JUQZ23GKDMhq1MNAkJk_t

Link to comment
Share on other sites

I don't see any place on the Back Office that you can change that. But I think you can fix them by change at database directly. You have to change the link_rewrite field in ps_product_lang table. You can change them by database admin tool such as PhpMyAdmin.

1. Find your product id in the ps_product table
2. Change link_rewrite in the table ps_product_lang

Hope this help

Link to comment
Share on other sites

I don't think you should delete them, you must keep them, otherwise the SEO friendly URL will not work.
What you need to do is to change them to what you want it to be. For example, you have to change "Apples and Bananas" to "Oranges and Strawberries" for the record with id_product =21

After modifying all record, then try to re-generate .htaccess file, the link URLs will become correct.

Link to comment
Share on other sites

  • 1 month later...
  • 2 years later...
  • 5 years later...

Hello,

I have a problem to duplicate products, so when I click duplicate it says duplicated successful, but not showing the product. I have checked the DB and the product was duplicated, but not showing in the back office.

What is the problem?

Thanks.

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...