Questions tagged [spree]

Spree is a complete open source e-commerce solution for Ruby on Rails, freely available for commercial use under the terms of the New BSD License.

Spree is a complete open source e-commerce solution built with Ruby on Rails. It was originally developed by Sean Schofield and as of November 2015 was no longer maintained.

On January 2016 new core team maintains the project and new roadmap is announced.

License

Spree is released under the New BSD License.

Links

Legacy Links

1714 questions
51
votes
12 answers

An error occurred while installing mysql2 (0.4.8), and Bundler cannot continue

How can I fix this error in ruby on rail. source 'https://rubygems.org' git_source(:github) do |repo_name| repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/") "https://github.com/#{repo_name}.git" end # Bundle edge Rails…
user8387785
19
votes
5 answers

Rails, how to migrate large amount of data?

I have a Rails 3 app running an older version of Spree (an open source shopping cart). I am in the process of updating it to the latest version. This requires me to run numerous migrations on the database to be compatible with the latest version. …
akaDanPaul
  • 283
  • 3
  • 9
17
votes
1 answer

Spree overriding helper method

I'm trying to overriding a helper method of base_helper.rb by using this: module Spree module BaseHelper.class_eval do def taxons_tree(root_taxon, current_taxon, max_level = 1) ..... end end end It's not working for me. Anyone…
lnguyen55
  • 737
  • 6
  • 16
17
votes
3 answers

Adding Routes to Rails' Spree E-Commerce

I just recently upgraded to 1.0.3, and the routes.rb file in my config/routes folder seems to ignore all my custom routes. MY routes.rb JollyStore::Application.routes.draw do # Mount Spree's routes mount Spree::Core::Engine, :at => '/' root…
Trip
  • 26,756
  • 46
  • 158
  • 277
14
votes
1 answer

What does this Rails Engine code mean: config.to_prepare &method(:activate).to_proc

I'm working with Spree, which uses Rails engines extensively. A common pattern I find is this. However I have trouble understanding this code. class Engine < Rails::Engine def self.activate ... end config.to_prepare…
Jack Kinsella
  • 4,491
  • 3
  • 38
  • 56
14
votes
3 answers

Rack middleware "trapping" stack trace

I have a piece of Rack middleware that loads a tenant, via subdomain, and applies some default settings. The middleware, while not pretty, does it's job fine enough. However, when an exception is thrown within the app the middleware "traps" the full…
bennick
  • 1,879
  • 15
  • 21
13
votes
1 answer

What is the SASS equivalent to *= require_self and *= require_tree .?

I am trying to solve a problem in my Rails 4 + Spree app and a post suggested me to convert my all.css file to all.scss (sass). How do I convert *= require spree/frontend *= require_self *= require_tree . to @imports? I did the @import…
Donato Azevedo
  • 1,378
  • 1
  • 13
  • 22
13
votes
1 answer

spree-paypal-express fails with "Gateway Error: translation missing: en.the_totals_of_the_cart_item_amounts_do_not_match_order_amounts "

I'm using spree 1-2-stable, and I'm using spree-paypap-express 1-2-stable branch (tried with master too but failed again). When I try to checkout an order and select PayPal express as the payment method it fails with an error: "Gateway Error:…
Pavel Nikolov
  • 9,401
  • 5
  • 43
  • 55
13
votes
2 answers

Spree as multilingual/bilingual site

Is spree suitable for multi/bilingual e-commerce site? By default it supports internationalization (i18n - http://guides.spreecommerce.com/i18n.html). It gives an impression that spree is bilingual friendly but I'm missing one piece of the puzzle.…
Munhitsu
  • 1,014
  • 1
  • 9
  • 16
12
votes
1 answer

Adding a step to the Spree checkout process

I'm trying to add an extra step to my Spree 1.2 store which will allow a customer to create a subscription. I've inserted the step, and rendered the correct view, but when the user clicks 'save and continue' the next step is rendered, but nothing is…
purpletonic
  • 1,858
  • 2
  • 18
  • 29
11
votes
2 answers

class_eval and open classes

I am using Spree, and Spree has a class called Order that looks like: module Spree class Order # class definition. end end In my own app, I have been customising Order like so: Spree::Order.class_eval do # customisations end My question…
Benjamin Tan Wei Hao
  • 9,621
  • 3
  • 30
  • 56
10
votes
1 answer

How to find current abstract route in Rails middware

Rails version: '~> 4.2.7.1' Spree version: '3.1.1' TlDr: How do I get route as /api/products/:id or controller and action of that route in a middleware of Rails 4 application. Details: I am adding a middleware in my rails app which is similar to gem…
Saurabh
  • 71,488
  • 40
  • 181
  • 244
10
votes
6 answers

Solidus vs Spree - which should be used?

I'm about to upgrade my small online shop based on old Spree version. I was planning to use newest branch 3.X, but after project being drop by SpreeCommerce company I was thinking to switch to Solidus (they seems to pay more focus more stability and…
Jakub
  • 733
  • 5
  • 20
10
votes
1 answer

Asset Path Error in Spree / Ruby on Rails

I am setting up my second "spree" store in a local development environment to work on an ecommerce project using the Spree gem for RubyOnRails. The first store works, but when I shut off the "rails server" for store1 and try to fire it up for…
mattcrowe
  • 414
  • 1
  • 5
  • 15
10
votes
1 answer

how to change the Spree default home page?

I want to change the root path of spree site to a static page. Can anyone please tell how can I change the spree default home page?
Nikhil Kathuria
  • 461
  • 6
  • 12
1
2 3
99 100