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

Purpose of ssi while developing dynamic web sites, Question: (a) List ...

Question: (a) List three types of looping statements in PHP. Give the corresponding syntax to illustrate your answer for each one of them. (b) (i) Give the two PHP variab

World wide web, The World Wide Web is defined as a "wide area hypermedia in...

The World Wide Web is defined as a "wide area hypermedia information initiative amongst to provide universal access to big universe of documents". World Wide Web gives users on com

We need help for simple php online ordering system, We need help for Simple...

We need help for Simple php online ordering system I need a basic online ordering system for restaurant which is very user friendly, both client side as well as back panel. It m

We want help in codeignier script change easy, We want help in Codeignier S...

We want help in Codeignier Script Change Easy Project details as follow- To add three simple modifications for an existing CMS script. The script to alter is a modified version

Adding css style to html page, Step 1: Click on Window Menu Step 2: choo...

Step 1: Click on Window Menu Step 2: choose CSS Styles Or Click onto CSS Styles in the "Launcher" Step 3: Click on New to generate a new CSS style Step 4: select the Ty

Need to create poker site with bitcoins, Need to create Poker Site with Bit...

Need to create Poker Site with Bitcoins We want to customize the poker software, we need it run both on web site (html5) and as desktop software -We want to customize Affilia

I want a web expert for a site, I Want a web expert for a site I have a ...

I Want a web expert for a site I have a website built as well as hosted on VPS need your expert decision to convert that to go daddy's Linux hosting server keeping all the featu

Explain the design features of web site, Evaluate the features of the MU we...

Evaluate the features of the MU website in terms of its usability, legal requirements and ease of search by search engines. You need to make use of relevant usability evaluation te

We are in need of javascript developer for game-changing, We are in need of...

We are in need of JavaScript Developer for game-changing Language App VidaLingua is the number one developer of multilingual dictionaries for mobile. Our apps are category leade

Need help of seo for existing website, SEO FOR EXISTING WEBSITE We are s...

SEO FOR EXISTING WEBSITE We are seeking an expert who will do the SEO for an existing website. The website is hosted in a third party server not ours. The client wants his websi

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