Jump to content

What exactly a shopping cart is?

- - - - -

  • Please log in to reply
2 replies to this topic

#1
Stefany93

Stefany93

    Newbie

  • Members
  • Pip
  • 3 posts
Hello colleguages,

I am really sorry for the stupid question, but I need some help. I have started learning PHP a while ago and I am on the subject of shopping carts. Now I know shopping carts are used to help customers buy stuff from an Ecommerce website, but what I couldn't understand, no matter how long I searched is how the hell it works?

OK, I know you pick up items and you put them in your shopping cart and then proceed to checkout and lets say you pay using a credit card and that money are automatically transfered to the owner of the website's bank account then how will you, the end customer, receive the final product, let say a book?

I am sorry for the ill explanation, but I really can't get it. Does the PHP script automatically sends an email to the owner of the website and it says "John wants to buy the book The Wealth of Nations and he paid 10 $ for it and the money have already arrived in your bank account, now please order the book for him"

Or does the PHP script automatically sends the book to John's house while he is supping his coffee?

I really don't get! Please help me!

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
You just have a database table that links a user/session with items you have for sale.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
bbqroast

bbqroast

    Codecall Addict

  • Members
  • PipPipPipPipPipPipPip
  • 554 posts
  • Location:/etc/passwd
Generally the distributor will have a warehouse with people in it, when the product is purchased it is added a to a list which they can then view (using PDAs or whatnot) and then they find and mail the item.
Please, write clearly with proper structure. Double spacing makes the text feel un-jointed, Capitalizing Every Word Means People Stop Before Every Word Sub-Consciously Which Is A Pain In The Backside, and use code tags! (The right most styling box).




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users