• Hello,

    I am using Woo-commerce for an E-Commerce site. All was going right. But now i am facing a serious problem with product url. When someone click on product thumbnail from product list page he/she is redirecting to wrong single product page. This problem is not for all products. But mos of the products are behaving like this.

    I searched the solution on google for this, but I didn’t found anything.

    Can you please help me on this. I think this problem is running just after the new update of Woo-Commerce. Below is my E-Commerce site link.

    https://www.pet.com.bd/cat-food/

    Thanks.

    https://www.ads-software.com/plugins/woocommerce/

Viewing 15 replies - 1 through 15 (of 18 total)
  • Thread Starter Nayeem-Ul-Islam Nipun

    (@nayeem-ul-islam-nipun)

    Below is the one link which is redirecting to another product link.
    https://www.pet.com.bd/shop/friskies-kitten-chicken-fish-400g

    Reset permalinks: go to Admin page > Settings > Permalinks and click “Save changes” even though there are none.

    Try using phpMyAdmin to have a look in the post_meta table for any relevant _wp_old_slug values and delete them.

    I am having exact same issue, updated permalinks did not work. Hoping for solution fast!

    @kabney
    Did you look for _wp_old_slug values?

    yes, I did not see anything like that. Any other suggestions?

    Sorry to highjack this post, will start another one if needed. I have attached a screen shot. is this where it would show up?
    https://imgur.com/w4A6Oit

    Pick the wp_postmeta table, then do a search on meta_key. This is the screen you are looking for.

    Its worked for others but may not be your solution.

    ok there are 27662 total. Just delete all of them? Sorry, not a lot of experience in the php my admin. We have 33k products that’s why so many.

    is there a way to do this in bulk? I have used something before to update the tax status as well as a bulk delete of all products. Hopefully this works, that would be fantastic. Thanks for the info, I really appreciate it.

    Their purpose is so that if a user has an old browser bookmark, or if there is an old link somewhere, WP can redirect them to the new product. Otherwise the user would get a 404 page-not-found.

    It would be best if you could just delete the entries that are wrong.

    If there are too many, or you are not concerned about 404s, you can delete them all with this sql:

    DELETE FROM (back-tick)wp_postmeta(back-tick) WHERE (back-tick)meta_key(back-tick) = '_wp_old_slug'

    Replace (back-tick) with an actual back tick character.

    You can run sql in phpMyAdmin.

    Be aware that sql is a very sharp tool. Best to backup your database before doing this.

    Mariette

    (@mariette-jackson)

    Hello

    I have just discovered I have exactly the same problem. Was so relieved to find your thread and realise it wasn’t just me!

    I have gone to the database and deleted the meta_value, which worked, but I was wondering if I should actually be deleting the whole row of the table?

    thanks
    Mariette

    I would delete the whole row. A key without a value isn’t any use. But if you don’t get an error then that’s the objective.

    Mariette

    (@mariette-jackson)

    Thanks Lorro
    Do you have any idea why this has just started happening?

    Sorry, no. You’ll see the odd case on the forum and elsewhere but its not a general problem.

    Im not so sure this ain’t a general problem. Im seeing it popping up on several of my sites again and again.

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Product url redirect to wrong product links from product list’ is closed to new replies.