Ecart for Rails 3.0 - An e-commerce cart
Ecart is a simple solution for integrating a cart when you are building an online store from scratch, and want to add this functionality
Ecart project integrates a cart to a rails app
Installing Gem
Include Ecart in Gemfile;
gem "ecart"
or you can install from latest build;
gem 'ecart', :git => '[email protected]:kurenn/ecart.git'
You can run bundle from command line
bundle install
Before installing
I'm assuming you have a Product model and index action on your rails app, but don't worry if that's not the case you can customize it as you like
Installing to App (using Generators)
You can run following generators to get started with Ecart quickly.
Install
Usage:
rails g ecart:install
This will generate several files that will handle all the cart logic (which you can customize later)
Don't forget to let know rails to load the lib directory
You can do so in the config/application.rb file
config.autoload_paths += Dir["#{config.root}/lib", "#{config.root}/lib/**/"]
Example of rails app using ecart
https://github.com/kurenn/ecart-example
Changelog
- Provide views for the cart
- Paypal express checkout integration
- Current gem v.1.0.0
- Released gem v.0.0.1
Contributors & Patches & Forks
- Abraham Kuri Vargas (@kurenn)
Future
- Add dinamic association with a model
- Update the price by fetching from DB
Credits
Abraham Kuri - [email protected]
Score me
You can +K my influence in Ruby on Rails on @klout
License
Copyright (c) 2011 Abraham Kuri Vargas
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/gpl.html.