Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi Felurian

    I’m very glad to know you’re enjoying our plugin! ??

    The view section of the url is optional, and it can be omitted in the free version of the plugin; anyway, it was not designed to let user customize this behaviour, so there isn’t a simple way to do such thing

    If you don’t mind customizing a little the plugin code, you can obtain this result simply searching for

    'wishlist_url' => $this->get_wishlist_url( 'view' . ( isset( $this->last_operation_token ) ? ( '/' . $this->last_operation_token ) : false ) ),

    in the add_to_wishlist_ajax method under wp-content/plugins/yith-woocommerce-wishlist/includes/class.yith-wcwl.php file, and replacing it with the following code

    'wishlist_url' => $this->get_wishlist_url( '' ),

    Let me know if this helps
    Have a nice day ??

    Thread Starter Felurian

    (@felurian)

    It works ! Thank you very much. ??

    Great plugin – I too am having the same issue with the /view – I have tweaked the code as suggested and uploaded but the issue is still there. Any other suggestions? Could you possibly post a cloud link to easily download the modified file for download?

    Plugin is great, but I have the same problem as usnraver.

    Edited php does not react. Still getting 404 from /wishlist/view .

    Thread Starter Felurian

    (@felurian)

    You have to clean your wishlist selection after editing the PHP file. I noticed that when I returned in the product page, i still had the /view/ in the URL of my browse button. I removed my selected products in the wishlist page and i returned on the product page, I push the button and i have the correct URL.

    Maybe you should verify your permalinks configuration…

    Mine (woocommerce) :
    https://www.mwebsite.com/products/categories/my-category/
    https://www.mywebsite.com/products/my-category/my-product/
    https://www.mywebsite.com/my-wishlist/
    https://www.mywebsite.com/products/

    Plugin Author YITHEMES

    (@yithemes)

    Hi guys,

    just a notice about the ‘/view’ endpoint: this is not a bug, and it shouldn’t be removed, unless you have specific needs.

    Indeed, any future updates of the plugin will overwrite your changes, and restore current link structure

    If you get a 404 error on “wishlist/view” url, you can try regenerating your permalink structure; this should solve your problem!

    I just want to point this out, just to be completely clear.

    Have a nice day ??

    Hello,

    this solution works. However, it will be overwritten during the next update.

    Since people already complain about this issue, why don’t you simply remove the adding of “view” in the url?

    Regards,

    Veljko

    I also have the same problem and hope “view” could be removed in next update.

    What YITHEMES said worked for me. Regenerating permalinks got the problem to go away. To do this just visit the permalinks link under settings in admin

    I had the same problem. I regenerated the permalinks as suggested by YITHEMES and now it works fine.

    Thank you! ??

    Thread Starter Felurian

    (@felurian)

    Maybe I have a solution to prevent next update from overwriting our changes.

    We could override “add_to_wishlist_ajax” function via functions.php of our theme.

    With something like this (don’t work) :

    if (!function_exists('add_to_wishlist_ajax')) {
    	function add_to_wishlist_ajax() {
    	    // TO DO : get variables $return, $message, $wishlists
    
    	    wp_send_json(
                    array(
                        'result' => $return,
                        'message' => $message,
                        'user_wishlists' => $wishlists,
                        'wishlist_url' => yith_wcwl_get_wishlist_url()
                    )
                );
    	}
    }

    If anyone could bring some help, it would largely be estimated.
    Thanks !

    Was this issue sorted with the latest update?

    My SEO team keep annoy me with loads of 404 errors. Could anyone suggest some other wishlist plugin which does not throw 404 errors and it does not take ages to plugin author to sort it out(first post about this dates back 7 months ago????)?

    Hi,

    Can you give us a function to add into our child theme so it prevents with feature updates or give us option to remove view in settings? Or just remove view for everyone.

    Thank you!

    I have the same problem. The /view link causes several problems and should either be removable via a admin setting or you should give us an updatesafe code. Thank you.

    Hello,
    How can i change the permalink name ‘/my-list/’ to something else?
    I need to translate and use another name there.

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Modify "browse wishlist" url (remove /view/ at the end)’ is closed to new replies.