Solved

Wordpress shopping cart members only checkout help

Posted on 2013-01-10
8
366 Views
Last Modified: 2013-01-28
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
0
Comment
Question by:angelic_webmaster
  • 4
  • 2
8 Comments
 
LVL 51

Accepted Solution

by:
ahoffmann earned 500 total points
ID: 38766092
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
 

Author Comment

by:angelic_webmaster
ID: 38766577
How do I go about doing this?
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 38766768
programatically, unless your plugin can do it declarative (I doubt it can)
0
Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

 

Author Comment

by:angelic_webmaster
ID: 38777832
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
 

Author Comment

by:angelic_webmaster
ID: 38794822
Thank you I definitely need help to finalize this site. Thank you.
0
 

Author Closing Comment

by:angelic_webmaster
ID: 38829630
This techs answer was correct so I found a new plugin that incorporated everything they told me.
0

Featured Post

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question