Create a simple php shopping cart, PHP Web Programming

Assignment Help:

The system should be able to secure creating client accounts, integrate the notion of administrator and have a shopping cart.

You should use PDO class for communications with the database.

For this phase, we'll have to have a class for:

  • Applications
  • Clients/administrators
  • Shopping cart

 

You will have to update your database to integrate administrators. Use the same table as for clients. You should find a solution to avoid mixing up clients and administrators. The page index.php should have a new element, Add to cart button.

The button should allow an authenticated client to add an item to his cart.

The items should be stocked in a session variable to allow for displaying all the items in the cart to the client.

So you should have a new page panier.php (French for "cart") that will display the list of products selected by the client. From this same page, the client should be able to modify the quantity that will be set to 1 by default. If the client modifies the quantity to 8, for example, this quantity should be saved as well and displayed correctly when the page is refreshed.

The following message should be displayed in the upper part of the page: "Welcome First Name, Last Name".

As for administrator, we should once again use the client authentication form, but as long as administrators cannot create accounts for themselves, the accounts should be created in advance in the database.

To secure the password, it should be generated with the help of PHP "crypt" function including a unique salt for every user. This applies both to clients and administrators. For a client, it should be done automatically in the account registration form whereas for administrator it can be entered directly into the database.

The Add to cart button should allow displaying a page dedicated to the selected product, produit.php. You should use "regex" to rewrite the URTL dynamically for each of the products including new ones that could be created.

The name of the product should be included in the URL.

The Add to cart button should now add items in the session variable without refreshing the page (using AJAX). A message confirming that the item has been added to the cart should be displayed.

AJAX should be used as well for creating client accounts.

When a client enters his e-mail, we should validate with AJAX if the e-mail is available and does not exist in the DB.

A message in green should appear to the right of the form if the e-mail is available and a message in red if not.

To secure the account, we should integrate a captcha.


Related Discussions:- Create a simple php shopping cart

Add layout cell, Next insert a layout cell for the Learn More regarding gra...

Next insert a layout cell for the Learn More regarding graphic. 1. In the Objects panel, click on the Draw Layout Cell icon. 2. In the Document window, draw new cell within t

Want help in wordpress oauth plugin, Want help WordPress OAuth Plugin We...

Want help WordPress OAuth Plugin We have written a Wordpress oauth plugin that delivers Wordpress authentication via our oauth provider at PlayGrid.com. The present plugin has a

You have to sculp a web site, You have to Sculp A web site Project Descr...

You have to Sculp A web site Project Description: I have a web site that has to be sculped and have a protection with watermart, we require to sculp the whole web site and re

Customization to cs-cart, We need some customized development for CS-Cart v...

We need some customized development for CS-Cart v4 Multi-Vendor Edition. We are taking a freight company to handle delivery of the goods. Vendors only require to pack the goods

We need someone to code for website, We need someone to code for website ...

We need someone to code for website Looking for someone to work on his website via team viewer Need to be expert in Following skills: a) C# b) AJAX c) LINQ to SQL

Need help for telerik controls integration into ie8, Need help for Telerik ...

Need help for Telerik Controls Integration into IE8 We are in search of an experts at integration telerik controls into IE8. We have experienced a few issues as well as we would

I am seeking someone that will build a very similar website, Rap Genius Clo...

Rap Genius Clone I am seeking someone that will build a very similar website as (though the content will be very different). The functionality will pretty much be the similar (u

Develop an ecommerce website in the optical industry, Develop an ecommerce ...

Develop an ecommerce website in the optical industry that will allow customers to shop for frames upload/order prescriptions and have a shopping cart and pay. Need to look similar

Establish a database connection to a mysql server, Question: (a) What ...

Question: (a) What PHP code snippet is used to establish a database connection to a MySQL server using the MySQL improved API? (b) What are the advantages of using sto

Title tag, The only thing you need to concern yourselves with in the HEAD t...

The only thing you need to concern yourselves with in the HEAD tag (for now) is the TITLE tag. The bulk of the page will be in the BODY tag, as illustrated in Figure.

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd