dabhitapan / PHP-SBCS

PHP Session Based Cart System is pretty simple and fast way for listing small amount of products.

Home Page:http://www.anbarli.org/PHP-SBCS/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PHP-SBCS

PHP Session Based Cart System is pretty simple and fast way for listing small amount of products.

This script doesn't include any payment method or payment page. This script lists manually added products, you can add that products to your shopping cart, remove them, change quantity via sessions.

Also this script is a good exercise to understand PHP session arrays.

You can easily add - remove items from shopping cart, all data stored in sessions and system not uses a database.

In source code, you can add - remove products manually, if you want you can add product id to code yourself. You have to know basic HTML for this. If you wish, you can code for database integration.

If you want to add same product to shopping cart more then once, system automatically update quantity of existing one.

When you submit "Give Order" button, form elements and order detail passed via form. You can code payment options here or you can change the forms action to another script page. If you wish, you can send form elements and order detail via email, or you can took them into a database table (do not forget to clean the variables, for example you can use mysql_real_escape_string).

For currency change, open root/index.php with text/HTML editor. You can change $currency symbol.

Table of contents

Change Log

For the most recent change log, please follow here. I try to add detailed release notes to each new release. Please remember to STAR this project and FOLLOW me to keep you update with this project.

Version History

v.1.6.2 / 22.10.2017

  • jquery version upgraded from 3.1.0 to 3.2.1 and script revised for working under https.

v1.6.1 / 21.07.2017

  • Minor update for showing total quantity.

v1.6 / 28.09.2016

  • PHP reporting set to E_ALL for easy debugging
  • PHP short open tags converted to <?php

v1.5 / 06.09.2016

  • Jquery updated to version 3.1.0
  • Footer changed
  • Modal bug fixed, now works with Jquery 3
  • GitHub page link added
  • Product listing with thumbnails example added

v1.4 / 04.09.2016

  • All system is now in one file
  • Bootstrap updated to version 3.3.7
  • Jquery updated to version 2.2.4
  • Bootstrap & Jquery files removed, CDN included
  • Modal page opens when cart is updated
  • Navbar fixed changed to navbar default
  • Offcanvas removed

v1.3 / 26.11.2015

  • For calculating total values with decimals, we made a minor update.

v1.2 / 31.10.2015

  • Item remove from basket function is completely changed. Now when you remove an item from basket, system changes its quantity to 0. And we don't list 0 quantity items in basket.

v1.1 / 01.10.2013

  • Initial Commit

What's included

Within the download you'll find only one file : index.php

Bugs and feature requests

Have a bug or a feature request? Please open a new issue.

Browser Support

  • IE 9+
  • Firefox (latest)
  • Chrome (latest)
  • Safari (latest)
  • Opera (latest)

License

PHP-SBCS is an open source project licensed under MIT.

Credits

Demo

http://www.anbarli.org/PHP-SBCS/

About

PHP Session Based Cart System is pretty simple and fast way for listing small amount of products.

http://www.anbarli.org/PHP-SBCS/

License:MIT License


Languages

Language:PHP 100.0%