Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
this post may be OT. read at your own risk.
We've all read posts here about people wanting 'out of the box' shopping cart solutions written in perl. I have no intention of being one of those posters today. But lets face it, a lot can be learned from building an application such as a shopping cart. I have often entertained the idea of writing my own solution to the shopping cat dilemma. I am still undecided as to weather or not I will, but I do have a few questions regarding shopping cart systems; not on the code level, but a higher level.
What I was hoping to do was to explain how I think a shopping cart should work and possibly you more experienced monks could correct me where my logic is off. So here goes nothing.
  • User visits app and gets assigned a unique ID via a cookie.
  • Each time the user adds/edits/deletes an item to the cart a record gets added/edited/deleted in a database table (Containing the user ID, prodID where prodID is the primary key in the product table, quantity, etc..)
  • once the user is ready to check-out we somehow pass the ID over to an app sitting on a server with aSSL.
  • Once on the SSL we take the users information (including credit card info) and process the order
  • I would assume that the credit card number would be stored encrypted on the database so that intruders could do nothing with the number without a key.
So in my head that's how a shopping cart should work. I have left out alot of functionality that usually is included with a cart, but to my knowledge this is the bulk of what is happening. If I'm wrong, and I probably am, tell me I'm wrong, but most importantly please tell me why.
I'd also like to hear about pitfalls others have made out there while building similar types of apps. What should I be looking for? What shouldn't I be looking for? Do I roll my own? Do I use an 'out of the box' solution? I'm sure each of you have gone through the same thing I am going through right now. What was your experience?
Thanks in advance.

-silent11

In reply to shopping cart implementation by silent11

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (6)
As of 2024-03-28 15:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found