Skip to:
Content
Pages
Categories
Search
Top
Bottom

Make Group Membership Payment


  • oliverhees
    Participant

    @oliverhees

    Hello guys,

    I have a problem.

    I am supposed to make access to private groups subject to payment.

    This means that if you click on the button “Request Membership” you will be redirected to a WooCommerce product where the customer can buy access to the group.

    I’ve tried a lot of things but always failed because of the redirection of the button.

    So how can I successfully redirect the button “Request Membership” to a Woocommerce product?

    Thanks for all

Viewing 2 replies - 1 through 2 (of 2 total)

  • oliverhees
    Participant

    @oliverhees

    Is there no one here who could help?

    An approach or tip would be extremely helpful.


    shanebp
    Moderator

    @shanebp

    I’ve never done it, but this is what I’d try:
    In: buddypress\bp-groups\bp-groups-functions.php
    Find: function groups_send_membership_request
    And find the do_action near the end of that function.
    Use that hook to call a function that does what you need re Woo.
    After payment, make a call to function groups_accept_membership_request also in bp-groups-functions.php.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar