Shopping Cart script

Discussion in 'PHP' started by Lalla101, Apr 17, 2009.

  1. #1
    i want to submit values from one web page to another web page :confused:

    this is a shopping cart program,

    a user selects items he/she wishes by checking the checkboxes provided.

    then all these should go on to a shopping cart which is in another page.

    and my web page consist of several pages, where the user can select alot of products from each page.
     
    Lalla101, Apr 17, 2009 IP
  2. Weirfire

    Weirfire Language Translation Company

    Messages:
    6,979
    Likes Received:
    365
    Best Answers:
    0
    Trophy Points:
    280
    #2
    So what is your question? ;)
     
    Weirfire, Apr 17, 2009 IP
  3. ryandanielt

    ryandanielt Well-Known Member

    Messages:
    1,797
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    185
    #3
    Why don't you go ahead and use sessions for this, save the data into a temporary session so that it can be loaded into the cart page. This way after a certain period of time if they don't make the purchase it will clear the session.
     
    ryandanielt, Apr 18, 2009 IP
  4. Weirfire

    Weirfire Language Translation Company

    Messages:
    6,979
    Likes Received:
    365
    Best Answers:
    0
    Trophy Points:
    280
    #4
    That's all very well but if they're using a specialised piece of software for their ecommerce needs then there may be more to the problem than just creating some sessions.

    If you read their post they haven't actually asked anything lol
     
    Weirfire, Apr 18, 2009 IP
  5. sksingh002

    sksingh002 Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    For shopping cart, session is the best option but if you are not feeling comfortable with session then just use database.
     
    sksingh002, Apr 18, 2009 IP
  6. bluebenz

    bluebenz Well-Known Member

    Messages:
    876
    Likes Received:
    9
    Best Answers:
    2
    Trophy Points:
    138
    #6
    Agree,
    every shopping cart use session or cookies for saving products and other customers information.
    me myself prefer use session..
     
    bluebenz, Apr 18, 2009 IP
  7. ryandanielt

    ryandanielt Well-Known Member

    Messages:
    1,797
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    185
    #7

    Well from what they have said it sounds very much like they are looking for how to create a way to carry the variables between the pages and my answer covers the basics of what they asked.
     
    ryandanielt, Apr 18, 2009 IP
  8. mdrobiul

    mdrobiul Peon

    Messages:
    186
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    you can directly choose OScommerce scripts. it's a php script.
     
    mdrobiul, Apr 20, 2009 IP
  9. Weirfire

    Weirfire Language Translation Company

    Messages:
    6,979
    Likes Received:
    365
    Best Answers:
    0
    Trophy Points:
    280
    #9
    I would also vouch for osCommerce. While there are a lot of things I would do differently within the code the contributions section on their website makes it very worthwhile for a scalable ecommerce website.
     
    Weirfire, Apr 20, 2009 IP
  10. e2developer

    e2developer Peon

    Messages:
    31
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    If you dont want to use sessions than you can manage data in temporary table and afer that you can restore data
    from temporary tables to main tables. But personally i will suggest to use sessions.
     
    e2developer, Apr 20, 2009 IP