Home
Softono
demo-cart

demo-cart

Open source PHP
61
Stars
31
Forks
2
Issues
6
Watchers
6 years
Last Commit

About demo-cart

Demo-Cart is a basic demonstration application for the Cartalyst Cart package, designed to showcase core e-commerce functionality within a Laravel environment. This tool illustrates essential operations such as adding and removing products from a shopping cart, updating item quantities, and applying coupon codes. It also demonstrates wishlist management, including adding items, removing them, and clearing the entire list. The application highlights advanced features like the implementation of various conditions, persistent storage of the cart to a database, and automatic synchronization of the cart state upon user login. While not a complete production application, it serves as an educational resource for developers to understand the package capabilities. Installation requires an active subscription to Cartalyst Arsenal and involves cloning the repository via Git, running Composer dependencies, configuring database credentials in the environment file, running migrations with seed data, and starting the local

Platforms

Web Self-hosted

Languages

PHP

Links

Cart Demo

This is a basic demo showing some of the functionality of the Cart package.

In this demo we are covering the following:

  • Adding a product to the shopping cart
  • Removing a product from the shopping cart
  • Update the item quantity
  • Apply a coupon to the shopping cart
  • Clear the shopping cart
  • Adding a product to the wishlist
  • Removing a product from the wishlist
  • Clear the wishlist
  • Usage of various conditions
  • Store the whole shopping cart on the database
  • When logging in we are syncing the shopping cart back from the database

Note: This demo is not a fully-fledged app. It's a demo, so we're not covering every possible scenario or completed every endpoint.

Installation

To install this demo, firstly you must be a subscriber of Cartalyst's Arsenal.

  1. Clone this repository by running git clone [email protected]:cartalyst/demo-cart.git on your CLI
  2. Run composer install from your terminal
  3. Run cp .env.example .env
  4. Run php artisan key:generate
  5. Setup your database credentials on the .env file
  6. Run migrations php artisan migrate --seed
  7. Boot up your server!

Demo users

Email Password
[email protected] password
[email protected] password
[email protected] password