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
    New to the CF scene
    Join Date
    Aug 2012
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    New website, Shop/store

    I'm creating this new website store for my father, I am sort-of a novice but he just really needs a store for his small business. The problem is he's only selling one product with alot of different colors, He just wants to make it so if he can click on a color and it will show the product in that color. But I will need to be able to know what color the customer picked, is this possible to do without creating a a different html for each one?

  • #2
    Regular Coder
    Join Date
    Jul 2012
    Location
    London
    Posts
    473
    Thanks
    4
    Thanked 86 Times in 86 Posts
    You could use a PHP records what colour the user clicked on using numbers, lets say

    Black = 1
    White = 2
    Red = 3
    ...

    Then you array these or what colours you have, then when the user selects the colour.

    http://www.mywebsite.com/store/product.php?id=1&color=1

    It will record it and send it to a text file, you can include into an admin panel

    using
    Code:
    <?php
      include("http://example.com/examples/counts.txt");
    ?>
    You understand? I hope this helped in some way!
    Last edited by tempz; 08-06-2012 at 04:31 AM.

  • #3
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,479
    Thanks
    6
    Thanked 981 Times in 954 Posts
    sosagotthat, be aware that an online store is a lot more than just a page where the product is displayed. You need at least an order confirmation page, a shipping/address form for the customer, and some kind of payment options. And this involves more than just static HTML pages, you need at least a server side script (e. g. PHP) to process the information, possibly even a database for storage and retreival of the information/input.

    Of course, if you’re just asking the customers to contact the vendor via e-mail an HTML page might suffice but I’ll tell you that it won’t generate a lot of sales like that. You need to make it most comfortable for people, and the most comfortable way is still to fill out a form and have a full overview over what has been ordered and which costs are due at any stage of the ordering process.

  • Users who have thanked VIPStephan for this post:

    sosagotthat (08-06-2012)

  • #4
    New to the CF scene
    Join Date
    Aug 2012
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts
    ok, well how do i set up a form for them?


  •  

    Posting Permissions

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