https://github.com/cartalyst/demo-cart
https://github.com/cartalyst/demo-cart
demo php shopping-cart
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cartalyst/demo-cart
- Owner: cartalyst
- Created: 2014-01-05T02:54:55.000Z (over 11 years ago)
- Default Branch: 6.x
- Last Pushed: 2019-11-24T21:47:18.000Z (over 5 years ago)
- Last Synced: 2025-03-26T02:51:08.178Z (2 months ago)
- Topics: demo, php, shopping-cart
- Language: PHP
- Size: 12.5 MB
- Stars: 63
- Watchers: 8
- Forks: 31
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# 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](https://cartalyst.com/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