Best way to set-up different vendors + Membership sign-up change queries

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WCFM – Membership Best way to set-up different vendors + Membership sign-up change queries

Viewing 11 reply threads
  • Author
    Posts
    • #42875
      alastair
      Participant

      Hi,

      I am going to have two types of vendor on my marketplace.

      1) Vendors who will supply just a design, which is then produced by a print-on-demand company and distributed. The vendor will not have to pay for raw materials or shipping costs etc

      2) Vendors who will make and ship the product themselves. These vendors will incur higher charges than type 1 for producing and distributing their products.

      Neither will have to pay a subscription fee, but there will be a different commission structure for each. The first type will pay higher commission.

      I’m confused about whether the best way to do this is through groups or memberships?

      From reading the documentation, it seems that groups should be used to organise vendors. However, this doesn’t allow me to set commissions on a group basis.

      Memberships seems to offer more customisation, but may be confusing for vendors signing up. Both of the groups will be free, but the membership sign-up process is designed to get people choose between free / paid subscriptions.

      If memberships are the best way to go, could you please let me know what the CSS is to remove the price and the price description from the membership table (see attached screenshot). This will ensure my vendors aren’t confused.

      https://www.dropbox.com/s/enxpp97xo4w655p/1.%20Remove%20content.png?dl=0

      I would also like to delete the ‘confirmation’ membership sign-up process, if possible? Again, I think that this will be confusing for customers due to the wording. If it can’t be removed, if you could please let me know how to edit the content, that would be appreciated.

      Lastly, all of the colors in the sign-up process are are still the default colors:

      https://www.dropbox.com/s/bazksgxe42911me/2.%20Colors%20still%20standard.png?dl=0

      Although I have set custom colors:

      https://www.dropbox.com/s/4o9wwu3zah8m9gb/3.%20Edited%20colors.png?dl=0

      Thank you,

      Alastair

    • #42893
      WCFM Forum
      Member

      HI,

      Thanks for get in touch with us.

      Well, I understand your requirement. Just create two membership for two type of vendors and set different commission rule for those. Hope you have already created this!

      Hide membership price CSS –

      .wcfm_membership_box_wrraper .wcfm_membership_price { display: none; }

      https://www.dropbox.com/s/bazksgxe42911me/2.%20Colors%20still%20standard.png?dl=0
      – Do you have set “Preview Box Color”? – https://ibb.co/phq4QJJ

      Thank You

    • #42934
      alastair
      Participant

      Thank you for the reply. I had created memberships, then deleted them, so have now created them again!

      The CSS worked perfectly – thank you.

      Yes, I have set the preview box color, but it continues to be the default colors:

      https://www.dropbox.com/s/fgb9jmp784furxb/4.%20Edited%20colors%202.png?dl=0

      Is it possible to delete this confirmation step of the sign-up process?

    • #43076
      WCFM Forum
      Member

      HI,

      Please add this code to your child theme’s functions.php to remove Confirmation step –

      add_action( 'wcfmvm_after_choosing_membership', function( $membership ) {
      	global $WCFM, $WCFMvm, $_SESSION;	
      	if( $membership && is_user_logged_in() ) {
      		$wcfm_membership_registration_messages = get_wcfmvm_membership_registration_messages();
      		$has_error = false;
      		$subscription_pay_mode = 'by_wcfm';
      		
      		$wcfm_membership = absint($membership);
      		$subscription = (array) get_post_meta( $wcfm_membership, 'subscription', true );
      		$subscription_pay_mode = isset( $subscription['subscription_pay_mode'] ) ? $subscription['subscription_pay_mode'] : 'by_wcfm';
      		$subscription_product = isset( $subscription['subscription_product'] ) ? $subscription['subscription_product'] : '';
      		if( ( $subscription_pay_mode == 'by_wc' ) && $subscription_product ) {
      			WC()->cart->empty_cart();
      			WC()->cart->add_to_cart( $subscription_product );
      		}
      		
      		if( $subscription_pay_mode == 'by_wc' ) {
      			echo '{"status": true, "message": "' . $wcfm_membership_registration_messages['registration_success'] . '", "redirect": "' . wc_get_checkout_url() . '"}';
      		} else {
      			echo '{"status": true, "message": "' . $wcfm_membership_registration_messages['registration_success'] . '", "redirect": "' . add_query_arg( 'vmstep', 'payment', get_wcfm_membership_url() ) . '"}';
      		}
      		die;
      	}
      });

      We are checking “preview” color issue.

      Between, please be sure you are using WCFM Membership latest version 2.3.1

      Thank You

    • #43552
      alastair
      Participant

      Hi there,

      I have created a child theme and my developer has added the code you provided to the theme’s functions php:

      https://www.dropbox.com/s/e8i3elf28be0x8q/motored%20-%20marketplace%20functions.png?dl=0

      However, the ‘confirmation’ step is still appearing in the membership sign-up process:

      https://www.dropbox.com/s/naaoxn04m42tazq/Motored%20vendor%20membership.png?dl=0

      I am currently using a staging version of my website, and the vendor membership sign-up link is here:

      http://motored.staging.wpengine.com/vendor-membership

      Could you please have a look at the code again and see whether you can eliminate the confirmation step?

      Thank you,

      Alastair

    • #43587
      WCFM Forum
      Member

      Hi,

      What is your “WooCommerce Multivendor Membership” plugin version?

      Thank you

    • #43613
      alastair
      Participant

      2.3.1

    • #43783
      WCFM Forum
      Member

      HI,

      Kindly do a tweak in Membership setting.

      Set “First Step” -> Registration instead “Choose Plan” -> https://ibb.co/xqKp8Xn

      Thank You

    • #43801
      alastair
      Participant

      Hi there,

      Thank you for the reply. I have done this and it swapped the two first screens round. However, the ‘confirmation’ step is still appearing but with no content, so it can’t be clicked past to finalise the sign-up.

      https://www.dropbox.com/s/1adddnwbvw3bs19/motored%20-%20vendor%20membership.png?dl=0

      We’re nearly there, but not quite!

      Thank you,

      Alastair

    • #43829
      WCFM Forum
      Member

      Hi,

      Kindly replace that custom code with this –

      add_action( 'wcfmvm_after_choosing_membership', function( $membership ) {
      	global $WCFM, $WCFMvm, $_SESSION;	
      	if( $membership && is_user_logged_in() ) {
      		$wcfm_membership_registration_messages = get_wcfmvm_membership_registration_messages();
      		$has_error = false;
      		$subscription_pay_mode = 'by_wcfm';
      		
      		$wcfm_membership = absint($membership);
      		
      		$member_id = get_current_user_id();
      		update_user_meta( $member_id, 'temp_wcfm_membership', $wcfm_membership );
      		
      		$subscription = (array) get_post_meta( $wcfm_membership, 'subscription', true );
      		$subscription_pay_mode = isset( $subscription['subscription_pay_mode'] ) ? $subscription['subscription_pay_mode'] : 'by_wcfm';
      		$subscription_product = isset( $subscription['subscription_product'] ) ? $subscription['subscription_product'] : '';
      		if( ( $subscription_pay_mode == 'by_wc' ) && $subscription_product ) {
      			WC()->cart->empty_cart();
      			WC()->cart->add_to_cart( $subscription_product );
      		
      			echo '{"status": true, "message": "' . $wcfm_membership_registration_messages['registration_success'] . '", "redirect": "' . wc_get_checkout_url() . '"}';
      		} else {
      			
      			update_user_meta( $member_id, 'wcfm_membership_paymode', 'free' );
      			$required_approval = get_post_meta( $wcfm_membership, 'required_approval', true ) ? get_post_meta( $wcfm_membership, 'required_approval', true ) : 'no';
      			
      			if( $required_approval == 'no' ) {
      				$has_error = $WCFMvm->register_vendor( $member_id );
      				$WCFMvm->store_subscription_data( $member_id, 'free', '', 'free_subscription', 'Completed', '' );
      			} else {
      				$WCFMvm->send_approval_reminder_admin( $member_id );
      			}
      		
      			// Reset Membership Session
      			if( isset( $_SESSION['wcfm_membership'] ) && isset( $_SESSION['wcfm_membership']['membership'] ) && $_SESSION['wcfm_membership']['membership'] ) {
      				unset( $_SESSION['wcfm_membership'] );
      			}
      			
      			echo '{"status": true, "message": "' . $wcfm_membership_registration_messages['registration_success'] . '", "redirect": "' . add_query_arg( 'vmstep', 'thankyou', get_wcfm_membership_url() ) . '"}';
      		}
      		die;
      	}
      });

      Thank You

    • #43879
      alastair
      Participant

      That worked! Thank you!

    • #43889
      WCFM Forum
      Member

      Great .. thanks for confirming me..

      Have a great day 🙂

Viewing 11 reply threads
  • The topic ‘Best way to set-up different vendors + Membership sign-up change queries’ is closed to new replies.