support
  • m

    Marie Lamoureux

    11/17/2022, 8:37 AM
    Hi, I cannot upload images to products (in production). I get this error message 'Server failed to process the image'. I tried updating Solidus to 3.2.4 but it still doesn't work. I see different errors in my server logs:
    LoadError (Could not open library 'vips.so.42': vips.so.42: cannot open shared object file: No such file or directory.
    but I checked and I already installed vips - or:
    ActionController::RoutingError (No route matches [POST] "/")
    ActionController::RoutingError (No route matches [GET] "/.env"
    Any idea what I'm doing wrong?
  • s

    Sébastien Ternest

    11/17/2022, 10:17 AM
    Hello everyone ! My products images don’t show up in show page in production. I only have the thumbnails. However, it works on localhost.
  • Omari Mubutu

    Omari Mubutu

    11/17/2022, 11:35 AM
    Hello everyone, i'm trying to use
    before_action :authenticate_spree_user!
    on my store controller but it renders unauthorized (solidus 3.2) as well as it say _redirected too many times on the browser. I'_m trying to authenticate customers before they can shop; is there another way of achieving this ??
  • jakemumu

    jakemumu

    11/17/2022, 11:21 PM
    Hey! Quick question for the crew -- is there a way from a line item level to get an effective price of that line_item with consideration to both the line_item promo totals & the order level promo totals? It appears quite difficult because the line_item totals are added to the order level promos
  • jakemumu

    jakemumu

    11/18/2022, 12:15 AM
    order promotions calculating BEFORE line item discounts and going wild
  • g

    Gabriel Guérin

    11/21/2022, 1:47 PM
    Add Tailwind to a Solidus store tutorial Hello everyone! I have been trying to add Tailwind to a Solidus store with no luck. Adding Tailwind the usual way you would do on any Rails app does not work, as Tailwind components do not display properly. Unfortunately, I haven't found any guide on how to achieve this. Basically, I would like to apply changes to Solidus' Starter Frontend using Tailwind. I have checked this repository (found on this GitHub issue) and compared it with my own code and I cannot find any difference with mine. Do you have any idea on how to achieve this? EDIT: Adding Tailwind's CDN to
    storefront.html.erb
    seems to work however (with the text being very small).
  • jakemumu

    jakemumu

    11/22/2022, 8:03 PM
    is there a simplistic way to get a line item discount to not stack on top of a line if it has an existing line item discount?
  • r

    Rasna Shakya

    11/23/2022, 7:29 AM
    Hello, anyone here has implemented multi vendor paypal payment using solidus checkout flow?
  • b

    BFX462heo

    11/23/2022, 9:38 AM
    Hello everybody, Solidusers! I'm translating my Solidus store to French. It works fine, but I have a little problem with the order number. When I make an order in the english version of the store I can see this:
  • b

    BFX462heo

    11/23/2022, 9:40 AM
    But, if I make the new order in the french version I can not see the order number...
  • b

    BFX462heo

    11/23/2022, 9:42 AM
    This are my files: controller, view and fr.yml...
  • s

    Sabo

    11/23/2022, 11:31 AM
    Hello 👋 I have a little question, in
    layouts/spree_application.html.erb
    how and from where is calculed the value of
    <%= title %>
    ?
  • s

    Sabo

    11/24/2022, 8:53 AM
    Hello 🙂 I would 'namespacing' a solidus app into a subdomain like 'shop', should I do something like
    mount Spree::Core::Engine, at: '/', constraints : { subdomain: 'shop' }
    or
    Spree::Core::Engine.routes.draw do
      constraints subdomain: 'shop' do
        ...
      end
    end
    ?
  • b

    BFX462heo

    11/24/2022, 9:32 AM
    Hi everybody. I need to translate to french this ...>
  • b

    BFX462heo

    11/24/2022, 9:33 AM
    But I don't know how to do it.
  • b

    BFX462heo

    11/24/2022, 9:35 AM
    It would be: • Acheter par Catégories • Acheter par Marque I don't konw how to pass every taxonomy.name translation.
  • b

    BFX462heo

    11/25/2022, 9:55 AM
    Hi everybody. I have added icons to my categories in the admin pannel but I can not see them in the storefront. How must I do this? Thanks in advance.
  • a

    Antón

    11/25/2022, 12:18 PM
    Hello everyone. I'm new to solidus and I have a little problem with permissions. I have the role warehouse_admin and I need him to only be able to see his warehouses (stock_locations). I have the following:
    # config/initializers/spree.rb
     
    config.roles.assign_permissions :warehouse_admin, [
        'Spree::PermissionSets::RestrictedStockManagement'
      ]
    but the user sees all warehouse. The problem is because of the query that is launched this is the query Where does the
    OR ("spree_stock_locations"."active" = TRUE)
    ?
    Spree::StockLocation Load (0.3ms)  SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE (("spree_stock_locations"."id" = 3) OR ("spree_stock_locations"."active" = TRUE)) /* loading for inspect */ LIMIT $1  [["LIMIT", 11]]
    I have tried having a custom permissions class but the result is the same.
    #app/models/spree/permissions_sets/warehouse_admin.rb(
    require 'cancan'
    
    module Spree
      module PermissionSets
        class WarehouseAdmin < Spree::PermissionSets::Base
    
          def activate!
            can :read, Spree::StockLocation, id: location_ids
          end
    
          def location_ids
            @location_ids ||= user.stock_locations.pluck(:id)
          end
        end
      end
    end
    
    # config/initializers/spree.rb
    
    config.roles.assign_permissions :warehouse_admin, [
        'Spree::PermissionSets::WarehouseAdmin'
      ]
    thanks!!
  • s

    Sabo

    11/25/2022, 12:56 PM
    Hello everyone, a have a new question 🙂 I would like to create a kind of permanent redirect between 'example.com' to 'shop.example.com'
    Rails.application.routes.draw do
    
    get '/', to: 'home#index', constraints: { subdomain: '' }
    mount Spree::Core::Engine, at: '/', constraints: { subdomain: 'shop' }
    
    end
    but I have an error to find the HomeController
    raise MissingController.new(error.message, error.name)
    PS. I just understood that it is certainly because it is in the Spree module
  • s

    Sabo

    11/26/2022, 1:09 AM
    Hello, I'm starting to use solidus in production via a heroku like with aws s3, since I use the solidus/spree part into a subdomain (
    mount Spree::Core::Engine, at: '/', constraints: { subdomain: 'shop' }
    ) I'm getting some problems to upload product images from the backend after upload an image, in the home view:
    (before)
    <img itemprop="image" src="<https://bucket.s3.eu-west-2.amazonaws.com/inaiwpq6x48d2i81z2m2e6au7hi0>">
    
    (now)
    <img alt="" itemprop="image" src="/assets/noimage/small-e0e64753ab233ecd636325b86739eace7af7759hu1t673578df9781f7f34dbaf.png">
    PS. I'm on Rails 7, so with ActiveStorage
  • Cody Baldwin

    Cody Baldwin

    11/27/2022, 1:43 AM
    I'm trying to add a column to Spree:😛roduct for a shipping refrigeration setting. I'm having trouble debugging an error when trying to make this enum: `gems/3.0.0/gems/activerecord-6.1.7/lib/active_record/enum.rb:294:in
    raise_conflict_error': *You tried to define an enum named "refrigeration" on the model "Spree::Product", but this will generate a instance method "room?", which is already defined by another enum. (ArgumentError)*
    Regardless of what I set the enum text values to it throws the same error. Is it being prepended twice?
  • k

    Kevin I

    11/28/2022, 6:41 PM
    If something isn’t shippable (a warranty) what might a good place be in the Solidus Core to filter that out so that shipments do not include that item with least amount of impact. it seems like an inventory unit shouldn’t be needed given that we don’t really need to track fulfillment .. but perhaps too much relies on inventory units being present and I should just filter them out of packages in a custom splitter…
  • Alexander V

    Alexander V

    11/28/2022, 8:57 PM
    Hello everyone. I'm getting
    uninitialized constant SolidusPaypalBraintree::Gateway (NameError)
    when trying to start the server after configuring SolidusPaypalBraintree gem exactly how README says. What it can be? Will appreciate any hints. ruby 3.1.2 rails 7.0.4
  • Cody Baldwin

    Cody Baldwin

    11/29/2022, 3:25 AM
    I have the old frontend (yeah I know i need to update, lol). On the checkout screen for the address input there's no way to translate states (even in the new frontend I think), without overriding some JS. See the path for api/states: https://github.com/solidusio/solidus_frontend/blob/dae732ed7442a755cc0426cd2afa6ac[…]e7105/app/assets/javascripts/spree/frontend/checkout/address.js andhttps://github.com/solidusio/solidus_starter_frontend/blob/main/templates/app/assets/javascripts/utils.js.erb I tried to change the checkout form like this:
    <span class="js-address-fields" style="display: none;">
            <%=
              form.collection_select(
                :state_id, address.country.states, :id, Proc.new { |val| t(val.name) },
                {include_blank: true},
                {
                  class: have_states ? 'required border-slate-400 grow text-slate-900 focus:border-sky-200 focus:ring-1 focus:ring-sky-100 text-xs lg:text-sm xl:text-base rounded' : '',
                  style: have_states ? '' : 'display: none;',
                  disabled: !have_states,
                  autocomplete: address_type + ' address-level1',
                })
              %>
            <%=
              form.text_field(
                :state_name,
                class: !have_states ? 'required border-slate-400 grow text-slate-900 focus:border-sky-200 focus:ring-1 focus:ring-sky-100 text-xs lg:text-sm xl:text-base rounded' : '',
                style: have_states ? 'display: none;' : '',
                disabled: have_states,
                autocomplete: address_type + ' address-level1',
              )
            %>
          </span>
    If I turn off the JS then I've got to write some new js for countries that don't have states, or the form element won't show. This Proc added to the collection_select won't work, it show sup for a few ms then disappears.
  • Alexander V

    Alexander V

    11/29/2022, 7:53 AM
    1. I already saw similar questions, but didn't understand what the problem is.. • Billing address state can't be blank • Shipping address state can't be blank when trying to fill the address form, doesn't matter which country 2. checkbox "Use Billing Address" not working? doesn't matter if it's ticked or not it insist to fill out shipping address
  • Alexander V

    Alexander V

    11/30/2022, 8:14 AM
    solidus_paypal_braintree gem: Configure payment types
    If your site uses an unmodified solidus_frontend, it should now be ready to take payments.
    this doesn't work now out of the box, right? because I have multiple files missing errors, like partials, scripts
  • b

    BFX462heo

    12/01/2022, 7:20 AM
    Hello everybody. I have a little problem. I want to remove the tax decimals in the cart view...
  • Oleksandr Pozniak

    Oleksandr Pozniak

    12/01/2022, 11:39 AM
    Hi all! Please tell me how can I apply a promotional code for order or line items through solidus API? I cant figure it out( Thank you!
  • Cody Baldwin

    Cody Baldwin

    12/01/2022, 10:15 PM
    I'm using Solidus Stripe (with the old Frontend) for a store in Japanese and English (currency is 'JPY', Stripe is set to 'JP', no v3 intents/elements). For a payment of ¥5100, the amount that is sent to Stripe it is taking off two digits, e.g. only charging ¥51. I'm not sure how to proceed. Maybe something related to this?https://github.com/solidusio/solidus_stripe/blob/master/app/models/spree/payment_method/stripe_credit_card.rb#L30