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

I need experienced developer to build an audio recorder, HTML 5 Audio Recor...

HTML 5 Audio Recorder (Hourly or Escrow) I am seeking a talented fully experienced developer to build an audio recorder in HTML5 (WebRTC style). The audio recorder must work in

We are in need of magento developer, We are in need of Magento Developer ...

We are in need of Magento Developer A appreciated company, specialized in Web marketing is searching for a well skilful expert Magento developer Desired Skills are PHP, Magen

Need help in rails application ui development, Need help in Rails Applicati...

Need help in Rails Application UI Development I have an application that I have developed about 80% of. I need somebody to complete the job Component 1- Create a fresh UI to

Event handlers, An event handler executes segment of code depend on certain...

An event handler executes segment of code depend on certain events occurring in the application, like onClick or onLoad. JavaScript event handlers can be divided in two parts: non-

We are need of help in crowdfund5, We are need of help in Crowdfund5 I'm...

We are need of help in Crowdfund5 I'm in search of someone to build clone a site like Realtymogul.com The site is to function the similar on the front and back-end. The fi

We need a website expert for website template, We need a Website expert ...

We need a Website expert We have a website template We want to have an English version and add our own content in English and ftp to a server Desired Skills are MySQL Admi

Thead - tbody - tfoot, mentions that a group of rows are the header rows at...

mentions that a group of rows are the header rows at the top of the table. specify that a group of rows are body rows. specify that a grou

Make a page with a form which can be submitted on our phpbb, Make a page wi...

Make a page with a form which can be submitted on our Phpbb forum We consists a website with a Phpbb forum on it and we want to have a page created on the forum where people tha

I neeed help in cakephp project, I neeed help in CakePHP Project Good kn...

I neeed help in CakePHP Project Good knowledge of PHP. 1) Hands-on PHP based framework, Cake PHP 2) Demonstrable knowledge of web technologies including HTML, CSS, Javascript, A

Insert images in site, You will study two ways to add images in Dreamweaver...

You will study two ways to add images in Dreamweaver by using Dreamweaver's main menu and by using the Objects panel. 1. Click anywhere within the logo layout cell (the topmost

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