Solved

Wordpress shopping cart members only checkout help

Posted on 2013-01-10
8
361 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
3 Use Cases for Connected Systems

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

 

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

3 Use Cases for Connected Systems

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

Question has a verified solution.

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

Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

910 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now