WordPress.org

Ready to get started?Download WordPress

Forums

YITH WooCommerce Wishlist
[resolved] Shared link gives 404 error (10 posts)

  1. FolkeW
    Member
    Posted 10 months ago #

    Well title actually says it all. When I (or a customer) tries to share a wishlist via the buttons every thing goes well but the link posted does return a 404 when clicked. The link created looks like this: http://www.playmoparts.nl/wishlist/&user_id=1. The shop is closed at the moment, so testing from outside is difficult. What can be wrong?

    http://wordpress.org/plugins/yith-woocommerce-wishlist/

  2. Trevor Gehman
    Member
    Posted 10 months ago #

    I am also having this problem...

    Does this link work: http://www.playmoparts.nl/wishlist/?user_id=1

  3. FolkeW
    Member
    Posted 10 months ago #

    Nice, that works!
    Now I have to find out where to change it. I Will look into it later this evening.
    Many thanks!

  4. FolkeW
    Member
    Posted 10 months ago #

    Trevor, you can change the & to ? in your share.php (line 15). Its in the template folder of the plugin.

  5. FolkeW
    Member
    Posted 9 months ago #

    Changing the & to ? works fine. Please do it in the template folder to make it update proof.

  6. Quimbly
    Member
    Posted 9 months ago #

    Hi. I'm having the same problem and would also like to know where I can change the code to update this. I don't see a share.php file. Any ideas?

    EDIT: Oh.. THERE it is!

  7. FolkeW
    Member
    Posted 9 months ago #

    The problem only occurs when you change the permalink settings from standard to something else. Am I right? If so, it's a bug. I found out when setting up a second install to test some things.

  8. Quimbly
    Member
    Posted 9 months ago #

    Possibly -- I'm not sure. I've had my permalinks set to "post name" before I installed the plugin, and haven't changed it since.

  9. Quimbly
    Member
    Posted 9 months ago #

    But, in case anyone is wondering...

    In plugins/yith-woocommerce-wishlist/templates/share.php

    ...I changed:

    { echo YITH_WCWL_UI::get_share_links( $yith_wcwl->get_wishlist_url() . '&user_id=' . get_current_user_id() ); }

    to

    { echo YITH_WCWL_UI::get_share_links( $yith_wcwl->get_wishlist_url() . '?user_id=' . get_current_user_id() ); }

    And this resolved the problem.

  10. enollo
    Member
    Posted 9 months ago #

    Here's what I did. Essentially does the same thing but makes sure it works with multiple url args

    { echo YITH_WCWL_UI::get_share_links( add_query_arg( 'user_id', get_current_user_id(), $yith_wcwl->get_wishlist_url() ) ); }

Reply

You must log in to post.

About this Plugin

About this Topic