• Resolved cochii

    (@cochii)


    Hello

    I have a site with the 2 plugins (yith wishlist and customize my account). In customize my account page, I added a endpoint for the wishlist
    When I am on my shop page and see a product already present in my list, the URL to see my list is of the type “…/my-account/wishlist” but if I add a product to my list, the URL to see my list is of the type “../wishlist/view/1XC….”
    how to make all links of the type “…/my-account/wishlist”?
    and how can we not access “…/wishlist” by entering the URL?

    Thank you

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

    (@yithemes)

    Hi there

    wishlist uses the “Wishlist Page” you select in plugin’s options in order to generate urls to th wishlist
    If you want to use a different url, you can use yith_wcwl_wishlist_page_url filter, as follows

    if( ! function_exists( 'yith_wcwl_custom_wishlist_url' ) ) {
    	function yith_wcwl_custom_wishlist_url( $url, $action ) {
    		return 'https://your-custom-url-here.com/my-account/wishlist/' . $action;
    	}
    	add_filter( 'yith_wcwl_wishlist_page_url', 'yith_wcwl_custom_wishlist_url', 10, 2 );
    }
    
    • This reply was modified 4 years, 5 months ago by YITHEMES.
    Thread Starter cochii

    (@cochii)

    Thanks it works !

    Plugin Author YITHEMES

    (@yithemes)

    You’re welcome!

    If you enjoy our plugin, don’t forget to leave us a 5 star review, to support us and help our work
    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘URL problem Wishlist with Customize My Account Page’ is closed to new replies.