Add Invoice to BuddyPress logged in menu

This topic contains 6 replies, has 3 voices, and was last updated by  Martin Steimann 1 month ago.

  • Author
    Posts
  • #2823

    Martin Steimann
    Free User
    Post count: 161

    Hello,

    I have GeoDirectory installed in conjunction with BuddyPress. What I would like to achieve is adding the Invoice tab to a main menu, so that it can be clicked once a member has logged in.

    The WordPress menu option shows all BuddyPress tabs and the GD Listings tab, but not the Invoice tab. Pleas note attached screenshot.

    Regards,
    Martin

    Attachments:
    You must be logged in to view attached files.
    #2825

    Guust
    Moderator
    Post count: 25824

    There is no such option.
    You can add a tab to the BP user profile if you use the GD-BP integration addon: https://wpgeodirectory.com/downloads/buddypress-integration/

    Thanks

    #2826

    Martin Steimann
    Free User
    Post count: 161

    Thanks for your reply Guust. I have already installed the GD-BP integration plugin and it adds the tabs „Listings“ and „Invoices“ to the profile field, which is great.

    I have asked because this plugin even offers the feature to add the Listings to the „hidden if not logged in“-menu, and this is a useful feature. Thought it would be handy if the Invoices could be added too, because I have so many tabs in the profile field that the last tab in the row – the invoices – is sometimes kind of hidden behind a toggle + button. (See attached screenshot)

    This is no real issue, but I thought I might have overlooked something, because the GD Listings can be added to the menu easily. Maybe a feature for a future release?

    Regards,
    Martin

    Attachments:
    You must be logged in to view attached files.
    #2828

    Alex Rollin
    Moderator
    Post count: 15314

    Maybe I don’t understand what you want to add to the menu but have you tried adding a custom link to

    /wpi-checkout/wpi-history/
    #2829

    Martin Steimann
    Free User
    Post count: 161

    Thanks for your reply Alex.

    I think if I add a custom link to the menu, then it would be visible also for logged out users. Invoices are related to a specific user and should be visible only to a logged in users.

    So what I would like to achieve is adding this link to the logged in menu only.

    Let me explain using the two attached screenshots.

    Screenshot A) shows a typical BuddyPress members’s profile page of a logged in BuddyPress member. Tabs 1-7 are created by BuddypPress. 8 + 9 (GD Listings + GD Invoices) are created by the GD BuddyPress integration plugin. Number 8 (GD Listings) can be added to the „logged in“-menu. Note the corresponding number 8 in the dropdown menu of a logged in user/member at the right hand side of the screenshot. It is in the list because…

    Screenshot B) … the WordPress menu setup allows me to add the GD Listings link to the „logged in“-menu. But in this list I cannot find the link to GD Invoices (which should be number 9 in that list). Therefore I cannot add it to the „logged in“-menu, which is and should be only visible to users/members who have logged into their account.

    As GD Listings is in that list, I believe you WP/GD Invoicing developers have managed a way to integrate the GD Listings link. And my wish is that you can find a way to integrate the WP Invoicing link too, so that it can be chosen and added to the menu, and then appears in the dropdown menu in screenshot A right beyond Number 8 (the Listings link) as Number 9.

    Sounds complicated, but hopefully it is easy to achieve.

    Regards,
    Martin

    Attachments:
    You must be logged in to view attached files.
    #2832

    Guust
    Moderator
    Post count: 25824

    Alex’s suggestion will work.
    Just add the link to the invoice page to the BP menu.
    Then add this CSS, adjust as required:

    .logged-in #menu-item-xxx {display: initial}
    #menu-item-xxx {display: none}
    #2833

    Martin Steimann
    Free User
    Post count: 161

    Thank you Guust & Alex! I have added the CSS-code and got it working now.

    I still wish there would be a more streamlined/integrated solution for people with little or no coding skills like me.

    Please let me explain again:

    Now if member clicks on the Invoice Link in the dropdown menu of his profile, he gets redirected to the wp-history page, which is okay (note attachment „A – Link to invoice history page“).

    If the WP Invoicing plugin could be perfectly integrated into BuddyPress, the Invoice Link in the member’s dropdown menu would lead to the Invoice Tab of his profile page instead (attachment „B- Link to Invoice Tab), which is always a member specific URL (note the arrow pointing to that URL).

    Perfectly integrated is your GeoDirectory plugin, because a link to the Listings Tab can be easily added to a menu as shown in the screenshot of my last post. If a member chooses this link in the dropdown menu, this opens the Listing Tab of his profile page. (attachment „C- Link to Listing Tab, note the specific URL) Great!

    Maybe you could consider adding this feature to a future version of the WP Invoicing plugin. Hopefully I do not sound too demanding. All I want is the best customer experience as possible for the members of my network.

    Thanks again for helping me out at the moment.

    Regards,
    Martin

    Attachments:
    You must be logged in to view attached files.
Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.