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

    Tom Wilson

    03/10/2022, 10:26 PM
    Hey, Solidus folks - I have a question for the collective brains. Why does
    OrderShipping#ship
    invoke
    order.recalculate
    ? That seems... a little odd to me.
  • t

    Tom Wilson

    03/10/2022, 10:27 PM
    I'm not sure I understand why we want to recalculate an already completed order?
  • j

    Jared Norman

    03/10/2022, 10:28 PM
    recalculate, among the many other things it does, records things like the *_state methods on the order, so without actually digging into the code, I assume it's because the shipment_state needs to change
  • s

    Sajid Ali

    03/14/2022, 6:06 AM
    Hey @support Can you provide details on Facebook login? I don't know what im missing. I get this error
    This redirect failed because the redirect URI is not white-listed in the app's client OAuth settings. Make sure that the client and web OAuth logins are on and add all your app domains as valid OAuth redirect URIs.
    n
    • 2
    • 4
  • o

    Oleksandr Pozniak

    03/15/2022, 11:59 AM
    `NoMethodError (undefined method
    spree_user_confirmation_url'
    How i can fix it? Thanks! spree.rb
    Copy code
    Spree::Auth::Config[:confirmable] = true
    devise.rb
    Copy code
    Devise.setup do |config|
      # Required so users don't lose their carts when they need to confirm.
      config.allow_unconfirmed_access_for = 1.days
    
      # Add any other devise configurations here, as they will override the defaults provided by solidus_auth_devise.
    end
    c
    • 2
    • 1
  • s

    Sajid Ali

    03/16/2022, 8:29 AM
    Hey Guys, I have some issue with gem 'solidus_virtual_gift_card' 1. when i install gem in gemfile gem 'solidus_virtual_gift_card', github: 'solidusio-contrib/solidus_virtual_gift_card'
    Copy code
    solidus_virtual_gift_card-1.3.0 requires ruby version ~> 2.4, which is incompatible with the current version, ruby 3.0.0p0
    2. When I install the gem with gem 'solidus_virtual_gift_card'
    Copy code
    Bundler could not find compatible versions for gem "solidus":
      In snapshot (Gemfile.lock):
        solidus (= 3.2.0.alpha)
    
      In Gemfile:
        solidus x86_64-linux
    
        solidus_virtual_gift_card x86_64-linux was resolved to 1.0.1, which depends on
          solidus (< 1.2.0, >= 1.0.0)
    g
    • 2
    • 1
  • h

    Holger Frohloff

    03/16/2022, 12:50 PM
    Hey there. I am trying to run the local sandbox and tests for solidus. I've followed the README closely. • I am using postgres (
    export DB=postgresql
    ) • I am specifying the Rails Versions (
    export RAILS_VERSION='~> 5.2.3'
    ) • I ran
    bin/setup
    without errors If I run
    bin/build
    I receive
    Copy code
    An error occurred while loading ./spec/requests/spree/api/variants_spec.rb.
    Failure/Error:
      DummyApp.setup(
        gem_root: File.expand_path('..', __dir__),
        lib_name: 'solidus_api'
      )
    
    RuntimeError:
      Application has been already initialized.
    # /Users/holgerfrohloff/projects/solidus/core/lib/spree/testing_support/dummy_app.rb:41:in `setup'
    # ./spec/spec_helper.rb:13:in `<top (required)>'
    # ./spec/requests/spree/api/variants_spec.rb:3:in `<top (required)>'
    • 1
    • 1
  • o

    Oleksandr Pozniak

    03/18/2022, 9:33 AM
    Why default reset password is not work? Someone know? Help me please.
    Started GET "/user/spree_user/password/edit?reset_password_token=[FILTERED]" for 127.0.0.1 at 2022-03-17 16:21:01 +0200
    ActionController::RoutingError (uninitialized constant Spree::UserPasswordsController
    Also confirmation email contain broken body…
    m
    k
    • 3
    • 13
  • y

    Yasser

    03/19/2022, 8:57 PM
    Hey, wondering if anyone has a guide on deploying Solidus to heroku, with rails 6 using S3 for storage?
    j
    k
    • 3
    • 5
  • s

    Stephen Dicks

    03/21/2022, 12:04 PM
    Hi, I'm trying to port an existing store from Spree 3.x to Solidus 2.x - is there some way that I can verify that my database schema is compatible? Are there some solidus tests that I could run to confirm that everything is ok?
    m
    k
    • 3
    • 8
  • d

    Delph Soft

    03/21/2022, 2:29 PM
    hello im looking for buildpack solidus for heroku or DO
    k
    • 2
    • 3
  • x

    Xan

    03/21/2022, 6:33 PM
    How do you set the default shipping method?
  • g

    Given Reed

    03/21/2022, 8:16 PM
    I'm using the edge guides on adding a custom promotion action as reference (https://edgeguides.solidus.io/advanced-solidus/promotions-system) I'm using a promotion to add a product to the cart and then an adjustment to the product that I add if a qualifying product exists in the cart. (for example, if a mug is added and the promotion code is added, a coaster is automatically added to the cart and a discount adjustment is added to the coaster) I've got everything working great (this documentation was really good, especially when paired with the explanation video from Sean Denny :D), except... when the qualifying product (the mug in the example) is removed, the adjustment is still there. I'm ok with leaving the coaster in the cart, but I'm trying to remove the adjustment if the mug is removed... just can't seem to find how to do that. Any help?
    c
    • 2
    • 22
  • o

    Oleksandr Pozniak

    03/22/2022, 1:12 PM
    I try to add
    gem 'solidus_social'
    and after
    bundle exec rails g solidus_social:install
    i got error: `.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
    Someone can help me ? Here’s my gem list:
    Copy code
    gem 'solidus_api', '~> 3.1'
    gem 'solidus_backend', '~> 3.1'
    gem 'solidus_core', '~> 3.1'
    gem 'solidus_auth_devise'
    # custom from solidus_jwt, removed dependencies of solidus_core, etc.
    gem 'solidus_jwt', git: 'git@github.com:iLucker93/solidus_jwt.git'
    # rubocop:enable Bundler/OrderedGems
    gem 'solidus_social'
    j
    • 2
    • 2
  • s

    Sajid Ali

    03/24/2022, 7:25 AM
    Hello guys, anyone help me I want to change my admin dashboard. Does anyone help if I add a new theme for the admin dashboard just like active admin?
  • l

    Lennart von Velsen

    03/26/2022, 10:40 AM
    Hey guys, I am new to the community and I have an error that I dont understand how to resolve. I did all bundle updates, is it because my rails runs on 7.0.2.3 and not on 7.0.2? Thanks for your advice and help in advance 😊
    n
    j
    • 3
    • 2
  • a

    Andrew

    03/28/2022, 8:56 AM
    When users try to reset their passwords they are getting
    Reset password token is invalid
    . For the life of me I can’t figure out what is causing this. The token is in the hidden field. Anyone got any ideas?
    o
    • 2
    • 3
  • o

    Oleksandr Pozniak

    03/29/2022, 9:23 AM
    Copy code
    Spree::PermittedAttributes.product_attributes << [specials_spree_product: [:id]]
    Copy code
    base.accepts_nested_attributes_for :specials, :special_spree_products
    Not work 😞
    ActiveModel::UnknownAttributeError (unknown attribute 'specials_spree_product' for Spree::Product.
    c
    • 2
    • 2
  • a

    Abby Hudson

    03/29/2022, 1:06 PM
    Hello, I am new to working with the solidus API. I can't seem to find an endpoint for
    prices
    in the documentation. Do I need to create a custom endpoint in our app or is there an alternative way of fetching the prices for products using the API?
    s
    • 2
    • 5
  • t

    Tyler Kocheff

    03/29/2022, 6:42 PM
    Having some trouble with the
    solidus_editor
    gem with
    ckeditor
    using
    --orm=active_record and --backend=paperclip
    . Image uploads were working before, but a user tried uploading an
    exe
    file using the link option and got a 500 error. Logs show
    ArgumentError (wrong number of arguments (given 3, expected 1..2)):
    which I can trace down to
    app/controllers/ckeditor/attachment_files_controller.rb
    and if I do a
    binding.pry
    there, I get the same error if I try to do
    @attachment.save
    but can't seem to figure out what arguments it's talking about. We're on Solidus 3.1 with Ruby 3.0.2. Figured maybe I needed to try adding this as an allowed filetype in
    config/initializers/ckeditor.rb
    , but getting the same error and it seems like now I'm getting this even when I try uploading an image with the image button that was working before. Hoping for some insight on what to override or update to get this going or at least figure out which arguments it's referring to.
    Untitled.txt
    • 1
    • 1
  • s

    Stephen Dicks

    03/30/2022, 2:12 PM
    Hi, anyone know the correct contents of Spree::Store#url? Is it meant to be https://store.com or store.com ?
  • o

    Oleksandr Pozniak

    03/30/2022, 2:30 PM
    Spree::*User*.first.user_profile => `method_missing’: undefined method `profile’ for #<Spree::User id: 1 app/overrides/models/user.rb.rb
    Copy code
    def prepended(base)
     base.has_one :user_profile, dependent: :destroy
    end
    
    Spree::User.prepend(self)
    Why it doesn’t work? 😞
    j
    s
    • 3
    • 5
  • t

    Tyler Pulse

    03/30/2022, 9:00 PM
    Quick question - I am trying to figure out the best way to display product type / stock amount on the frontend. I don't have any "set" products. Each item will be it's own "product" but there will be continuity between the source of the products. So, I may have 10 products from Amazon, so on my filtering dropdown it should look like this: AMZ (10). I can easily do this with a wonky solution where I parse the string, look for "AMZ" and count all the matches but I was hoping someone could give me a better way using the backend to do so. TLDR; How I do I see "on hand" stock when I have unique products.
    k
    • 2
    • 8
  • t

    Tyler Pulse

    03/30/2022, 9:02 PM
    I was using taxons but they won't decrement/increment because they're just labels. I was thinking product variants may work but I didn't find anything in the JSON that would help me out.
  • o

    Oleksandr Pozniak

    03/31/2022, 1:41 PM
    I’ve created custom end point with controllers: app/controllers/api/user_profile/profiles_controller.rb And added
    Copy code
    before_action :authenticate_spree_user!
    and it’s didn’t work 😞 what i did wrong? Here’s my example of request:
    Copy code
    POST <http://localhost:3000/api/user_profile/users/72/profiles>
    Content-Type: application/json
    Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJpZCI6NzIsImVtYWlsIjoidGVzdGFwaUBleGFtcGxlLmNvbSIsInN1YiI6NzIsImV4cCI6MTY0ODczMjUxNywiaWF0IjoxNjQ4NzI4OTE3LCJpc3MiOiJzb2xpZHVzIn0.kZQKGtuZjS8OBWlWN05PXlyRwqkpvH0ytvnivnj6UpY
    
    {"spree_user_id": 72,
     "instagram_username":  "testinstagram_usename"
    }
    Auth token it’s from solidus_jwt Or even can help me? How i can check authenticated user in my custom end point? What i did wrong?
    c
    • 2
    • 3
  • a

    Andre Schweighofer

    04/04/2022, 1:58 PM
    Hi all, I have a seemingly simple question: How do I remove a promotion code from an order? The PromotionHandler has a
    remove
    function but it’s not exposed via a controller from what I found. Also, it requires the order to have a
    coupon_code
    but when I apply the code and check the order it has an
    adjustment
    but
    order.coupon_code
    is still
    nil
    . So it seems that I can’t use the PromotionHandler. I can of course just destroy the adjustment. So my approach would be to write a custom controller that does
    order.adjustments.find(params[:adjustment_id]).destroy
    . But I’m not sure if this is the cleanest approach. Is there anything in Solidus core that already does this for me?
    k
    m
    • 3
    • 9
  • m

    Maksym Nemashkalo

    04/04/2022, 6:13 PM
    Hi everybody! I'm trying to customize
    Spree::Products
    model and I found out that
    Spree::Products prepend self
    line is called multiple times (2 in
    rails s
    and 4 in
    rails c
    command). So if I try to add an enum I get erorrs. Also all appends executes multiple times. How can I prevent Rails loading overrides folder multiple times?
    j
    • 2
    • 12
  • o

    Oleksandr Pozniak

    04/05/2022, 8:28 AM
    Hello! Anyone know what happend? I’ve override Spree::User, added
    Copy code
    base.has_one_attached :avatar
    and now, when i trying to run rails console, it’s return:
    irb(main):011:0> reload!
    Reloading...
    Creating scope :with_attached_avatar. Overwriting existing method Spree::User.with_attached_avatar.
    Creating scope :with_attached_avatar. Overwriting existing method Spree::User.with_attached_avatar.
    Creating scope :with_attached_avatar. Overwriting existing method Spree::User.with_attached_avatar.
    Creating scope :with_attached_avatar. Overwriting existing method Spree::User.with_attached_avatar.
    Creating scope :with_attached_avatar. Overwriting existing method Spree::User.with_attached_avatar.
    => *true*
    5 times!!! what i did wrong?
    k
    • 2
    • 10
  • s

    Stephen Dicks

    04/05/2022, 2:43 PM
    Looking at extensions to support paypal express, and found 2 although they both look somewhat neglected...? https://github.com/jtapia/better_solidus_paypal_express and https://bitbucket.org/36etcetera/solidus-paypal-express/ - anyone know where I should be looking?
    k
    • 2
    • 10
  • t

    Themi Megas

    04/06/2022, 9:13 AM
    Hey, I'm new and looking to play around with a deployment of solidus. I saw that there's a docker compose image provided at https://github.com/solidusio/solidus/blob/master/docker-compose.yml. Is that only configured for devlopment? Is their anything on their I should change before a deployment?
1...131415...39Latest