10. E – Commerce Website Tutorial – Shopping Cart PHP Multidimensional Array +

www.developphp.com In this 10th video we will continue programming the multidimensional array in PHP that is the shopping cart. We will use a SESSION variable to store and remember the cart data as the user browses pages. The E – Commerce Web Site we will be assembling is one in which all of the inventory is in a MySQL database and we offer a custom PHP cart for a unique shopping experience.


  • Adam,

    I am getting addicted to your develop php page and find myself needing to go there everyday for more brain food. Wow, This is really opening up a whole new world I never knew existed. Please keep up the great work, I really appreciate what your doing for me.


  • The problem i see is that the items listed in the cart don’t actually show the items name,price, picture, etc.. i hope in part 11 this will be changed? 🙂

  • When the customer hit the CLICK HERE TO EMPTY YOUR SHOPPING CART it empties it immediately. (At the end of video 10 when You tested it))
    I think it would be a good thing to ask the customer once more DO YOU REALLY WANT TO EMPTY YOUR SHOPPING CART.
    What do You think Adam?

  • The best! that not him..whats the other word, something better then “the best” …what is it?

    I can’t think of it right now. 🙂

  • ty very much adam, ur the man. So easy to understand your code, u actually comment all of ur code, and make it non OOP, which is easier to understand.
    ^5 😀

  • I’m trying to include size, but it seems like if I’m adding the same product in the cart but choosing a different size, that product id just gets updated with an additional quantity and updating the size because of the array_splice() and doesn’t show up as another item. How do I fix this?

    Thank you!

  • I care! You are sitting behind your PC and spending your time to teach us PHP and make our life easier by explaining each part of the code, thing that none of those people with tutorials do it. Thanks!

  • I have just one question so far about your tutorials.. I really hope you can take your time to answear on this..
    I see you use preg_replace a lot, instead of mysql_real_escape_string() and (int).. is there a good reason or just your way ?

  • Thanks for posting this! If you need help customizing your zen cart store check out our channel for our free Easy Help Zen Cart Video Tutorial library. If you have a specific question or video you would like to see, just leave a commend on our channel.

  • Wonderful and very comprehensible. I was knew that i will find good instructions on it. Now, I have.
    Thank You Very Much! 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *