Coder Social home page Coder Social logo

piggybak_taxonomy's Introduction

Piggybak Gem (Engine)

Modular / mountable ecommerce gem. Features:

  • Configurable tax methods, shipping methods, payment methods

  • One page checkout, with AJAX for shipping and tax calculations

  • Order processing completed in transaction, minimizing orphan data created

  • Fully defined backend RailsAdmin interface for adding orders on the backend

  • Piggybak 0.7.1 is compatible with Rails 4.1, 0.7.0 is compatible with Rails 4, and earlier version compatible with Rails 3.

Announcements

  • Variants were recently changed to sellables, to provide the opportunity for advanced variant support via an extension.

  • Significant recent rearchitecture has been applied to the order line items. Stay tuned for the documentation.

  • Review the new installation process below.

Installation

  • First create a new rails project: rails new webstore

  • Config your database.yml and create the databases

  • Add to Gemfile:

      gem "piggybak"
    
  • Next, run bundle install:

      bundle install
    
  • Next, run the piggybak install command:

      bundle exec piggybak install
    
  • Add piggybak/piggybak-application to your main application.js:

     //= require piggybak/piggybak-application
    

See the raw documentation to read more about the integration points and product configuration in Piggybak.

TODO

  • Ensure that changes in nested addresses are recorded on order notes.

Copyright

Copyright (c) 2014 End Point & Steph Skardal. See LICENSE for further details.

piggybak_taxonomy's People

Contributors

marcamillion avatar timcase avatar

Watchers

 avatar

piggybak_taxonomy's Issues

Crash with RailsAdmin 0.3

I still don't know how to use piggybak_taxonomy, though I get the idea. The demo data dump is a postgres dump, so I tried Postgres.app, and I think I got that working, though it's buggy, then the demo wants to run in production mode and throws errors about favicon.ico--

So I just advanced the piggybak gems in my project and tried to figure it out there. Here's the relevant part of Gemfile:

gem 'rails', '3.2.8'
gem 'exception_notification', '>2.6.1'
gem 'jquery-rails', '
>2.1.3'

gem 'bundler', '>1.2.2'
gem 'cancan', '
>1.6.8'
gem 'carrierwave', '>0.6.2'
gem 'devise', '
>2.1.2'
gem 'fog', '>1.7.0'
gem 'formtastic', '
>2.2.1'
gem 'formtastic-bootstrap', '>2.0.0'
gem 'haml', '
>3.1.7'
gem 'mysql2', '>0.3.11'
gem 'piggybak', '
>0.6.24'
gem 'piggybak_variants', '>0.0.11'
gem 'piggybak_coupons', '
>0.0.12'
gem 'piggybak_taxonomy', '~>0.0.6'

gem 'piggybak', :git => 'git://github.com/piggybak/piggybak.git'

gem 'piggybak_variants', :git => 'git://github.com/piggybak/piggybak_variants.git'

gem 'piggybak_coupons', :git => 'git://github.com/piggybak/piggybak_coupons.git'

gem 'piggybak_stripe', :git => 'git://github.com/piggybak/piggybak_stripe.git'
gem "rails_admin", '~>0.3.0'

But I'm still screwed--when I click on on Admin > Sellables > Add New it says

NoMethodError in Rails_admin/main#new

Showing /Users/scott/.rvm/gems/ruby-1.9.3-p286@biogrammatics/gems/rails_admin-0.3.0/app/views/layouts/rails_admin/_secondary_navigation.html.haml where line #3 raised:

undefined method `description' for nil:NilClass
Extracted source (around line #3):

1: %ul.nav.pull-right
2: - actions(:root).each do |action|
3: %li= link_to wording_for(:menu, action), { :action => action.action_name, :controller => 'rails_admin/main' }, :class => 'pjax'
4: - if main_app_root_path = (main_app.root_path rescue false)
5: %li= link_to t('admin.home.name').capitalize, main_app_root_path
6: - if _current_user
Trace of template inclusion: /Users/scott/.rvm/gems/ruby-1.9.3-p286@biogrammatics/gems/rails_admin-0.3.0/app/views/layouts/rails_admin/application.html.haml

Rails.root: /Users/scott/railsdev/biogrammatics

Application Trace | Framework Trace | Full Trace
Request

Parameters:

{"model_name"=>"piggybak_taxonomy~sellable_taxonomy"}

Edit / Create Hide

Hide sellable create & edit button on taxonomy edit pages. On the Navigation Node edit page in admin, one should not be able to “Create” or “Edit” sellables.

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.