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

    coquerel

    03/27/2023, 6:22 PM
    Please how to remove sidebar and breadcrumbs from a solidus page ?? there are automaticaly
    m
    • 2
    • 1
  • m

    Matheus Matos

    03/27/2023, 7:00 PM
    Hello guys! My name is Matheus Matos and I just found the Solidus project. I'm searching for an open-source project to build two projects: - a common store, for a digital-native cosmetics brand; - a marketplace platform with multiple stores/vendors inside the same site/app; My first candidate was Saleor.io because I've some experience with Django/Python world, but it doesn't support multiple stores/vendors and it's not planned by project leaders. I've seen that one of the Solidus use cases is Marketplace, but I haven't found a specific guidance about the
    Store
    model. There's something available to learn more about it? Thanks!
    j
    • 2
    • 2
  • m

    Matheus Matos

    03/28/2023, 4:41 AM
    Guys, I don't understand the idea behind the
    Spree::Store
    model. Apparently, it has many
    payment_methods
    , many
    shipping_methods
    and many
    orders
    . Is it? So if I need that a
    Spree::Product
    belongs to a
    Spree::Store
    I"ll need to implement it by myself, right?
    b
    • 2
    • 2
  • c

    christopher patterson

    03/30/2023, 5:36 AM
    Hi Everyone! I am totally new to this web development arena. In terms of green-ness, I took a web design course in college with XHTML and an intro into Javascript. I am interested in the functionality of RoR, especially Solidus. I am having an issue setting up PAYPAL, country, stock location, so that I can set up an inventory count and formally launch this puppy. Do I need to push my project to an external server to get those functionalities to work? What am I missing? I am amazed at how talented you all are!
    k
    • 2
    • 6
  • f

    Fotios Lindiakos

    03/30/2023, 3:42 PM
    good morning. i'm curious if anybody knows of a way that i might be able to create a payment for 2 separate orders. they'd each have their own tax, shipping, etc and we need to track them as separate
    Spree::Order
    but we'd like to just have to process a single payment transaction
    k
    • 2
    • 6
  • s

    Sabo

    03/31/2023, 11:50 PM
    Hello Everyone, I'm trying to override
    Spree::BackendConfiguration
    app/overrides/backend.rb
    Copy code
    # frozen_string_literal: true
    
    module Shop::BackendConfigurationDecorator
    
      def self.prepenped(base)
        base.preference :frontend_kit_path,
          :proc,
          default: proc {
            ->(template_context, kit) {
              return unless template_context.spree.respond_to?(:kit_path)
                     
              template_context.spree.kit_path(kit)
            }
          }
      end
      
      ::Spree::BackendConfiguration.prepend self
    end
    but I get the error
    frontend_kit_path preference not defined
    ✅ 1
    j
    • 2
    • 2
  • s

    Sabo

    04/04/2023, 1:31 PM
    [Solidus 3.2.2] Hello Everyone, I'm doing a fork of the
    Spree::Admin::ImagesController
    but I get the error
    AbstractController::ActionNotFound (The action 'index' could not be found
    Indeed by looking in Spree:Admin:ImagesController and Spree:Admin:ResourceController I don't find a index function, I wonder where and how the index action is defined ?
    ✅ 1
    r
    • 2
    • 6
  • e

    Ernesto Ponce

    04/04/2023, 11:40 PM
    hi Everyone, I'm trying to install solidus_dynamic_variants gem but it is not working on rails 7.
    r
    • 2
    • 3
  • c

    christopher patterson

    04/05/2023, 12:15 AM
    Has anyone else had an issue setting up their PAYPAL account through the admin panel on the local server? Is there something in the backend I am supposed to do? When I attempt to enter in my credentials through, I get the following error. I tried looking through some older threads and issues online, and I must be missing something.
    r
    • 2
    • 1
  • f

    Fred Jeanne

    04/05/2023, 4:44 PM
    Hi everyone, I am just starting with rails, and solidus. No problem on localhost, but I don't understand why I have this error on Heroku logs : Completed 500 Internal Server Error ActiveRecord::StatementInvalid (Could not find table 'spree_stores'): app/controllers/home_controller.rb8in `index' hope someone could help me ! thanks !
    j
    • 2
    • 22
  • m

    Michael C

    04/05/2023, 6:45 PM
    The API documentation indicates that
    /api/orders/current
    should accept a guest token —
    X-Spree-Order-Token
    — for authorization, however that endpoint returns a 401 when using a guest token. I would expect it to return the guest order associated with that token, no?
    c
    k
    • 3
    • 24
  • n

    Nikodem Górak

    04/05/2023, 8:25 PM
    Hi everyone! I'm new and just started using Solidus 3.2 - how can I add simple feature to be able to reorder before placed order • button on orders view - Reorder • clicking button will add selected order items to cart and I can then reorder the same ? Anyone know what should be done to do it? Thanks
    j
    • 2
    • 3
  • m

    Mohammad Humza

    04/06/2023, 5:03 AM
    can anybody tell how to change currency type $ to INR in master price
    r
    • 2
    • 14
  • f

    Fred Jeanne

    04/06/2023, 8:53 AM
    Hi everyone, I tried to follow the routes indication " # If you would like to change where this engine is mounted, simply change the :at option to something different. mount Spree:Core:Engine, at: '/' " mount Spree:Core:Engine, at: '/'store " doesn't work .... No route matches [GET] "/store"
    r
    • 2
    • 10
  • f

    Fred Jeanne

    04/06/2023, 11:38 AM
    .
  • r

    Roman Kapustynskyi

    04/07/2023, 5:37 PM
    Hi everyone! I have a question about maintaining code style, because I didn't find any information in the guides and in search here. Just installed a fresh rails app and solidus with solidus_starter_frontend. Rubocop is saying that about 4k offenses are found with default config. I saw in the Gemfile that next dependencies were added:
    Copy code
    gem "rubocop", "~> 1.0"
    gem "rubocop-performance", "~> 1.5"
    gem "rubocop-rails", "~> 2.3"
    gem "rubocop-rspec", "~> 2.0"
    Enabling rubocop-rails and rubocop-rspec in the config produced even more offenses. But since the dependencies are added, I assume that I need to import a rubocop config from somewhere to follow your code style?
    k
    • 2
    • 6
  • d

    Diego

    04/08/2023, 3:06 PM
    Hey community I am receiving the following error on the POST processed by Spree:Admin:ImagesController#create:
    Copy code
    Completed 500 Internal Server Error in 125ms (ActiveRecord: 62.2ms | Allocations: 20727)
    
    ArgumentError (wrong number of arguments (given 2, expected 1)):
    Relevant gems:
    Copy code
    gem 'solidus', '= 2.11.17'
    gem 'cloudinary', '~> 1.1.7', require: false
    gem 'activestorage-cloudinary-service'
    gem 'open_solidus_cloudinary', github: 'Berlimioz/open_solidus_cloudinary'
    Any ideas what this error might be caused by or how to debug?
    k
    • 2
    • 14
  • m

    Maaloum Ely Cheikh

    04/08/2023, 3:34 PM
    hello guys. I am new to solidus and just install it but I face two challenges: 1 it doesn't take the main root '/'so I am unable to get it 2 I set the default logins but when I try to sign-in it says that there're invalid Anyone would like to help me out
    e
    • 2
    • 5
  • e

    Ernesto Ponce

    04/08/2023, 7:03 PM
    I'm trying to install the solidus_braintree gem. I've setup everything as in the readme says but I'm getting this error:
    Copy code
    Missing partial checkouts/payment/_braintree with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :jbuilder]}.
    Could someone help me?
    k
    • 2
    • 115
  • r

    Roman Kapustynskyi

    04/09/2023, 9:02 PM
    Hey, everyone! Does someone have knowledge how to get the currency symbol for specific currency? I dove into
    solidus_core
    code and had a look on
    Spree::Price
    and
    Spree::Money
    classes to see how it does formatting to html but stuck in
    Spree::Money#format
    method, since it looks like it's calling itself on object of the same class, so I'm not sure where it goes further. I'm trying to fix the specs for
    solidus_starter_frontend
    , since they have hardcoded strings with
    $
    in it, and when I change the default currency in
    initializers/spree.rb
    they start to fail. So I had the idea to make some helper method for specs, which will return the symbol for current default currency, and use it in the specs instead of hardcoded value. Or maybe rewriting the config to use USD as default currency in some spec initializer would be a better idea, so specs would be isolated from config changes? I would like to make a PR for that fix, but need someones help to point me in right direction. Thanks!
    k
    • 2
    • 5
  • m

    Mohammad Humza

    04/10/2023, 10:35 AM
    i have similar isssue and i have tried solidus india gem for indian currency but not worked\
  • m

    Mohammad Humza

    04/10/2023, 10:36 AM
    if anybody know how to change currency, let us know
    r
    k
    • 3
    • 7
  • g

    Given Reed

    04/10/2023, 8:53 PM
    I'm trying to use ajax for a one-page checkout, I've tried a couple approaches, but can't manage to get it working: • I set it to use the same target as the normal form (
    /checkout/update/address
    ) but it yells at me about a missing order parameter. I've tried sending the order id and number, but that didn't seem to be what it needed (and it doesn't appear that the original form passed any order info, I'm assuming it's pulling the
    @order
    object that just isn't there in the ajax call) • I looked through the routes and saw the API route for order addresses (
    /api/checkouts/:checkout_id/addresses/:id
    ), but that doesn't seem to work without the address id, which doesn't exist on a new order, so I get a 404 returned on the route without it. I guess I'm just not even sure at this point how I should be approaching it. The 2 ways to do it that I can think of both seem to not want to play nicely with what I'm doing. Will I need to do some customizations on the back end or am I just missing something on the ajax side? Thanks!
    e
    • 2
    • 2
  • n

    Natalia Ramirez

    04/11/2023, 1:49 PM
    Hey everyone I have a problem that I haven't been able to solve for days and I was hoping you might be able to give me a hint in the right direction. My issue is: I'm trying to translate the website to German. I have added the de.yml file in my config/locales folder and I also added the following lines in my application.rb file:
    Copy code
    config.i18n.load_path += Dir[Rails.root.join('config', 'locales', '**', '*.{rb,yml}')]
        config.i18n.available_locales = [:en, :de]
        config.i18n.default_locale = :en
        config.i18n.fallbacks = true
    Additionally I have created the following method in the application controller:
    Copy code
    before_action :set_locale
      def set_locale
        I18n.locale = :de
      end
    And of course in the front end I'm using the syntax they use in their own files (example: <%= I18n.t("hello") %>) I saw that as an admin should be able to choose from available locales for the storefront but no matter what I do, I can't seem to make the german translation appear 🫣😞 Does anyone have any clue what I should be looking into? Any input is greatly appreciated 🙏 Thank you!
    s
    • 2
    • 8
  • n

    Nikodem Górak

    04/12/2023, 10:22 AM
    Hi all, anyone have an idea how to implement or achive - Product as banch of other products ? I have product build from amounts of parts for example 4- different parts, parts got his prices, and possibly you could change parts. Is that can be achived by using for example combinations or something similar or anyone have an idea how to do this?
    k
    • 2
    • 6
  • s

    Sabo

    04/12/2023, 3:18 PM
    Hello, I'm wondering how Solidus work with Font Awasome When I use '_ban_' it's working, but when I put '_banjo_' for exemple there is no icon show (https://fontawesome.com/search?q=ban)
    Copy code
    # ...
    Spree::Backend::Config.configure do |config|
      # ...
      config.menu_items << config.class::MenuItem.new(
        [:rejected_orders],
        'banjo',
        url: '/admin/orders?q[rejected_eq]=true',
        position: 0
      )
    end
    k
    • 2
    • 4
  • m

    Muhammad Usama Yousaf

    04/12/2023, 3:29 PM
    I am using sql views in my rails project through scenic gem and I want to use a view for multiple variables to make my code dry can i do that and how can i do that?
    k
    • 2
    • 1
  • d

    Daniel Senff

    04/14/2023, 8:34 AM
    Hi, I'm working on a PR for Solidus that also involves changes in the Starter-Template. To test this, I'm installing the starter, but it installs the latest stable version and not the latest master of the template. What's the best prepare the changes on the current master?
    k
    • 2
    • 5
  • b

    Brandon White

    04/14/2023, 6:01 PM
    I'm attempting to migrate to ActiveStorage in solidus, I have a new instance of my rails application that I've been patching and migrated over my database. I was thinking the simplest way to fix the product attachments would be to migrate the images as described here: https://github.com/thoughtbot/paperclip/blob/master/MIGRATING.md#moving-files-on-a-remote-host-s3-azure-storage-gcs-etc but this seems a bit out dated and I haven't been able to use the method "attach" on spree variants or products because it says the method is undefined. Any tips?
  • b

    benmorganio

    04/16/2023, 1:26 AM
    What does the
    target_shipment
    expected to do on the line item? https://github.com/solidusio/solidus/blob/v3.3.1/core/app/models/spree/order_contents.rb#L98
    m
    • 2
    • 1
1...333435...39Latest