Sunday, 3 May 2009

CW2: Shopping Cart not working in IE

Recently changed the url forwarding of my domain to mask, so that the user will be able to see only one domain name instead of the long domain name that was used. However implementing this part created problem, as the shopping cart was not working when the items were being updated. shown below.


Searching online for the solution I found this article whic explained it well.

http://www.ekmpowershop.com/support/userguide/urlmasking_and_uids.asp

Thursday, 30 April 2009

CW2: Validate Register Page

When the user is directed to the register page, this is due for the new users of the website, they will need to register and log-in to the website before they can purchase any item.


In Dreamweaver there is a facility from the data menu to insert records from the form directly into the database, however this did not validate data, showne below is the form used for registering new users, it was not designed because it was still in testing stage.




When the user clicked the insert record button without inputting the necessary fields, it did not give any warning, and instead gave this error.



To validate this page, another webpage was created, without using the template, as using the template interferred with the javascript function validation,


The form from the webpage is transferred to an asp page, consisting only of VBscript code , this asp page was specifically used to get the form field values from the other page and then save the data in the database.






The development of the page is shown above, without the use of template as it created problem with the javascript , when testing the page, it validated the fields shown below



CW2: Problem solving logging session

After creating a login form, for users to log-in before they are able to access the checkout page. The user was not able to return to the checkout after going to the shopping cart page, as the login session did not save the log-in details when the user logs-in.




This was done manually, throught the help of books and online resources, however having looked at the google groups for answers, there was mention of using the Dreamweaver facility of creating login-form as well as restricting users.












Under the data menu there is the facility of creating restrict users selection, this automated a lot of the work.



As stated earlier the manual way of creating the login session, it was not properly initialised, so the Dreamweaver facility provided a much better way to carry out this task.










The page shows a log-in form that was initialized by Dreamweaver, the form fields had to be created manually, textfields, labels, etc but the coding was handled by Dreamwever, where options were given to choose the table to authenticate the users who log-in,









By creating the log-in and restrict users, the session is realted, and much quicker to integrate.

CW2: Google Analytics

Google Analytics a useful tool to get reports on how the website traffic is getting.

It gives detailed information on the traffic generated for the website.




It shows the traffic the website has gotten each day month by month, this is shown graphically on the dashboard. It also shows the number of visits.



A pie chart shows the different methods of accessing the site, which states direct traffice, search enginges, and referal sites.

Tuesday, 28 April 2009

CW2: Problem email not working

After creating the order page, the email is sent to customers, about the order but it was not working instead it gave this error.

Mail was Sent to your user from cctmdev2
Microsoft VBScript runtime error '800a01ad'
ActiveX component can't create object: 'CDONTS.NewMail'
/mim0444/coursework2/Post.asp, line 60

Monday, 27 April 2009

CW2: Problem Solving shopping Cart quantity


There was a problem with the shopping cart quantity, as it expected values which are not proper quantity like -negative numbers, decimal values, and also very large numbers. Message was posted on google groups for help in this area.





The answer posted was by me, as I had put javascript code to validate the quanity, however it gave another error later that was not showin the shopping cart page correctly after the validation occured.

So to make things simple, I have implemented a list box, loaded with values, with the list box the user will not be able to input any kind of wrong values.

in the name field this is put: "localCart(CARTPID, i )"


This sets the quantity field to default 1,


Then in the next field this is put: localCart(CARTPQUANTITY, i )


Gets the quantity from the VB Script variable. Then in the options pre-loaded values are put, from 1 - 5.


Having researched the market area, in one transactions it is very rare to have more than one 9 quantity for a product, espcially in this clothing area, for customers.


Shopping car which has the quantity list box is shown below.



CW2 Creating shopping Cart

To create the shopping cart first a table was created.







The table has columns, for product description, price, quantity, total, and the picture.


Then the fields were set, it includes hidden fields, like for the quantity field, as well ordertotal.


It was developed according to the process shown on the UltraEasy Shopping Cart hosted at http://cctmdev2.londonmet.ac.uk/WebthangTutorials/shop_cart/uecart_12.asp



Code used was provided by the webpage hosted above. Changes were made at necessary parts to equip with the webpage.



Shopping cart shown below.







Creating the image field as well as the delete option, not provided in the UltraEasy Shopping Cart


First additional CONST needs to be declared

CONST CARTPICTURE = 4

Then it is called from the product details page by

picture = TRIM(Request("picture"))

Added to the shopping cart by

localCart(CARTPICTURE, i) = picture

Finally putting the img field with the code provdied,

( localCart(CARTPICTURE, i))%>

In the img tag it's written item from 'add item to cart' so it containts the field from VB script.

Creating the delete option

For the delete checkbox code was taken from the textbook, in the checkbox field name this is put.

localCart(CARTPID, i )

In the update quantity part of the VB Script, this code is inserted,

deleteProduct = TRIM( Request("pd" & localCart(CARTPID, i)))

Since the input name was given with pd, it is calling for the name in the trim request,

This is set at :

IF newQ = "" or newQ = "0" or deleteProduct <> "" THEN
localCart( CARTPID, i ) = ""

So either quanity field is blank, or zero, or the deleteproduct is checked it removes the record from the shopping cart which is "".

Showing the Total for each product

Total value of each product was not shown on the shopping cart, only the toal value of all products, so to show the customer the total value of each product, this code is put :

productTotal = ( localCart( CARTPPRICE, i ) * localCart( CARTPQUANTITY, i ) )

This is put right above the order total calculation, then the 'productTotal' is put in the column where the total of each product is shown.

Sunday, 26 April 2009

CW 2 Problem Solving

Contribution to the google groups for asking questions to problems and give answers.
This answer is provided in the google groups, for search enginge visibility.




Also question have been posted regarding going to the detailed page from the products page.

The products page which lists records from the database, should provide a link to go the only product that the user clicks.




Later the answer to the problem was found on the web, and I have posted the answer on the groups.




Getting to the detailed page shown here.









Thursday, 9 April 2009

CW 2: Google Analystics

For research purpouses google analytics is used, it provides information relating to the use of the website by customers, it provides a marketing tool for web developers. To get started first we have to sign-in to google, and then select the domain name that we are going to track, it then gives us a javascript code to put into the webpage so we can track.




Code provided by google to insert into the webpage.

As I have used a template to create webpages, the code was inserted into the template page, this was automatically updated to all the webpages from the template.





Inserting the javascript code into the template page.


After the code was inserted and clicking on the check status link to check the webpage status wether google analytics has been successfully installed on the webpage.



Tracking status information states it was successfully installed, and the data would be generated after 24 hr period.


Monday, 6 April 2009

CW2: Website changes


Following the recommendation by the shop managers the website changes were made the template was used to make a standard design interface.





The banner was reduced a little bit so that the images can fit bitter on screens. The images were the same but with more colour contrast and sharpness therefore making it more compelling. Desing was kept simple so as not to have confusion with the design structure again tables were used.




The new home page was created shown below with the template.




Images are bigger as recommended, also the images were a slideshow, clicking on them also created a hyperlink.


CW2: Interview of website evaluation

Interview was taken with two shop managers for evaluation of the website the first interview was with Mr.Shohag Rahman Manager of BD Enterprise Clothing Commercial Road, E1 1LA on 2/04/09:

Q 1: I have designed a website for selling clothes for people of Dhaka, Bangladesh. Please see my website and compare it to Laura Ashley website and also websites of Zuhair Murad , please let me know what additional features I need to add to the website ?

Mr.Shohag: The website seems ok, you need to have much better picture, the picture size is too small. The Versace website appears more clearer, you can use better fonts and have sharp colours. You should have facility where users can click on the image and a larger image would appear, so users can get a better view of the images.

Q 2: Do you think that the products that are being shown on the website are adequate for the customers I am selling to?

Mr.Shohag: I feel that you need to add more variety of products to the site, try and get more variety of products to customers so that they will not have to go another website.

Q 3: Does the home page have the theme for clothing in Dhaka, Bangladesh?

Mr.Shohag: The theme could be better had you used a different background colour.

Q 4: What changes I need to make in home page?

Mr.Shohag: Change background colour, and have larger images, also provide some information.

Q 5: Do you think any search functionality should be implemented on the website?

Mr.Shohag: Yes search functionality can be implemented to the site, if you have a lot of products.



Second interview was with Mr. Zulfir Mahmoud manager of Zeneth Fashion North Row, Mayfiar, London W1K 6DB on 03/04/09:

Q 1: I have designed a website for selling clothes for people of Dhaka, Bangladesh. Please see my website and compare it to Laura Ashley website and also websites of Zuhair Murad , please let me know what additional features I need to add to the website ?

Mr.Zulfir Mahmoud: Well your layout is not correct, as you have to add some links like contact us or about us etc. It does have the background like zuhair murad site and you can try and make your pictures a lot larger.



Q 2: Do you think that the products that are being shown on the website are adequate for the customers I am selling to?

Mr.Zulfir Mahmoud: Yes I think it’s adequate, but you should carefully monitor your demographic, and do extensive market research as fashion clothes changes constantly.


Q 3: Does the home page have the theme for clothing in Dhaka, Bangladesh?

Mr.Zulfir Mahmoud: It does capture the theme, especially the pictures under the banner.

Q 4: What changes I need to make in home page?

Mr.Zulfir Mahmoud: The first things you have to change is the image size. Have an appealing picture also put some information on the homepage, more details of the website and any offers you are giving for your products.

Q 5: Do you think any search functionality be implemented on the website?

Mr.Zulfir Mahmoud: Yes there should be search functionality as it can be quick to find products that match the users requirements.

Wednesday, 11 March 2009

MasterPage and web.config

After sorting the database connection, there was still some problems with the page loading. As it was showing the same error page given before. This time the page was tested without debugging.



The debugging is not enabled as it creates problem in the web.config file when it is deployed to a web server as it is mentioned in the dialogue box above. So I ran the without the debugging option.


There was also issue using the MasterPage on the webpages, masterpages maintain the consistency and functionality of the site however there were issues concerning the usage. Problem was if the asp.net page is being developed on 3.5 and .Net framework is different such as 2.0 then this problem occured. The master pages was not compiling on the web server. So the use of masterpages was a problem and had to be removed from the project.

It was mentioned that the web.config file should be removed from the website folder to prevent this error, however even after removing the web.config file from the site it still gave th error. The webpages were designed without the use of the Master Page.

database connection error

As I have uploaded the website online, it was giving the error that it was having a 'server error'






After getting the error I then sent Nick an email for the server error, as I felt that it was an error from the server side, as when it was tested on the local server on my machine it did not give any problems.




It was mentioned I configure the web.config file to see the problem. The web.config file was configured as it was mentioned on the error page, by putting customerror tag. After putting the tag and running the website it listed the error shown below.



The error shows that there is a problem with the database connection as it was not a valid path. After sending the error message to Nick I got the database path which was needed to connect to the MS Access database using OLE DB connection string.


The current database path was using the local host server connection, but when the website was uploaded on the server the connection path changed and it was no longer able to recognize the database path. Even though the database path was using the server tag = ~/database/mim0444cw1.mdb it could not locate the directory. So the full database connection path for the server to my database was used.





This solved the issue for the database connection.




















Sunday, 8 March 2009

Google search domain

First the domain will have to be submitted to google, and then the verification process stated that the meta tag will need to be inserted, which is shown below.









Then it showed that the site verification was complete on the google webmaster.










then after verifying the website, and submitting to google for the URL, it was then google search with the domain name of my site www.dhakawear.com and google search listed it on the search pages shown below.


Saturday, 7 March 2009

Implement scrolling records

In order to get the scrolling recrods to function, first the grid view was chosen, it is simple way to display records from the database, however it is restricted in its design features.







then the accessdatasource is configured to show records from the product table, here we will show products only for women.






the sql query is set to products where records with the gender value of 1 is retrieved.




Then to enable the scrolling of records the page selection from the gridview is selected.












Then the pager settings are configured to next, previous, last.




Friday, 6 March 2009

Task 3 URL forwarding-email-forwarding

For forwarding the email first the email account was created.




Email forward process is shown the email address that it would be forwarded to is displayed on the forward email




Forward domain URL to web server account.


Web page design

Master page designed will be used on all the web pages it is shown below.





Home page for the website is shown below.



A table is create to display record from the one category (women), another table to the left is created to shown (men) category.

Page to display the records from the database is shown below.




It uses the same master page , however it now uses gridview to display the records.

Monday, 2 March 2009

Page load error




Server error after configuring the web.config file there is problem with the database path.



Having developed the home page and testing it locally it was succesfully running. Shown below.
















After transferring the webpage to the university server it however gave this error.












As the page was working perfectly I did not figure out what the problem was, so I searched on the google groups and found posts relating to the page load error. I found out that the server supports Asp.net 2 after checking my website it was built on asp.net 3.5 which the server does not support so I had to configure the site to run on the asp.net 2 version shown below.








After configuring it and copying the updated site to the web server it gave no error.

Wednesday, 25 February 2009

Series of Tubes

This week it was extremely hot in dhaka, temperature was almost 40c and the humidity was about 75%, it felt like we were in an oven. Our neighbor was however trying to enjoy this heat like they do in western countries u know wear bikinis and hang around, well u can't actually wear bikinis in bangladesh, u can do it inside home,


Sorry for the pic quality, I was taking the pics with my 1.3pixel phone camera, and I couldn't get a good shot as I was hiding behind the curtains.


Former senator Ted Stevens of Alaska made this hilarious comment of the internet as a 'a series of tubes' the video has gone viral. The vid link is shown below.



Another incident which includes vice president Joe Biden

Biden Asks For Web Site's 'Number'
The vice president made a techie gaffe Wednesday as he asked an aide to tell him a Web site's "number," stirring questions online whether he knows how the Web works.

Tuesday, 24 February 2009

Problem solving

As the page was being developed in ASP.Net there was a problem in loading the page. However loading other pages like asp did not have any problem. It gave error when the file was saved as an aspx page.









After getting the error, I have checked the page for errors and also checked that the .Net framework was installed properly, as the problem came from either the IIS or the .Net framework as I couldn't find the solution to the problem, I had posted the problem on the ecommerce group message shown below.





Details of the problem posted on the message board can be found here.
http://groups.google.co.uk/group/ecommercemetro/browse_thread/thread/e3d4de879859ec4b

Consulted the book and online resources, it was mentioned that the IIS in certain situations is not intialized properly like installing IIS after installing .Net, even though both programs are installed and working properly it was intialized. To configure the IIS to recognize the .Net framework the process to configure the IIS was mentioned in an online forum shown below.
http://www.sitepoint.com/forums/showthread.php?t=596277

Configuring the IIS







Through the command prompt the aspnet_regiis .exe file will need to be run, the process is shown below.














After the installation the website did not give errors when compiling the asp.net pages.









Server error for dynamic page







Having connected the database to the asp.net page and running it locally gave no problem at all.














Now after posting the files on to the webserver it gave the following error.











I have also posted the problem on the ecommerce groups link is given below.


http://groups.google.co.uk/group/ecommercemetro/browse_thread/thread/3c25c7a71db124ac?hl=en


Friday, 20 February 2009

Website Theme research




Website theme to be used for the clothing store would be a stylish designer store, targeted to specific demographic. Designer clothes which are the top of the list for celebrity's to wear in events are from top fashion designers, top companies.












Versace had a interesting and classic looking themed website which included videos and a lot of flash animation.








Zacposen had a very good home page, it showed the quality of the website the product and where the product is appealing to.




Another brilliant website was by Zuhar Murad, it had the same classic look as the fashion website specifially targeted to celebrity.