|
E-Commerce - Using Javascript
There are many ways of getting an on-line shop from building it yourself, getting a host with a shop-creator 'wizard' or having one built by a specialist firm.
Here are some examples of what I mean... |
Attempt One |
My first ever attempt at a shop was inspired by finding a script on the CD of a web design magazine. It was all written in Javascript which meant absolutely nothing to me.
I spent hours and hours changing it here and there and by opening the files in Dreamweaver with the split code/design windows, I was able to see the layout and where the code applied.
By then inserting my own layout and some images I could make a shopping cart site which actually worked!
I have not touched it for at least 8 years and it still works. I just downloaded it from an old server and having done minor modifications to the link-back buttons, I have uploaded it into the same directory as the main learn2spin site. |
 |
| |
Summary
So basically what I did was to find something that worked and then added to it without disturbing the Javascript parts that I did not understand.
Then after I got a bit of confidence I could copy and paste chunks of script so that the design repeated down the page and then carefully change the script to bring in my own images and prices.
Taking Payment
The most important thing was to realise very early on in my web design career was that I would never build a site that asked for credit card details and if I did, it would not be possible to enter them in a form. You will find that this site constantly reminds you that it is not a real shop and also, in the form, I have made it so you cannot enter more than two digits.
See my next example - Mal's eCommerce >> |
|
|
|