Advertisement

03.20.2008 at 12:11AM PDT, ID: 23256126
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

6.5

E-commerce prevent a product from being sold more than once (PayPal)

Asked by indianmunda in E-Commerce, PHP and Databases, Web Development

The thing I wants to sell is one of its kind, for example, a specific wine bottle or a painting. It means there exists on only product of that particular type. I am using products and orders table as an example below. And payment method will be ONLY PayPal.

There are two things I want to handle:

1. When a user selects to buy a product, his order is generated and added to orders table with a field named like 'status' in orders table with value= 'pending' or something to indicate that payment has not been made yet. Then the user is sent to PayPal and in the meanwhile other person comes.  HERE I do not want the other person to select that product for purchasing. This could be done simply by having a field in products table status='sale_in_process'. And when displaying product listing don't show the product with status='selected_for_sale' or 'sold', and when payment is made change status='sold' in products table. This may work.

2. Another case is when one person selects to buy it and is sent to PayPal but
never makes the payment. His order is already generated in orders table with status of order as 'pending' and status field in 'products' table is 'selected_for_sale'. Now as that person won't make the payment the status will remain 'selected_for_sale' in products table.

I could use some cron job to reset the status to 'available' for product again but questions to be answered are:

1. WHEN it this resetting should be done?
2. How will I know that the person never completed the payment? Can it happen that for some reason the payment is delayed for 1-5 days (echecks possible with paypal?)
3. How much time I should wait before deleting the order and resetting the status of the product?


This is PayPal specific question and because after user is sent to PayPal we cannot control anything as in case onsite credit card processing.Start Free Trial
[+][-]03.20.2008 at 03:06PM PDT, ID: 21176346

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: E-Commerce, PHP and Databases, Web Development
Sign Up Now!
Solution Provided By: routinet
Participating Experts: 2
Solution Grade: B
 
 
[+][-]03.21.2008 at 11:37AM PDT, ID: 21182103

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.21.2008 at 12:30PM PDT, ID: 21182468

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.27.2008 at 04:16PM PDT, ID: 21226697

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.27.2008 at 04:17PM PDT, ID: 21226707

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.27.2008 at 05:16PM PDT, ID: 21226989

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.27.2008 at 05:27PM PDT, ID: 21227032

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]03.27.2008 at 05:55PM PDT, ID: 21227143

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.27.2008 at 06:10PM PDT, ID: 21227204

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]03.27.2008 at 06:27PM PDT, ID: 21227320

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628