• Resolved mersgsua

    (@mersgsua)


    Hi,

    I would like to add the page “affiliate account” into the “My account” menu on Woocommerce” so affiliates can check their affiliate accounts when they log in into their accounts on my website. How can i do that?

    thank you ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author iova.mihai

    (@iovamihai)

    Hey @mersgsua,

    There isn’t an out of the box solution for this, however, we have created a free add-on you can use.

    Please read this blog post for more details: https://slicewp.com/blog/woocommerce-account-affiliate-area/

    If it doesn’t work for you or if you’re having any issues, please let me know.

    Best wishes,
    Mihai

    Thread Starter mersgsua

    (@mersgsua)

    Thank you! It worked.

    Plugin Author iova.mihai

    (@iovamihai)

    Awesome! Happy to hear it.

    If there’s anything, we’re here for you.

    Best wishes,
    Mihai

    I works fantastic.

    Is there a way to sort it?
    I mean: put it before or after another tab. I was checking “woocommerce order” but I cannot make it work.
    Thanks.

    Plugin Author iova.mihai

    (@iovamihai)

    Hey @vansite,

    To place the “Affiliate area” tab elsewhere in the menu, you’ll need to change the following part of the code:

    $items = array_merge( 
        	array_slice( $items, 0, count( $items ) - 1 ),
        	array( 'affiliate-area' => 'Affiliate area' ),
        	array_slice( $items, count( $items ) - 1 )
    );

    To maybe:

    $items = array_merge( 
        	array_slice( $items, 0, count( $items ) - 3 ),
        	array( 'affiliate-area' => 'Affiliate area' ),
        	array_slice( $items, count( $items ) - 3 )
    );

    As you can notice, the array_slice’s last parameter changed from count( $items ) – 1 to count( $items ) – 3. You can change the 3 into another value to position it how you want it.

    Best wishes,
    Mihai

    Ok, I see now where I was making the mistake and why it wasn’t working. Thanks. It works perfect.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘“My account menu”’ is closed to new replies.