How to separate Corporate and Normal user in woocommerce? - wordpress

I'm not an experienced developer but trying to understand and need help how to make my Woocommerce store with two separate users.
I want to have products for normal users and corporate where I want to keep separate prices on products. And two separate registration and login pages for normal users and corporate account.
Corporate accounts and prices will differ from customer prices and accounts.
Website default will be shown prices for customer and there will be a link for corporate.
thank you

Yes, this can be done.
Two types of customers can be done with user roles.
You will need some dev knowledge to place the correct login and registration forms on different pages. The login is less complicated since once the user is registered to a role, no need for different login form. Registration needs some work to make the user role according to the form used.
Different prices also can be achieved using ready-made plugins.
User Role Editor plugin will help you create a new role for the corporates.
Dynamic Discounts plugin will help you create different discount rate for the new user roles.

Related

When does a wordpress subscriber become a woocommerce customer?

Ok so I'm trying to find out what determines a wordpress user becomes a subscriber or a customer. So my site has over 5000 subscribers but 1000 customers. Lately I have been getting hit by bots that will register 300 - 400 accounts in a day. So I'm trying to determine if its' the registration form itself that determines who becomes what role. Like if it's original wordpress form they become a subsriber but a woocommerce registration form they become a customer. As the bots are using a very specific link to automatically register and it's the default wordpress registration link. So I'm trying to figure out the best way to avoid this from happening while also being able to determine fake subscriber from real subsribers, as checking some of the subsribers have actually logged in. I figured then all customers should have logged in, assuming customers were created once they purchased something from the store but in fact thats not the case. So any real input on this would be very nice and helpful.
So talking to Wordpress and Woocommerce it is when the user uses the Woocommerce Registration Form is when a user is assigned the Customer Role over Subscriber Role.
I want to add to this now also, I'm unsure what update this occured but in Wordpress Settings->General Tab there is a box that asks for New User Default Role. So now you can make sure every user is a customer or a subscriber or whatever role you decide to choose.

How to track & ID users in Google Analytics while registration/login via an other domain?

We have Multiple products, all are using one SSO (Single Sign On & Registration). So when visiting product A: www.AAA.com, the user (when register or sign-in) will have to go to: sso.mainsite.com to go through registration or login, then it will redirect him to the product page that he came from.
I want to track unique users properly so:
I know each user from where he was acquired. (e.g. Mailchimp campaign? Social Media?..etc)
Each user activity in the product is always linked to him (Made purchase, did an activity...etc)
Statistics Not be affected by the common SSO site, where multiple product users are directed there to login or register. I want to be able to identify product A users.
We have Analytics Account for the main site (inc. SSO) and an account for product A. I'm having difficult time:
Should I use the product A tracking code in the SSO (to have multiple tracking codes on that page)?
Identifying users by Google's new User ID, should we let the SSO identify them (assign ID) or by Product A, when the user get transferred there?
I know i'm asking a lot, but i'm having difficult time knowing what is the best approach, not to damage any statistics. Thank you!
If you want to track the session on www.AAA.com without interruption it should be enough to add sso.mainsite.com to the referral exclusion list in the property settings in www.AAA.com's GA account.
That way sso.mainsite.com will not appear as a referrer, instead the session including channel attribution will be continued when you redirect back from sso.mainsite.com. This will completely ignore the pageviews on your sso page.
The alternative would be to set up cross domain tracking, if you want to include the detour to sso.mainsite.com into the tracking. That would be somewhat complicated, and unless you signal that this is really what you want I will not even bother to explain the setup.

Buddypress membership

I'm looking for a plugin that can do the following.
Support of different memberships (e.g. basic, silver, gold) including payment gateways with recurring payments.
Depending on the chosen membership option during registration (and later on upgrade) more fields shall appear in the registration form.
Those fields shall be displayed on the profile page of the user
I don't want to protect any content of the site.
It is more to enhance the user profile with additional information depending on the subscription.
I would use s2membership as this should solve your multiple membership issue.

How to buy particular products without login in drupal commerce

I am new working in drupal-commerce module .Currently the system I have is that a logged in user should buy products from my site but there are two particular product I need to my users buy without doing any login . Is it possible in drupal-commerce ? My english is not good so if anyone have any query regarding my question please ask me.
Please help me if there is any solution to this .
Thanks
Purchasing without creating accounts? It is possible.
It is possible to purchase products without creating an account.
By default anonymous users aren't permitted to complete the checkout process. What you need is grant them the Access checkout permission. Changing this permission is really easy:
From /admin, click on the People link, then Permissions
Under the Checkout section, grant the Access checkout permission to anonymous users
Click Save permissions.
Now anonymous users can use checkouts.
How to setup your site to always be anonymous
There is another way to accomplish this, however it is more complicated and possibly you don't want this, I'm just sharing if so.
Users on your page don't have to be logged in (authenticated) or anonymous. To setup your site to always be anonymous, you have to disable only two rules.
The rules can be found by going to the Store Configuration screen and selecting Checkout Settings and then selecting Checkout Rules.
Assign an anonymous order to a pre-existing user
Create a new account for an anonymous order
Disabling these rules mean the users can't login to see their Orders, however it has no side affect to being able to purchase items.
If you want to read more about this, check out this page.
Hope that helps

How can I add lm_paypal subscriptions to registration page?

I've recently installed the lm_paypal module to my drupal site, and I've created two different subscriptions. When users subscribe and pay, they are granted a user account (a specific Role that has access to various pages).
How can I add my subscriptions to the user registration form?
The goal: After users fill out the registration form, I want them to be taken to the paypal page for payment (e.g. Continue to Checkout).
this is a great question, I'm going to try to work on something like this and let you know!
In the mean time, check this link out, it has some ideas.
https://drupal.org/node/125816

Resources