Git Product home page Git Product logo

php-sbcs's Introduction

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/

php-sbcs's People

Contributors

anbarli avatar ganbarli avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

php-sbcs's Issues

Notice: Undefined index: SBCScart

Hi There

when uploading the script i get the below error?

Notice: Undefined index: SBCScart on Line 60.

could you advise how to fix?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.