Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Wordpress shopping cart members only checkout help

Posted on 2013-01-10
8
Medium Priority
?
385 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 1500 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
While Plesk offers many potential benefits to website administrators, including compatibility with Windows Server and other leading technologies, the company has also been working to differentiate it from other control panels for content management…
The viewer will learn how to dynamically set the form action using jQuery.
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 …
Suggested Courses

971 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