Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Membership › Best way to set-up different vendors + Membership sign-up change queries
- This topic has 11 replies, 2 voices, and was last updated 5 years, 10 months ago by WCFM Forum.
- AuthorPosts
- January 10, 2019 at 3:12 am #42875alastairParticipant
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
- January 10, 2019 at 6:52 am #42893WCFM ForumMember
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/phq4QJJThank You
- January 10, 2019 at 12:54 pm #42934alastairParticipant
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?
- January 11, 2019 at 6:51 am #43076WCFM ForumMember
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
- January 15, 2019 at 3:17 am #43552alastairParticipant
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
- January 15, 2019 at 6:46 am #43587WCFM ForumMember
Hi,
What is your “WooCommerce Multivendor Membership” plugin version?
Thank you
- January 15, 2019 at 8:38 am #43613alastairParticipant
2.3.1
- January 16, 2019 at 5:37 am #43783WCFM ForumMember
HI,
Kindly do a tweak in Membership setting.
Set “First Step” -> Registration instead “Choose Plan” -> https://ibb.co/xqKp8Xn
Thank You
- January 16, 2019 at 6:36 am #43801alastairParticipant
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
- January 16, 2019 at 7:50 am #43829WCFM ForumMember
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
- January 16, 2019 at 10:45 am #43879alastairParticipant
That worked! Thank you!
- January 16, 2019 at 10:56 am #43889WCFM ForumMember
Great .. thanks for confirming me..
Have a great day 🙂
- AuthorPosts
- The topic ‘Best way to set-up different vendors + Membership sign-up change queries’ is closed to new replies.