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

    Bastian

    04/25/2022, 10:16 AM
    Good morning! Can someone help me to find out for to add multi language support to my shop? Things like Product and and description, as well as additional properties need to be translatable in 5 languages. I found this: https://github.com/solidusio-contrib/solidus_globalize, but it does require ruby 2.4. Maybe someone has tried to make it work with a recent version of ruby? Or possibly there is another way to do this all toegther?
    s
    • 2
    • 9
  • v

    Vlad Danciu

    04/25/2022, 12:07 PM
    I’m using
    if ENV['RAILS_ENV'] == 'production'
    in
    <http://config.ru|config.ru>
    to configure the unicorn-worker-killer gem but the test evaluates to false for me (in console the env reads correctly). Any ideas what to do?
    • 1
    • 1
  • t

    Tyler Pulse

    04/25/2022, 4:18 PM
    I am going through the user onboarding process via the API in development and I am having a CORS issue. What is the proper way of opening this up without causing any issue? Normally, I would use Rack Middlware but I am not sure if that's ideal with Solidus?
    • 1
    • 2
  • t

    Tyler Pulse

    04/25/2022, 4:20 PM
  • t

    Tyler Pulse

    04/25/2022, 7:23 PM
    Given the past support efforts, is there a clear cut winner for user authentication when going headless with solidus? I have had zero problems creating a user from the frontend but authentication is a whole different ball game.
    j
    o
    t
    • 4
    • 14
  • x

    Xan

    04/26/2022, 4:47 PM
    anyone know of an open source google analytics ecommerce tracking extension for solidus?
    j
    • 2
    • 1
  • x

    Xan

    04/26/2022, 4:48 PM
    to track products purchased, conversions, etc
  • v

    victor

    04/26/2022, 5:02 PM
    I am having an issue with
    solidus_auth_devise 2.5.4
    I get an undefined local variable or method `acts_as_paranoid' for Spree:UserClass. We've had it for a while and it does not always happen. Using Solidus 3.1.0. Any clues where to look?
    j
    • 2
    • 10
  • p

    Paulo Martins

    04/26/2022, 5:07 PM
    hi there! i ran into some problem using spree, i know it's not the focus of this channel, but i have a front end application on react, and my back is made in rails using spree, i'm having a problem on my checkout with an error of inventory unit, but it's kinda of weird, since the product i have on checkout is a digital product, don't have supply. i will send attached an image of it! thank you already!
    j
    • 2
    • 14
  • t

    Tyler Pulse

    04/26/2022, 5:36 PM
    When sending a request to create a user, why am I getting a 404 when I attempt to submit shipping_address_attributes? If I minimize the request to email, password, password conf, I have zero problems. If I cherry pick some shipping params *(assuming the rest will be either be auto incremented or nil), I am getting a 404. Here is what my code looks like:
    Copy code
    e.preventDefault()
    		const token = 'MY_TOKEN'
      		const options = {
      			method: 'POST',
      			url: '<http://localhost:3000/api/users>',
      			headers: {"Authorization" : `Bearer MY_TOKEN`, 'Content-Type': 'application/json'},
      			data: {
        		user: {
        			email: email,
          			password: password,
          			password_confirmation: password,
          			ship_address_attributes: {
          				name: name,
          				address1: address1,
          				city: city,
          				zipcode: zipCode,
          				state_name: stateName,
          				country_iso: countryIso
          			}
       	 		}
      		}
    c
    • 2
    • 27
  • t

    Tyler Pulse

    04/26/2022, 5:37 PM
    If I remove
    Copy code
    ship_address_attributes: {
          				name: name,
          				address1: address1,
          				city: city,
          				zipcode: zipCode,
          				state_name: stateName,
          				country_iso: countryIso
          			}
    we are all gravy.
  • o

    Oleksandr Pozniak

    04/27/2022, 2:05 PM
    Spree::*User*.includes(role_users: :role).where.not(role: {name: [*“*admin*”*, *“*dry_cleaner*”*, *“*support*”*]}) why this AR request doesn’t return a list of all users without roles?
    d
    k
    • 3
    • 10
  • o

    Oleksandr Pozniak

    04/28/2022, 8:37 AM
    Copy code
    gem 'solidus_api', '~> 3.1'
    gem 'solidus_backend', '~> 3.1'
    gem 'solidus_core', '~> 3.1'
    gem 'solidus_auth_devise'
    gem 'solidus_jwt', git: '<https://github.com/solidusio-contrib/solidus_jwt.git>', branch: 'master'
    
    #TRY TO ADDD THIS GEM SOLIDUS STRIPE: 
    gem 'solidus_stripe', '~> 1.0'
    And i got this error 😞 How i can fix that? Thanks!
    Bundler could not find compatible versions for gem "solidus_core":
    In snapshot (Gemfile.lock):
    solidus_core (= 3.1.5)
    In Gemfile:
    solidus_backend (~> 3.1) was resolved to 3.1.5, which depends on
    solidus_core (= 3.1.5)
    solidus_stripe (~> 1.0) was resolved to 1.1.0, which depends on
    solidus_core (< 3, >= 2.3)
    w
    • 2
    • 1
  • o

    Oleksandr Pozniak

    04/28/2022, 11:15 AM
    bundle exec rails g solidus_social:install `.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/solidus_social-1.4.0/app/decorators/controllers/solidus_social/spree/user_registrations_controller_decorator.rb24in
    <module:UserRegistrationsControllerDecorator>': uninitialized constant Spree::UserRegistrationsController
    ::Spree::UserRegistrationsController.prepend self
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    Did you mean? Spree::UserConfirmationsController (NameError)
    Copy code
    gem 'solidus_api', '~> 3.1'
    gem 'solidus_backend', '~> 3.1'
    gem 'solidus_core', '~> 3.1'
    gem 'solidus_auth_devise'
    gem 'solidus_jwt', git: '<https://github.com/solidusio-contrib/solidus_jwt.git>', branch: 'master'
    gem 'solidus_stripe', '~> 4.3'
    gem 'solidus_social'
    How to fix it? 😞
  • s

    Sebastian

    04/28/2022, 6:38 PM
    Hi everyone. I’m not really a Solidus developer but I’ve started working on a project that is using jsbundling-rails & cssbundling-rails instead of Sprockets for assets. There is
    solidus_stripe
    gem installed that I need to make use of. It provides some JS via Sprockets but since it’s not being used anymore I can’t use it. I was wondering if there was a way to include all the JS that comes with this gem as a JS module or some other way?
    j
    k
    • 3
    • 5
  • k

    Kurtis

    04/29/2022, 8:27 AM
    Hey all, just upgrading a Solidus website with Rails 6, JSbundling + CSSbundling. I’m just trying to integrate the solidus_stripe Gem, but not sure if I can achieve the frontend JS without Sprockets due to
    //= require spree/frontend/solidus_stripe
    Is that the case? If so, what are my options?
    k
    • 2
    • 2
  • o

    Oleksandr Pozniak

    04/29/2022, 10:34 AM
    Did someone install https://github.com/solidusio-contrib/solidus_editor only for solidus_backend? without solidus_frontend? And I don’t understand how it can be installed, and configured? Should i add CKEditor gem or TinyMCE with solodus_editor?
    k
    t
    m
    • 4
    • 27
  • t

    Tyler Kocheff

    04/29/2022, 4:34 PM
    Struggling to get solidus_affirm working and hoping anyone might have some ideas. Can get through checkout all the way to the confirm step, where it throws a 500.
    ArgumentError in Spree::CheckoutController#update
    wrong number of arguments (given 2, expected 1)
    > Extracted source (around line #28):
    ``` def post(path, **data)
    connection.post(normalized_path(path), data)
    end```
    affirm-ruby (1.1.2) lib/affirm/client.rb28in `post'
    affirm-ruby (1.1.2) lib/affirm/client.rb10in `public_send'
    affirm-ruby (1.1.2) lib/affirm/client.rb10in `request'
    affirm-ruby (1.1.2) lib/affirm/charge.rb7in `authorize'
    solidus_affirm (4f8d9ee63345) lib/solidus_affirm/affirm_client.rb18in `authorize'
    solidus_core (3.1.5) app/models/spree/payment_method.rb40in `authorize'
    if I put a binding.pry in lib/affirm/charge.rb7in `authorize' of the affirm gem, and try the respond Client.request method there, I get a faraday deprecation warning, not sure if that's the cause or unrelated. Seems like it's injecting an auth header or something?
    Copy code
    pry(Affirm::Charge)> respond Client.request(:post, "charges", checkout_token: token)
    WARNING: `Faraday::Connection#basic_auth` is deprecated; it will be removed in version 2.0.
    While initializing your connection, use `#request(:basic_auth, ...)` instead.
    See <https://lostisland.github.io/faraday/middleware/authentication> for more usage info.
    k
    • 2
    • 3
  • j

    jakemumu

    04/30/2022, 3:01 AM
    Hey community! Long time no chat! I've had a handful of curious customers reach out to me and share that they're able to add non-published products to cart by modifying the variant ID in the add to cart forms on solidus. I know it's not a difficult patch on our end but thought maybe worth sharing that this probably shouldn't be possible out of the box : )
  • j

    jakemumu

    04/30/2022, 3:04 AM
    in the populate method:
    variant = Spree::Variant.find(params[:variant_id])
    Perhaps we should add some validation here to ensure the product is currently available
    k
    • 2
    • 2
  • o

    Oleksandr Pozniak

    05/02/2022, 10:13 AM
    Someone can help me install https://github.com/solidusio-contrib/solidus_editor or another WYSIWYG editor for the Solidus admin panel? Because i stuck and don’t understand why it’s doesn’t work 😞
    k
    • 2
    • 4
  • b

    Bastian

    05/02/2022, 10:40 AM
    Good morning 🙂 Has anyone an idea how to build a “buy one, get one for free” promotion? How I think it should work is that when a certain amount of a set of variants is added to the checkout, one or more other variants are added with 100% price reduction. Since this is a somewhat common use case, I hope some of you may have done this already? Thanks for you help in advance!
    👍 1
  • t

    Tyler Pulse

    05/02/2022, 4:52 PM
    Built in way to check for duplicates users via an API request w/o exposing a list of other user accounts or should I implement a custom endpoint to do so? Don't see anything in docs but I wanted to leverage a quick response from you guys 😄
    e
    • 2
    • 10
  • t

    TEMITAYO ADELEKE

    05/03/2022, 9:41 AM
    Hello everyone, I have a question about how solidus handles an order with delivery state or when an order has been fulfilled on the system. Is there a way to add more items to such an order in such a way that these additional items will reflect in the order's inventory_units and shipments
    k
    • 2
    • 8
  • g

    Given Reed

    05/03/2022, 8:20 PM
    Sorry for the (probably) noob question, but I'm struggling to figure out how to get ransack searches working. Specifically I'm trying to modify the default report in solidus_reports to also allow for filtering by
    bill_address.state_id
    I've confirmed that
    bill_address
    is a ransackable association. I can see it passing the value into the querystring, but the name doesn't seem to be structured properly for it to actually get picked up by ransack for the filtering. I've tried: • bill_address_state_id_eq • addresses_bill_address_state_id_eq • order_addresses_bill_address_state_id_eq • bill_address_state_id_cont (and all the above variations on the beginning) • order_bill_address_state_id_eq • bill_address_state_id_start (inspired by the name search on the orders page, attempted all the beginning variations) I'm sure there's something simple I'm not getting, but I just can't seem to get my head wrapped around how ransack works with associations. Can anybody point me in a good direction?
    n
    • 2
    • 2
  • s

    Slackbot

    05/06/2022, 9:03 PM
    This message was deleted.
    j
    j
    • 3
    • 6
  • j

    Jin

    05/07/2022, 1:31 AM
    Trying to use “Importer”, server has started successfully. However, when I clicked on “Importer”, I got the following error:
    Copy code
    NameError (undefined local variable or method `primary_abstract_class' for ApplicationRecord(Table doesn't exist):Class
    Did you mean?  primary_class?):
    j
    • 2
    • 12
  • m

    Manu

    05/07/2022, 10:38 PM
    Hi! What’s the correct way to use Active Record callbacks in model decorators ? I’m using the following but it doesn’t work :
    Copy code
    def self.included(base)
        base.class_eval do
          after_save :add_to_mailinglist
        end
      end
    All the methods in the decorator work fine when called manually, just not via the callback. Thanks!
    k
    p
    • 3
    • 5
  • o

    Oleksandr Pozniak

    05/09/2022, 9:28 AM
    Hello! Does someone know how to fix that bug with a card in the admin pane? How to make it so that it is displayed not in different line items, but one, provided that we select the same product option? And some strange behavior with quantity. Ps if you go to the next tab, select a customer, and go back, everything is displayed correctly.
    20220509122539213.mp4
    k
    • 2
    • 2
  • o

    Oleksandr Pozniak

    05/09/2022, 3:01 PM
    Does it possible to reuse the Customer search from the Orders- New order- Customer tab, with a dynamic dropdown list of customers, which I can assign to the cart? I want to reuse the same mechanism in the case of creating Products, and select product owners for each
1...151617...39Latest