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 help in ruby or python developer, Need help in Ruby or Python develope...

Need help in Ruby or Python developer with knowledge of MySQL and AWS for proof of concept Needs description our start up is in search of a back-end developer to create a min

Pre tag, This tag is utilized to present the text precisely as written in t...

This tag is utilized to present the text precisely as written in the code, by including whitespace characters. This is terminated by a tag.  Take the example illustrat

Ordered lists, Lists with numbered items are known as ordered lists.  They ...

Lists with numbered items are known as ordered lists.  They are utilized while the items in the list have a natural order. They can also be utilized when the number of items in the

We need a back-end programmer, We need a back-end programmer My name is ...

We need a back-end programmer My name is David from the Netherlands as well as I am in the middle want of developing a site with HQ drum tutorials with the option do offer it in

Want help in website creation, Website creation I would like to get an c...

Website creation I would like to get an concept of price if I ask you to create a simple website with wordpress, Job description- WORDPRESS Web development project type- New

Change quantity button cannot be functioned, error_reporting(0); session_...

error_reporting(0); session_start(); header(''Content-type: text/html; charset=utf-8''); include_once(''../../xajax_core/xajax.inc.php''); // ?? xajax $xajax = new xajax()

Seeking web developer/programmer for unique lead gen website, Seeking Web D...

Seeking Web Developer/Programmer for unique lead gen website 1) potential customers come to website and post services they need 2) providers make offers to post 3) both cu

We need to fix broken links in wordpress, We Need to fix broken links in Wo...

We Need to fix broken links in WordPress Looking to wordpress expert for fix links errors. I found it in mysite on wordpress afterward scanned Xenu program. Desired Skills ar

I need help to make hotel booking site, I need help to make Hotel Booking S...

I need help to make Hotel Booking Site - GDS Integration We are building a hotel booking site through GDS integration. We wish to grow very quickly to test concept as well as op

How to work in dreamweaver, Where & how to open Dreamweaver? Step 1: Cli...

Where & how to open Dreamweaver? Step 1: Click on Start button Step 2: choose Program Step 3: Choose Macromedia Dreamweaver Step 4: Click on Dreamweaver You will get

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