Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-06-2012, 04:00 AM   PM User | #1
sosagotthat
New to the CF scene

 
Join Date: Aug 2012
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
sosagotthat is an unknown quantity at this point
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?
sosagotthat is offline   Reply With Quote
Old 08-06-2012, 04:26 AM   PM User | #2
tempz
Regular Coder

 
Join Date: Jul 2012
Location: London
Posts: 436
Thanks: 4
Thanked 80 Times in 80 Posts
tempz is an unknown quantity at this point
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..
tempz is offline   Reply With Quote
Old 08-06-2012, 10:43 AM   PM User | #3
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,602
Thanks: 5
Thanked 865 Times in 842 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
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.
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Users who have thanked VIPStephan for this post:
sosagotthat (08-06-2012)
Old 08-06-2012, 05:33 PM   PM User | #4
sosagotthat
New to the CF scene

 
Join Date: Aug 2012
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
sosagotthat is an unknown quantity at this point
ok, well how do i set up a form for them?
sosagotthat is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:28 PM.


Advertisement
Log in to turn off these ads.