Tom Wilson
03/10/2022, 10:26 PMOrderShipping#ship
invoke order.recalculate
? That seems... a little odd to me.Tom Wilson
03/10/2022, 10:27 PMJared Norman
Sajid Ali
03/14/2022, 6:06 AMThis 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.
Oleksandr Pozniak
03/15/2022, 11:59 AMspree_user_confirmation_url'
How i can fix it? Thanks!
spree.rb
Spree::Auth::Config[:confirmable] = true
devise.rb
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
Sajid Ali
03/16/2022, 8:29 AMsolidus_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'
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)
Holger Frohloff
03/16/2022, 12:50 PMexport 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
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)>'
Oleksandr Pozniak
03/18/2022, 9:33 AMStarted 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…Yasser
03/19/2022, 8:57 PMStephen Dicks
03/21/2022, 12:04 PMDelph Soft
03/21/2022, 2:29 PMXan
03/21/2022, 6:33 PMGiven Reed
03/21/2022, 8:16 PMOleksandr Pozniak
03/22/2022, 1:12 PMgem '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:
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'
Sajid Ali
03/24/2022, 7:25 AMLennart von Velsen
03/26/2022, 10:40 AMAndrew
03/28/2022, 8:56 AMReset 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?Oleksandr Pozniak
03/29/2022, 9:23 AMSpree::PermittedAttributes.product_attributes << [specials_spree_product: [:id]]
base.accepts_nested_attributes_for :specials, :special_spree_products
Not work 😞
ActiveModel::UnknownAttributeError (unknown attribute 'specials_spree_product' for Spree::Product.
Abby Hudson
03/29/2022, 1:06 PMprices
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?Tyler Kocheff
03/29/2022, 6:42 PMsolidus_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.Stephen Dicks
03/30/2022, 2:12 PMOleksandr Pozniak
03/30/2022, 2:30 PMdef prepended(base)
base.has_one :user_profile, dependent: :destroy
end
Spree::User.prepend(self)
Why it doesn’t work? 😞Tyler Pulse
03/30/2022, 9:00 PMTyler Pulse
03/30/2022, 9:02 PMOleksandr Pozniak
03/31/2022, 1:41 PMbefore_action :authenticate_spree_user!
and it’s didn’t work 😞 what i did wrong?
Here’s my example of request:
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?Andre Schweighofer
04/04/2022, 1:58 PMremove
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?Maksym Nemashkalo
04/04/2022, 6:13 PMSpree::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?Oleksandr Pozniak
04/05/2022, 8:28 AMbase.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?Stephen Dicks
04/05/2022, 2:43 PMThemi Megas
04/06/2022, 9:13 AM