Help to create shopping cart

Discussion in 'PHP' started by mahiraj, Oct 24, 2007.

  1. #1
    Hi All,

    I am making a shopping cart using php. IN admin part i have a option "add products" to do it i have a form all of the options will added into the database.
    but how will i add the "image of the product" part .... i mean 'upload the image option i want to create "
    please help to do this.

    THANKS
     
    mahiraj, Oct 24, 2007 IP
  2. Indian_Webmaster

    Indian_Webmaster Banned

    Messages:
    1,289
    Likes Received:
    61
    Best Answers:
    0
    Trophy Points:
    0
  3. tonybogs

    tonybogs Peon

    Messages:
    462
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #3
    This can be based on the products id.

    Lets say the products id is 1234 ... The image might be /images/products/1234.jpg

    When you add a product to the shopping cart youll have 1234 as aforeigh key in a shopping carts table. Use this key to find the image.

    Hope this helps :)
     
    tonybogs, Oct 24, 2007 IP
  4. RingBoxer

    RingBoxer Peon

    Messages:
    182
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Are there big reasons for creating a shopping cart from scratch? Now there are a lot of shopping cart both free and paid with all source codes.

    On my opinion you can get these codes and just modify them. For example, you can get shopping carts at http://www.hotscripts.com.

    Personally I like new shopping cart Avactis. You may get their codes free of charge and modify as you want.
     
    RingBoxer, Oct 25, 2007 IP