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

Need long-term php developer for e-commerce product, Need Long-term PHP dev...

Need Long-term PHP developer for e-commerce product I'm seeking to work with a PHP developer in the UK who has experience working with custom software such as e-commerce product

Develop a javascript code to generate a pull down menu box, 1. Develop...

1. Develop a program to display a multiplication table. 2. Develop a code to generate a scrolling text in a text box. 3. Develop a JavaScript code to generate

Develope web app built with php, I have a web app built with PHP//node.js/ ...

I have a web app built with PHP//node.js/ backbone /MySQL/kinetic.js/ jQuery/canvas, and I would like to consult with someone with substantial experience in mobile game development

Need to setup free pbx asterisk on digital ocean, Need to Setup Free PBX As...

Need to Setup Free PBX Asterisk on Digital Ocean Project Description: Setup Free PBX on Digital Ocean Droplet using Centos 6.5. Skills required are Asterisk PBX, SQL, Linu

Needed web designer and web professional, Web Designer and Web Professional...

Web Designer and Web Professional I have a current small business website as well as need help changing it so that people can access it from a smart phone and so on. Flash, perh

Very simple workshop job and parts tracking program, Very simple workshop j...

Very simple workshop job and parts tracking program Project Description: I want some software that will be very simple for mechanics who are not computer savvy. i want it to

Macro to search patent information help needed, Macro to search patent info...

Macro to search patent information Objective To develop a macro that is accomplished to search through publicly available USPTO.gov database as well as count number of times fir

Explain sessions and cookies, Where is the sessions stored? Sessions ar...

Where is the sessions stored? Sessions are stored in server side & it is accessed by a unique id that is known as the session-id where each user-visitor is assigned when they a

We need help in the development of a peer lending website, Bitcoin Peer Len...

Bitcoin Peer Lending Website We look for the development of a peer lending website. Qualified candidates will receive a full spec, thus that that they can refine their bid of

Need help to make checkout page customisation, Checkout Page Customisation ...

Checkout Page Customisation 1) Clone process need to be exact same as the reference checkout site 2) Final product must be responsive to all devices Desired Skills are MyS

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