https://solidus.io logo
Join Slack
Powered by
# support
  • t

    Tom Wilson

    01/28/2022, 11:03 PM
    I have a kind of random question for this group. I was looking at something strange in my store admin page. I found that when creating orders via admin, if I entered the items first and then entered the customer address info, the order only seems to advance to the
    delivery
    state. That seems odd to me, because all the shipments have shipping methods selected, and there's no button I can press to move the order into
    payment
    state. This seems to be because the admin controller for the
    update
    action in CustomerDetails only calls
    next
    on the order, instead of calling
    order.contents.advance
    . That means the order moves from the
    address
    state into
    delivery
    as expected, but won't even attempt to move past
    delivery
    . That seems like an oversight, to me - so just trying to understand if there's some reason this behavior would be desirable. The line of code in question is https://github.com/solidusio/solidus/blob/master/backend/app/controllers/spree/admin/orders/customer_details_controller.rb#L34 - it seems like this should be
    @order.contents.advance
    instead.
    k
    • 2
    • 13
  • t

    Tom Wilson

    01/28/2022, 11:04 PM
    It's also totally possible that this is made worse by some decorator I've added or other customizations of my store - but I didn't have any explanation for why
    advance
    would be wrong here.
  • r

    Ricky

    01/31/2022, 10:55 AM
    Hi!! I want to integrate solidus and stripe, but I get a warning I’ve tried the following(https://github.com/solidusio/solidus_stripe), but do I need to do anything else?
    Copy code
    ## my trying
    1. bundle add solidus_stripe
    2. bundle exec rails g solidus_stripe:install
    3. Configure Stripe Setting at config/initializers/spree.rb
    ===
      config.static_model_preferences.add(
        Spree::PaymentMethod::StripeCreditCard,
        'stripe_env_credentials',
        secret_key: Rails.application.credentials.stripe[:secret_key],
        publishable_key: Rails.application.credentials.stripe[:publish_key],
        stripe_country: 'US',
        v3_elements: false,
        v3_intents: false,
        server: Rails.env.production? ? 'production' : 'test',
        test_mode: !Rails.env.production?
      )
    ===
    g
    • 2
    • 2
  • e

    Evgeny

    01/31/2022, 3:10 PM
    Hey all, Is there an easy way to make
    state
    and
    zip code
    address fields optional without breaking anything?
    a
    • 2
    • 2
  • a

    Andre Schweighofer

    01/31/2022, 4:17 PM
    Hi all, Is anyone successfully modifying / extending Solidus factories? I’m doing this simple thing:
    Copy code
    FactoryBot.modify do
      factory :user do
        name { "Jane Doe" }
        birthday { 21.years.ago }
      end
    end
    which seems to work, however in our CI env the load order seems to be different and I’m getting a
    gems/factory_bot-4.11.1/lib/factory_bot/registry.rb:24:in find: Factory not registered: user (ArgumentError)
    error. I already tried to ensure the gem factories are loaded before by requiring
    "spree/testing_support/factories"
    or calling
    Spree::TestingSupport::FactoryBot.add_paths_and_load!
    but that didn’t work / leads to different errors. Has anyone achieved this already?
    k
    • 2
    • 6
  • s

    Sajid Ali

    02/01/2022, 6:55 AM
    Hey
  • s

    Sajid Ali

    02/01/2022, 7:09 AM
    Hey Guys, I want to build an e-commerce application with solidus v3. I have confused about the solidus gem. I have some questions about it. Q.1 If I used the current version of solidus gem after some time when the new version updated then what happened to my application? Q.2 Current application I override the many things just like gems, view, controller, or helper when new the new version update and what happened with my application? Q.3 When the new version was updated I used these new gems used in the old version can you tell me my old application changed the configuration?
    g
    s
    • 3
    • 3
  • o

    Oleksandr Pozniak

    02/02/2022, 1:52 PM
    Started GET "/admin/login" for ::1 at 2022-02-02 15:50:03 +0200
    ActionController::RoutingError (uninitialized constant Spree::Admin::UserSessionsController
          
    candidate = constant.const_get(name)
                    
    ^^^^^^^^^^
    Did you mean? Spree::Admin::UsersController
          
    raise MissingController.new(error.message, error.name)
          
    ^^^^^):
    Help me please 🙂 I just setup project based on the guide in github gem readme
    e
    k
    • 3
    • 4
  • a

    Andrew

    02/03/2022, 11:00 AM
    has any one gotten 
    solidus_searchkick
      to work solidus 3.x?
  • a

    Andres Bernardi

    02/04/2022, 11:58 AM
    Hi ! I’m starting to use Solidus, and I want to create an Order from the admin using user’s Store Credit but I’ve got this error. I don’t want to use other types of payments, only via Store Credits. Can anyone help me? Thanks, Andrés.
    k
    • 2
    • 4
  • o

    Oleksandr Pozniak

    02/07/2022, 12:14 PM
    Hello! Someone can help me? How i can include Helpers to existing solidus records. I want to add new object methods, for reuse it in the solidus admin panels, but i can’t understand how i can turn it on for SpreeUsers table.
    ✅ 1
    s
    • 2
    • 38
  • t

    Tyler Kocheff

    02/07/2022, 4:57 PM
    Having a really weird issue all of a sudden with one of our Solidus sites and hoping maybe it's something someone's seen before. Seems to only be happening on certain products when no user is logged in, but adding the product to the cart results in a 422 error and in the rails log, we're seeing:
    Copy code
    Can't verify CSRF token authenticity.
    We use hatchbox for all our Solidus sites, and this is the first one we're seeing this on, and it's all of a sudden, so very odd to troubleshoot. Hoping someone might have some suggestions
    j
    • 2
    • 4
  • t

    Tom Wilson

    02/07/2022, 10:33 PM
    This is a bit of a hail mary, but figured I'd ask here. I've got an extension I'm using (
    solidus_product_assembly
    ) that happens to provide a
    deface
    override that I don't want. They're overriding some behavior on the shipment screen, and I'd like to disable that particular override. Is there a reasonable way to do that?
    c
    d
    k
    • 4
    • 24
  • t

    Tom Wilson

    02/07/2022, 10:34 PM
    Basically I want to override an override and tell it... no.
  • o

    Oleksandr Pozniak

    02/11/2022, 2:15 PM
    Hello! I’ve added new page, model, etc to solidus admin panel. and now i want to write RSpecs test for it, and unfortunately i got error. Maybe someone can help me? Thanks!
    ActionController::UrlGenerationError: No route matches {:action=>"index", :controller=>"spree/admin/dry_cleaners"}
    0) Spree::Admin::DryCleanersController GET #index shows a list of all dry_cleaners
    Failure/Error: get :index
    ActionController::UrlGenerationError:
    No route matches {:action=>"index", :controller=>"spree/admin/dry_cleaners"}
    Copy code
    # frozen_string_literal: true
    
    require 'rails_helper'
    
    describe Spree::Admin::DryCleanersController, type: :controller do
      let(:admin_user) { create(:user) }
    
      before do
        sign_in admin_user
      end
    
      describe 'GET #index' do
        let!(:dry_cleaners) { create_list(:dry_cleaner, 5) }
        it 'shows a list of all dry_cleaners' do
          get :index
    
          expect(response).to be_successful
          expect(assigns(:dry_cleaners)).to match_array(dry_cleaners)
        end
      end
    end
    ✅ 1
    k
    t
    • 3
    • 20
  • j

    jakemumu

    02/13/2022, 10:58 PM
    Had a strange issue today of a payment from through on the paypal gateways -- with what appears to be no order in our backend -- anyone know if there is a way to look up a payment with one of the pieces of data in paypal? I see
    number
    as a column on spree payments but i can't find what this matches to in paypal
    s
    • 2
    • 2
  • f

    fabian torres

    02/15/2022, 2:17 AM
    hi!!!
  • f

    fabian torres

    02/15/2022, 2:17 AM
    i'm new with solidus
  • f

    fabian torres

    02/15/2022, 2:17 AM
    and i have a couple of questions
  • f

    fabian torres

    02/15/2022, 2:19 AM
    how can i change the images ??? or where are they?..... it can??
  • f

    fabian torres

    02/15/2022, 2:38 AM
    oh and my rails version is 6.1
  • j

    Jared Norman

    02/15/2022, 3:18 AM
    The product/variant images are configured in the admin. By default they are stored wherever you configure active storage to store them. The other content on the site is handled by the rails asset pipeline.
  • d

    Daniel

    02/15/2022, 2:34 PM
    Just came across an issue with the solidus_sale_prices gem after upgrading solidus_auth_device . The auth gem removed paranoia as a dependency and the sale prices gem doesn't have one but "should" as it is still supporting 2.10 (btw: what's the EOL for 2.10?). Should I open a PR?
    j
    • 2
    • 1
  • o

    Oleksandr Pozniak

    02/15/2022, 3:10 PM
    Hello! Someone can help me? I want to add validation in the create user process on solidus admin side. When i tried to create user without role, it created successfully. How i can add validation on select user role? Thanks!
    ✅ 1
    • 1
    • 1
  • o

    Oleksandr Pozniak

    02/16/2022, 2:17 PM
    app/models/book.rb - model path app/models/spree/permission_sets/admin/book_users_permissions.rb
    Copy code
    require 'cancan'
    
    module Spree
      module PermissionSets
        module Admin
          class BookUsersPermissions < PermissionSets::Base
            def activate!
              can :manage, Book
              can :display, Book
              # can :manage, Spree::Order
              # can :manage, :all
            end
          end
        end
      end
    end
    And if i try to open Book page in admin side, i got Authorization Failure and if i uncomment
    Copy code
    can :manage, :all
    all works pretty good… What i did wrong? Thanks!
    e
    • 2
    • 12
  • d

    Duncan Akello

    02/18/2022, 4:03 PM
    Greetings Team, I recently started experimenting with Solidus, I have one question though, I tried running it on rails 5 and the error message stated I have to relinquish active storage for paper clip, however on rails 6 I have one challenge, how do I overide the javascript assets using webpack ? [6:52 PM] When do we expect to be able to run it on rails 7, in other words, can someone assist me with a popular configuration for solidus
    k
    • 2
    • 2
  • g

    Gustavo Iglesias

    02/22/2022, 4:21 AM
    Hi Team, has anyone managed to run solidus with
    docker-compose
    I'm kinda new to it and ruby as well, but I've been tasked to get this project up and running, any help here is highly appreciated. I've cloned the repo from: https://github.com/solidusio/solidus and removed the
    MYSQL_VERSION
    so instead I use postgresql only. when checking for the logs of the container I can only see:
    Copy code
    The Gemfile's dependencies are satisfied
    and the containers are up and running, but when going to the browser i get an
    ERR_EMPTY_RESPONSE
    🤔 what can i be missing here?
    j
    w
    • 3
    • 14
  • r

    Regnauld Ethan Fane Buntario

    02/22/2022, 5:44 AM
    Anyone else having problem opening the API docs? https://solidus.docs.stoplight.io/ I’m getting this error
    j
    k
    • 3
    • 2
  • s

    Sajid Ali

    02/24/2022, 11:18 AM
    Hey, Any extension in solidus for favorite/like_and_dislike functionality?
    Copy code
    gem 'acts_as_favoritor'
    alternate this gem?
    m
    • 2
    • 1
  • m

    Manu

    02/24/2022, 8:45 PM
    Hi everyone! I’m giving Solidus a try after a few successful Spree experiences. My problem is I’m trying to use the Solidus Virtual Gift Card extension on a Solidus 3.1 / Rails 6.1 app but I’m getting the error below. Any workaround? Really need a gift card feature on my e-commerce app. Thanks!
    Copy code
    Bundler could not find compatible versions for gem "solidus":
      In snapshot (Gemfile.lock):
        solidus (= 3.1.5)
    
      In Gemfile:
        solidus (~> 3.1)
    
        solidus_virtual_gift_card was resolved to 1.0.1, which depends on
          solidus (>= 1.0.0, < 1.2.0)
    s
    c
    • 3
    • 4
1...111213...39Latest