Solved

Wordpress shopping cart members only checkout help

Posted on 2013-01-10
8
364 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
How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

 

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

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
powershell md/mkdir/New-item   -Quiet 10 94
PHP Query return divisible by 3 3 25
Need to combine two scripts 2 33
I need help upgrading my urls 5 24
Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
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?
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.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

789 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