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
7
votes
4 answers

Is there a way to check if part of the URL contains a certain string

Is there a way to check if part of the URL contains a certain string: Eg. <% if current_spree_page?("/products/*") %>, where * could be anything?
Adam
  • 464
  • 1
  • 4
  • 13
7
votes
1 answer

Big Decimal Stored as 60.00, Returns as 0.0?

I am customizing a Spree 2.3 application in Rails 4. When I save a price.amount, it appears to save correctly in the database, but when I retrieve it, it is wrapped in the BigDecimal class and returns 0. How can I store, or retrieve, the correct…
steel
  • 11,883
  • 7
  • 72
  • 109
7
votes
2 answers

Assign a rendered partial to an instance variable

In rails 4, I want to render a partial (say the footer) on anywhere of a page. In home_controller.rb, I have this within a class: def spree_application @test = render :partial => 'spree/shared/footer' end When I go to the index page and…
Sylar
  • 11,422
  • 25
  • 93
  • 166
7
votes
2 answers

Spree 2.1 strong parameters

Is there a easy way to add a new permitted parameter to controllers in Spree without altering the defaults ? I'm trying to change the orders_params method in OrdersController.
Cassio Cabral
  • 2,652
  • 3
  • 23
  • 37
7
votes
1 answer

Spree replace default Image / noimage

I am working on a Rails project which involves Spree 1.3.2 and I need to change the default image (noimage) in Spree, but so far found no way to do it. I searched through the documentation, went through the admin section, but all failed. I have been…
Ziyan Junaideen
  • 3,270
  • 7
  • 46
  • 71
6
votes
2 answers

Spree: customize the key attributes of a product

Does anyone know if it's possible to add a new attribute to the set of key attributes (Name, Description, Permalink, Meta Description etc) of a product? The idea is that I want to have these attributes available when I create a product instead of…
trivektor
  • 5,608
  • 9
  • 37
  • 53
6
votes
1 answer

Bundle Install passes with no errors, but on visiting the site, I see an Error

If I run bundle install, the application passes, everything is properly installed. But if I reboot nginx, and visit the site, I see the Passenger Error message. Ruby (Rack) application could not be started Error message: …
Trip
  • 26,756
  • 46
  • 158
  • 277
6
votes
2 answers

Spree Dropdown boxes for variant option values

I'm learning Spree 3.0 and I have a setup a test shop that sells shorts. Shorts has multiple option types: Size, Color, Length I wanted to change the way it displays the variant options on the frontend from a radio checkbox to a drop down…
Wasabi Developer
  • 3,523
  • 6
  • 36
  • 60
6
votes
1 answer

Spree Guest email is saved

I have implemented phone verification in my Spree Application. So the user have to verify phone number first before placing an order, but once the user places the order as guest, the next time his email is stored and it goes straight to…
Aitizazk
  • 332
  • 1
  • 4
  • 16
6
votes
0 answers

Spree Payment methods gives errors with nitrous

Need help from someone a little more familiar with Spree and/or Nitrous than I am. I recently moved my work on a Spree store site from my mac (which died) onto a PC through Nitrous (I obtained the files I'd committed to Github). After a slew of new…
Gogglor
  • 115
  • 7
6
votes
1 answer

what's the most extensible/flexible FOSS e-commerce software? (or should I roll-my-own?)

I need to build an internal order entry and tracking system for a grocery store which requires many of the features of existing e-commerce systems, such as product catalog, customer_to_order relations/views, movement reporting, order statuses, etc. …
Tony
  • 625
  • 1
  • 6
  • 17
6
votes
1 answer

How to add new view to Ruby on Rails Spree commerce app?

A very basic question that I cannot seem to solve is how to add a new view to my Ruby on Rails Spree commerce application. What I want to do is have a link next to the Home link in the _main_nav_bar.html.erb and when you click it have displayed an…
user2609980
  • 10,264
  • 15
  • 74
  • 143
6
votes
2 answers

Rails 4 - strong parameters concept involvement in spree-2.1

How to add new fields for spree::user in Spree-2.1 + Rails4 ? Like my old customization: ========================== Spree::User.class_eval do attr_accessible :f_name, :l_name :gender validates :f_name, :presence => true, :length => {:maximum =>…
Raju akula
  • 1,255
  • 1
  • 13
  • 18
6
votes
2 answers

How to write tests for spree controller decorator?

I'd like to modify some things in the controller and test them using rspec. I want to create new action for Spree::ProductsController. This is what I've tried routes.rb resources…
benchwarmer
  • 2,764
  • 23
  • 25
6
votes
3 answers

Spree module decorator

I'm using Spree Commerce for my Online Shop. I want to change some behaviour during the checkout process, that is defined in app/models/spree/order/checkout.rb inside the spree gem. So I made a checkout_decorator.rb at the same point in my…
23tux
  • 14,104
  • 15
  • 88
  • 187