Wordpress shopping cart members only checkout help

If you go to this website which has a content warning - it is a medical page.
http://www.patiowellness.com
 I am working on I am trying to make it so you have to be a member to order. Which you login and then you can order, is there a way with my plugin that I am using to let them add to cart - say checkout then you login and order, instead of logging in first, and then ordering. I do not know how to stop it from letting non members order unless I restrict the pages, but my client wants anyone to add to cart but to purchase they have to be a medical member only. This way it keeps members only ordering but they can add to cart without extra steps until the end./

the plugins I am using are
Simple Ecommerce shopping cart - with paypal checkout
Page Restrict so you have to login to view
angelic_webmasterAsked:
Who is Participating?
 
ahoffmannCommented:
you need to setup a session server-side which identifies the user (actually the browser not the human:)
this session contains your shopping cart
when the user clicks on order, your application has to check the session object if the user is already logged in and ask for login credential if not
after login your mark the session as "logged in"
the handle for the session is most likely a cookie

don't forget to provide a logout buttun
don't forget to destroy the server-side session at logout **or** after an idle timeout
0
 
angelic_webmasterAuthor Commented:
How do I go about doing this?
0
 
ahoffmannCommented:
programatically, unless your plugin can do it declarative (I doubt it can)
0
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

 
angelic_webmasterAuthor Commented:
I changed the shopping cart but now my menu on the widgets disappeared. Any idea what I can do to fix this. Here is the link.
http://www.patiowellness.com/product/trainwreck-%E2%98%86%E2%98%86%E2%98%86%E2%98%86/
0
 
angelic_webmasterAuthor Commented:
Thank you I definitely need help to finalize this site. Thank you.
0
 
angelic_webmasterAuthor Commented:
This techs answer was correct so I found a new plugin that incorporated everything they told me.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.