Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Banned
    Join Date
    Sep 2011
    Posts
    140
    Thanks
    17
    Thanked 0 Times in 0 Posts

    Making a BASIC shopping cart system

    What I have found allot is people build their eCommerce site around a shopping cart system.

    What I want to do is build a shopping cart system around my website.
    I do not want a hectic shopping cart system, all I want is a simple "Add to cart" <A> link on the product page that will add the item to the cart, and a cart page that simply lists what they have added to their cart, and how much the total ammount of their cart is.

    I've looked at numerous tutorials on the internet, but have found many of them deeply flawed in code, and I am wondering if someone could tell me the best way about going with what I want to do?

  • #2
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,472
    Thanks
    8
    Thanked 1,085 Times in 1,076 Posts
    Do you have a secure site (https)?

    If not, you'll be leaving your site for all of the CC transaction.
    Tell us who your credit card merchant will be.


    .

  • #3
    Senior Coder
    Join Date
    Jul 2011
    Posts
    1,226
    Thanks
    3
    Thanked 171 Times in 171 Posts
    Using Session variables will probably be the best idea. Sessions are unique (supposed to be) between clients, and are alive for the length of time the client browses your site actively, plus a timeout period. I would look into that.

    msleim is right, if you don't have an https enabled site, you'll have to use outside merchant tools like paypal etc. to take credit card transactions. This might be your intention anyway, but it's something you should be aware of.

  • #4
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,472
    Thanks
    8
    Thanked 1,085 Times in 1,076 Posts
    Knowing who your credit card merchant is important in how we answer your post.
    Each CC merchant has different requirements, and offers different PHP code examples.


    .


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •