shopping-cart-lite
A lightweight JavaScript/PHP Shopping Cart
index.php --> cart.php --> checkout.php
There is no basic shopping cart and Braintree example code out on the Internet. This project aims to fill that void providing an example using PHP and Javascript.
Files and their purpose
index.php
: Minimalistic cart display and interactioncart.php
: Displays cart details and checkout page using Braintreecheckout.php
: Processes the transactionlib/braintree.php
: Add your Braintree configuration info herelib/cart_session.php
: Helper code that grabs cart cookie datajs/cart.js
: Helper Javascript methods for adding and remove items from the cart
Third-Party libraries used
Screenshots
###Index Page After Adding Items
###Shopping Cart - Paying with PayPal