Paid Listings and Vendor registration flow question

There seem to be 2 different vendor registration flows. These result in different emails and the vender being given a different user role.

I’m using the paid listing plugin with woocommerce. I have a membership page which has the listing packages block.

#1: Register → Add listing → Purchase package
- Vendor is given the role of contributor and emails are from hivepress

#2: Purchase package (creates account) → Add listing
- Vendor is given the role of customer and emails come from woocommerce. (also, after they choose a password they are taken to /my-account page instead of /account)

I would really like to simplify this so every vendor goes through the same process and I don’t have to worry about 2 different email templates.

Did I miss something or any ideas how this might be achieved?

Hi,

Please note that if you use direct registration for a vendor, there is no redirect to checkout. Regarding Paid Listings, specifically the functionality of adding a listing, we recommend that you check the user’s role after their listing is published, they will automatically receive the role of Contributor.

​I hope this is helpful to you.

The direct registration for vendors doesn’t help me because I need to have a page that lists the pricing packages.

Because I need this pricing page and someone can register through “add listing”/direct registration I am stuck with these 2 routes.

Route 1: Vendors click “Add Listing” > Register > Create Listing > Select Package > Purchase Package

Route 2: Vendors click “Buy Package” on the Membership page > Checkout > Register > Create Listing

  • If someone goes this route, they get an email from woocommerce with a link to set their password. This takes them to woocommerce’s “/my-account” dashboard instead of the “/account” dashboard that hivepress uses.

I would like to streamline the process so all vendors go through the same registration/purchase process. The only thing I can think of is making a custom listing packages block that just redirects people to the registration page.

It doesn’t seem like there is a simple fix and would probably require a custom solution. I’m not asking for an exact solution, just hoping someone might have a better idea.

Yes, in case of non-registered users the registration occurs during checkout, so there are 2 actions completed via a single form. I can provide a code snippet to redirect the WooCommerce account page to the HivePress account page, let me know if this works for you.

Yes, that snippet would be helpful. Thanks.

Sorry for the delay, we got more dev-specific support requests this week than expected. I will post the snippet within 24 hours or less.

Please try using this code snippet, you can add it via the Code Snippets plugin:

add_action( 'template_redirect', function () {

    // Check for authorization.
    if ( ! is_user_logged_in() ) {
       return;
    }

    // Check for woocommerce installation.
    if ( ! function_exists('is_woocommerce') ) {
       return;
    }

    // Redirect woocommerce account page.
    if ( is_account_page() && ! is_wc_endpoint_url( 'orders' ) ) {
       wp_safe_redirect( hivepress()->router->get_url( 'user_account_page' ) );
       exit;
    }
} );
1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.