1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How to create your own shopping basket

Discussion in 'Programming' started by Weirfire, Sep 28, 2004.

  1. #1
    I'm considering several options for building my own shopping basket with PHP.

    I'm thinking of using cookies to store the potential customers current choices of purchase. Would this be a wise decision or are there better solutions out there?
     
    Weirfire, Sep 28, 2004 IP
  2. xml

    xml Peon

    Messages:
    254
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Cookies and session IDs are the main choices.

    There can be some security risks with cookies, e.g. people could copy cookies (highly unlikely). This can easily be stopped by encrypting the data etc.

    Amazon use the cookie method. Session ID's might screw with Googlebot and friends.
     
    xml, Sep 28, 2004 IP
  3. Foxy

    Foxy Chief Natural Foodie

    Messages:
    1,614
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Foxy, Sep 28, 2004 IP
  4. Fishing Forum

    Fishing Forum Active Member

    Messages:
    537
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    60
    #4
    Have a look at Cubecart

    Very easy to use and mod plus supports most gateways

    Helpful forum as well
     
    Fishing Forum, Sep 28, 2004 IP
  5. Weirfire

    Weirfire Language Translation Company

    Messages:
    6,979
    Likes Received:
    365
    Best Answers:
    0
    Trophy Points:
    280
    #5
    I think I might timestamp the cookies, hence making it almost impossible to copy.

    Thanks for the links. I'm building a content management system however to sell my own shopping cart to businesses. I was worried about the security risk of cookies as xml stated so thought I'd ask what everyone else uses.

    Would it even matter though if someone copied the cookies? If you display the items on the screen before checkout then it doesnt really matter whether you can copy them or not.
     
    Weirfire, Sep 28, 2004 IP
  6. mopacfan

    mopacfan Peon

    Messages:
    3,273
    Likes Received:
    164
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I highly suggest using a database to store the session information. It's much more reliable than cookies, especially when the user has cookies turned off. If they do and you put up a message that they need to enable cookies, say bye-bye to a potential customer. You can set a session on the server and track by IP address as a backup if you have a database to store the rest of the session information.
     
    mopacfan, Sep 28, 2004 IP
  7. Foxy

    Foxy Chief Natural Foodie

    Messages:
    1,614
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Thats good advise mopacfan as I lost some customers for the very reason that the cookies were turned off.
     
    Foxy, Sep 28, 2004 IP
  8. Help Desk

    Help Desk Well-Known Member

    Messages:
    1,365
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    180
    #8
    OS commerce seems to be the best. Some hosts even install it for you by default.
     
    Help Desk, Sep 28, 2004 IP
  9. Weirfire

    Weirfire Language Translation Company

    Messages:
    6,979
    Likes Received:
    365
    Best Answers:
    0
    Trophy Points:
    280
    #9
    Thanks guys. Will definitely look into sessions now. I've heard they are nasty little things to learn though.
     
    Weirfire, Sep 28, 2004 IP
  10. mushroom

    mushroom Peon

    Messages:
    369
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #10
    mushroom, Sep 28, 2004 IP
  11. Weirfire

    Weirfire Language Translation Company

    Messages:
    6,979
    Likes Received:
    365
    Best Answers:
    0
    Trophy Points:
    280
    #11
    Nice one mushroom

    Thanks
     
    Weirfire, Sep 29, 2004 IP