Creating a Simple Shopping Cart Application - Step 1 - Creating the Database and Shop Window

blah

In this series of posts we are going to build a simple shopping cart application. To do this we will depart from the tennis club application we have been building and create a new laravel application. Follow the steps from the getting started section to create a new laravel application and ensure the Infyom generator [...]

Read More...

>

Creating a Simple Shopping Cart Application - Step 2 - Adding a Navbar and Cart

blah

In this post we will extend the functionality of the shop window with a navbar showing the number of items in the cart and two navbar buttons to empty the cart or proceed to the checkout page. Edit the file resources/views/products/displaygrid.blade.php and add the following code a the top of the page after the @section('content') [...]

Read More...

>

Creating a Simple Shopping Cart Application - Step 3 - Loading the number of Cart Items from the session and clearing the cart

blah

The cart is now working well and the cart contents are stored in a session so even if the user leaves the page the information will not be lost. When we created the page in step 1 we included a div called 'cart' which would indicate the number of items in the cart this was [...]

Read More...

>

Creating a Simple Shopping Cart Application - Step 4 - Adding a Checkout Order Form

blah

In this step we need to review the contents of the cart before supplying additional information and placing the order. The following action can be added to app/Http/controllers/scordersController.php. It will pull each item from the cart into an array called $lineItems. The cart only contains a productid and quantity for each line item of the [...]

Read More...

>