coquerel
03/27/2023, 6:22 PMMatheus Matos
03/27/2023, 7:00 PMStore
model. There's something available to learn more about it? Thanks!Matheus Matos
03/28/2023, 4:41 AMSpree::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?christopher patterson
03/30/2023, 5:36 AMFotios Lindiakos
03/30/2023, 3:42 PMSpree::Order
but we'd like to just have to process a single payment transactionSabo
03/31/2023, 11:50 PMSpree::BackendConfiguration
app/overrides/backend.rb
# 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
Sabo
04/04/2023, 1:31 PMSpree::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 ?Ernesto Ponce
04/04/2023, 11:40 PMchristopher patterson
04/05/2023, 12:15 AMFred Jeanne
04/05/2023, 4:44 PMMichael C
04/05/2023, 6:45 PM/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?Nikodem Górak
04/05/2023, 8:25 PMMohammad Humza
04/06/2023, 5:03 AMFred Jeanne
04/06/2023, 8:53 AMFred Jeanne
04/06/2023, 11:38 AMRoman Kapustynskyi
04/07/2023, 5:37 PMgem "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?Diego
04/08/2023, 3:06 PMCompleted 500 Internal Server Error in 125ms (ActiveRecord: 62.2ms | Allocations: 20727)
ArgumentError (wrong number of arguments (given 2, expected 1)):
Relevant gems:
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?Maaloum Ely Cheikh
04/08/2023, 3:34 PMErnesto Ponce
04/08/2023, 7:03 PMMissing partial checkouts/payment/_braintree with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :jbuilder]}.
Could someone help me?Roman Kapustynskyi
04/09/2023, 9:02 PMsolidus_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!Mohammad Humza
04/10/2023, 10:35 AMMohammad Humza
04/10/2023, 10:36 AMGiven Reed
04/10/2023, 8:53 PM/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!Natalia Ramirez
04/11/2023, 1:49 PMconfig.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:
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!Nikodem Górak
04/12/2023, 10:22 AMSabo
04/12/2023, 3:18 PM# ...
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
Muhammad Usama Yousaf
04/12/2023, 3:29 PMDaniel Senff
04/14/2023, 8:34 AMBrandon White
04/14/2023, 6:01 PMbenmorganio
04/16/2023, 1:26 AMtarget_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