Flash eCommerce v2 help file.
This is the really cool ecommerce apllication. It has an add to cart and check out function and it can support any number of product categories with subcategories.
In this version admin panel is added.
New features
Admininstrator panel with :
- administrator login
- New product category
- Remove product category
- New product
- Remove product
- New admin
- Remove admin
- View/delete pending orders.
More efficient actionscript.
Notification when add to cart a product.
Logo container on stage.
Fixed a few bugs in the code.
Added scrollbar functionality in product details.
Stores all order to an xml for easier process of pending orders.
Requirements
Php- mySql Server (for storing customer information).
Installing
First step : Open Connections/databaseConnection.php and cheange following lines with yours.
$hostname_mySqlConnection = "localhost";
$database_mySqlConnection = "test";
$username_mySqlConnection = "root";
$password_mySqlConnection = "";
usually these values are the same in a testing server (like wamp wich is free!)
Using phpmyadmin (can be found in
http://localhost/phpmyadmin/) or a similar tool follow these steps
Second step : Create a database called ecommercedatabase
Third step : From phpMyAdmin go to import and browse for database.sql . You have created 3 tables wich will store admins username/passwords , users details and users username/passwords. By default an admin is created with username : admin and password :admin and a user with username : demo password : demo
Now you are ready to go. Open admin panel (
www.yoursite.com/admin/admin.html) and add products, product categories and so on (remember to create a new admin and delete the default one)
*For any other question contact me via email. I will be glad to help you.
Incase you don't want to use admin panel to add / remove products and products category, you can edit directly xml files.
First you have to modify the mainConstructor.xml file.
1. image 1 (mainConstructor.xml file)
The mainConstructor.xml file is the constructor of the application. It holds the labels of the menu and the links.
In the second line you can find these string : <products numCollumns = "6" currency = "euro">
numCollumns is the horrizontal number of products the application will show and currency is the currency sign you want to use. Replace euro with usd if you want the sign $ or live it this way for the classic euro sign.
3rd line represends a product category. Label is the label of the menu in the application and data is the file which holds all products in this category.
In case you want a sub category just delete the data attribute and use the structure of line 6 and 7 which is exactly the same with line 3,4,9,10
In conclusion this xml file creates 5 product categories with 1 sub category :
Desktop pc
Notebooks
Monitors
TFT 15'' - 17''
TFT 20'' +
Printers
Peripherals
Now that you have created all categories and subCategories its time to create every xml file for all of these categories.
Suppose that you have created a category Desktop Pc and you provided an xml file with the name desktop.xml ( <product label="Desktop pc" data ="desktop.xml" ></product> )
2. image 2 (desktop.xml file)
These lines of code are all the details of one product in DesktopPc category
code : The product Code of your product
label : The label of the Product
model : The Model of the Product
imageThumbnail : the thumbnail image of the product
imagePreview : the preview image of the product
description : A short description of the product
Lines 10-14 are specific details of the product, like Vga card, cpu type etc. By default there are 5 of them but if you want you can add more. Just copy paste
<detail label="......................." details = "................................................. ."></detail>
Just remember that the script print these details in the aplication from bottom to top. So if you want cpu type before chipset,put chipset 1st and cpu 2nd. Hope you got the idea.
All you have to do now is to repeat these steps for every product and you will end up with a ready eshop.