Usage with Woocommerce – custom my account item


Home Forums Front End PM PRO Usage with Woocommerce – custom my account item

This topic is: Resolved
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #16178
    Hansen
    Participant

    Hello,

    I have another topic open but I thought it be cleaner to create a new topic for this;

    I have created a custom “my account”-item (Woocommerce) for this plugin. The URL to this custom item is “my-page/messages”. How can I define this URL for Front End PM PRO, instead of an actual page?

    Thanks again for swift replies!

    #16185
    shamim
    Keymaster

    Is it a page? Does this have any page id?

    #16187
    Hansen
    Participant

    Nope.

    #16193
    shamim
    Keymaster

    add following code in your theme’s (child theme’s if any) functions.php

    add_filter( 'fep_query_url_without_esc_filter', function( $url, $args ){
        $url = add_query_arg( $args, 'http://example.com/my-page/messages' ); //your page url
        return $url;
    }, 10, 2 );
    
    #16195
    Hansen
    Participant

    It works, but generates alot of errors:
    http://ss.argo.no/1w0i2g0v1k12

    Additionally the URL is fubar:
    http://ss.argo.no/2i3N0D0V2r32

    #16200
    shamim
    Keymaster

    I have updated above code. Please use this code.

    #16202
    Hansen
    Participant

    Thank you, works!

Viewing 7 posts - 1 through 7 (of 7 total)

You need to purchase ‘Front End PM PRO’ to create topic in this support forum.

If you already purchased ‘Front End PM PRO’ please LOGIN.