spree

Custom views not loading in production mode, but load in development

感情迁移 提交于 2019-12-11 20:25:37
问题 I'm creating a completely new frontend for spree (need a custom set of markup and JS, so Deface isn't a good option in this case). The views I override work fine in development but once I load it up in production it starts to load the views from the core and frontend gems All my overrides are located in app/views/spree/... But that is all ignored in production and is loaded from the default gems. I'm running Unicorn and Nginx on top. Anyone have the slightest idea what could be the case? This

Unable to replace spree default logo in spree 2.1.3

杀马特。学长 韩版系。学妹 提交于 2019-12-11 20:24:09
问题 Used firebug and inspected Spree default logo is coming from /assets/store/logo.png Checked in spree 2.1.3 Version Source code and found default logo is coming from /logo section. path : core/app/models/spree/app_configuration.rb preference :logo, :string, default: 'logo/spree_50.png' Trying to Override, the default logo using Spree:Config option. Spree::Config.set(logo: "store/logo.png") But it's still redirecting to the old image(spree_50.png) and I am unable to replace the default logo.

Serving static_assets with nginx instead of rails in rails 3.2 [closed]

半城伤御伤魂 提交于 2019-12-11 18:26:53
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I recently deployed a site based on the SpreeCommerce platform. I'm using nginx and would like nginx to serve my static assets. The problem I am having is that when a user uploads new photos for a product on the website the images appear to save correctly (the files are located on the server) but they do not get

Load Vendor Object By Name Parameter Extracted From The URL

眉间皱痕 提交于 2019-12-11 15:26:13
问题 I'm trying to create a route that link to the store page of each Vendor using Spree Commerce. The page should list the details (name, about us, etc), and the products of the given vendor. https://example.com/stores/vendor-one My routes.rb configuration : Spree::Core::Engine.routes.draw do resources :stores end My stores_controller controller : module Spree class StoresController < Spree::StoreController require 'vendor' def show @vendor = current_spree_vendor end end end My show.html.erb

Spree::OrderPopulator accessing outside of store

末鹿安然 提交于 2019-12-11 14:56:09
问题 On Rails 4.1 .. being new to Spree 2-3-stable and experimenting with various things. My test store works fine and now I would am trying and integrate it into my application which is a booking site. On my Bookings calendar I would like users to click on a booking link and have that auto populate their cart, then show their cart directly. So assuming I have a spree product, and a variant existing in the database, and the current_user is logged in (ie spree_current_user exists) .. I thought this

How to override a file that is causing trouble in Ruby on Rails Spree Commerce App?

陌路散爱 提交于 2019-12-11 14:16:27
问题 After having updated from Rails 3 to Rails 4 and installing the Bootstrap gem for Spree I get an error in app/views/spree/products/_image.html.erb . The page looks as follows after I click on a image of a product on the main page: NameError in Spree::Products#show Showing []/ruby/1.9.1/bundler /gems/spree_bootstrap-a529d6bb6db0/app/views/spree/products/_image.html.erb where line #1 raised: undefined local variable or method `image' for #<#<Class:0x000000070139c8>:0x000000068d7da8> Extracted

Gem Spree_i18n throws error on server startup: can not load translations

家住魔仙堡 提交于 2019-12-11 09:44:53
问题 Gemfile: gem 'spree', '1.2.0' #:git => 'git://github.com/spree/spree.git' gem 'spree_auth_devise', :git => 'git://github.com/spree/spree_auth_devise' # original repository not compatible at the moment, use fork # gem 'spree_i18n', :git => 'git://github.com/spree/spree_i18n.git' gem 'spree_i18n', :git => 'git://github.com/kares/spree_i18n.git' Application.rb: config.i18n.default_locale = :de Spree.rb: (initilizer) Spree.config do |config| ... config.default_locale = "de" end What else: i have

Spree - Adding multiple variants to cart on the same page

纵饮孤独 提交于 2019-12-11 08:12:50
问题 I'm using Spree for a ecommerece site, each product that will be sold comes in a large number of colors and most customers will want to purchase different colors of the same product (e.g. variants). I want customers to be allowed to add multiple variants of the same product on the same page, I currently have a list of variants with a radio button that allows a choice of variant and quantity to be purchased. Instead I just want a number of quantity boxes that default to zero so the customer

How to watermark images using Imagemagick?

夙愿已清 提交于 2019-12-11 05:42:51
问题 I thought I'd add this, as it took me ages to get it working and I've seen loads of people having problems with it. I'm trying to add a watermark processor to the images model in a Spree (Rails) app. I was getting errors such as: There was an error processing the watermark for stream composite: unable to open image No such file or directory @ error/blob.c/OpenBlob/2588 @ error/png.c/ReadPNGImage/3633 PaperclipCommandNotFoundError PaperclipCommandLineError 回答1: I added the following to RAILS

spree install error: “rails g spree:install --user_class=Spree::User” not doing anything

社会主义新天地 提交于 2019-12-11 05:28:27
问题 I have create a new rails app using this command: rails new store rails version is: 4.2.6 Ruby Version: $rvm rubies ruby-2.1.2 [ x86_64 ] ruby-2.2.0 [ x86_64 ] =* ruby-2.2.2 [ x86_64 ]` Following is the Gemfile: source 'https://rubygems.org' # Bundle edge Rails instead: gem 'rails', github: 'rails/rails' gem 'rails', '~> 4.2.6' # Use sqlite3 as the database for Active Record gem 'sqlite3' # Use Puma as the app server gem 'puma', '~> 3.0' # Use SCSS for stylesheets gem 'sass-rails', '~> 5.0' #