Criss Frost
04/16/2023, 7:48 PMTyler Kocheff
04/17/2023, 6:40 PMuninitialized constant Spree::PromotionAction
. This code worked in a Rails 6 app, but this one's on Rails 7 so maybe this has to do with Zeitwerk. Seems like any initializer which tries to access anything in Spree::
throws an error. Tried surrounding with a to_prepare
and spree.config
but no luck.
require "./app/models/embold/promotion/actions/free_product.rb"
Rails.application.config.spree.promotions.actions << "Embold::Promotion::Actions::FreeProduct"
and the line of free_product.rb
that it's complaining about:
module Embold
module Promotion
module Actions
class FreeProduct < ::Spree::PromotionAction
Jérémy Lannes
04/18/2023, 4:02 PMSabo
04/19/2023, 1:22 PMmodule Spree::Core::Search
class Kit
...
def get_base_scope
base_scope = Spree::Kit.display_includes.available
base_scope = get_kits_conditions_for(base_scope, @properties[:keywords])
base_scope = add_search_scopes(base_scope)
base_scope = add_eagerload_scopes(base_scope)
...
end
end
From the web console the available method (Spree:Kit:Scopes) is working, but Spree:CoreSearch:Kit doesn't seem to find itGiven Reed
04/19/2023, 1:29 PMWe are unable to calculate shipping rates for the selected items.
when I try to advance to the delivery step. I've searched and saw possible causes could be:
- no shipping methods with calculators that match the order's currency
- no shipping methods that match the shipping category of the items in the order
- no shipping methods available for the order's zone
I've checked the shipping method and it's assigned to the "Default" shipping category, it's assigned to the "North America" zone. I've tried both "flat rate" set to $0/"USD" and "flat percent" set to 0 (and doesn't have a currency).
Checking the product, it's also assigned to the "Default" shipping category and the address I'm testing with is in North America. I'm at a loss as to what else could be missing.
The only thing I can think that's different than any other shop I've worked on is that this one uses dynamic variants. That doesn't need anything else accounted for, does it?Ulysses
04/19/2023, 4:53 PMloic
04/20/2023, 10:38 AMloic
04/20/2023, 10:38 AMvictor
04/21/2023, 3:18 PMTom Wilson
04/24/2023, 2:34 PMextra_taxon_validations
preference, run Spree::Taxon.all.select(&:valid?)
, and ensure you have empty arrays. But... shouldn't you not have an empty array here if all of your taxons are valid? 🙂Georg Keferböck
04/24/2023, 4:54 PMUlysses
04/24/2023, 5:11 PMSpree::ShippingRate
responds to `#delivery_time`", delivery_time its a method that I have to implement? Or have another way to show the delivery time in Delivery step?Omari Mubutu
04/25/2023, 3:50 PMm b
04/25/2023, 5:49 PMloic
04/26/2023, 8:16 AMJefferson Bernal Cardona
04/26/2023, 10:00 PMFred Jeanne
04/28/2023, 10:17 AMRocha Andre
05/02/2023, 8:57 AMWhen using the Payment Intents API, be aware that the charge flow will be a bit different than when using the old V2 API or Elements. It's advisable that all Payment Intents charges are captured only by using the Solidus backend, as it is the final source of truth in regards of Solidus orders payments.
Am I correct to understand that it’s not recommended to automatically capture payments in Solidus, and that payments should be captured manually? That seemed strange so I figured I’d ask.Tom Wilson
05/02/2023, 10:14 PMCartons
tab of an order - they get an authorization failure. But it is really opaque to me why that is failing, and what permission they would need to be granted in order to actually see that tab. Any pointers here on why that is the case, or how to fix it, would be greatly appreciated!Tom Wilson
05/02/2023, 10:16 PMTom Wilson
05/02/2023, 10:45 PMZach Feldman
05/03/2023, 2:29 PMWes Chang
05/03/2023, 9:43 PMPOST /orders/${_orderNumber_}/line_items
Request body:
{
"line_item": {
"quantity": 1,
"variant_id": 60
},
"subscription_line_item": {
"quantity": 1,
"interval_length": "4",
"interval_units": "week",
"subscribable_id": 60
}
}
Response:
{
"status": 500,
"error": "Internal Server Error"
}
Stack Trace (from GCP logs):
Completed 500 Internal Server Error in 122ms (ActiveRecord: 66.0ms | Allocations: 19965)
FATAL -- : [45b5cd62-596f-47a7-9791-658e62037f87]
ArgumentError (wrong number of arguments (given 2, expected 1)):
DEFAULT 2023-05-03T21:24:22.395905Z [45b5cd62-596f-47a7-9791-658e62037f87]
solidus_subscriptions (5b4c7052ace3) app/models/solidus_subscriptions/promotion/rules/subscription_creation_order.rb:27:in `eligible?'
solidus_core (3.4.1) app/models/spree/promotion.rb:166:in `block in eligible_rules'
solidus_core (3.4.1) app/models/spree/promotion.rb:173:in `all?'
solidus_core (3.4.1) app/models/spree/promotion.rb:173:in `eligible_rules'
solidus_core (3.4.1) app/models/spree/promotion.rb:156:in `eligible?'
solidus_core (3.4.1) app/models/spree/promotion.rb:222:in `line_item_actionable?'
solidus_core (3.4.1) app/models/spree/promotion/actions/create_item_adjustments.rb:92:in `block in line_items_to_adjust'
activerecord (7.0.4.3) lib/active_record/relation/delegation.rb:88:in `each'
activerecord (7.0.4.3) lib/active_record/relation/delegation.rb:88:in `each'
activerecord (7.0.4.3) lib/active_record/relation/query_methods.rb:310:in `select'
activerecord (7.0.4.3) lib/active_record/relation/query_methods.rb:310:in `select'
solidus_core (3.4.1) app/models/spree/promotion/actions/create_item_adjustments.rb:90:in `line_items_to_adjust'
solidus_core (3.4.1) app/models/spree/promotion/actions/create_item_adjustments.rb:27:in `perform'
solidus_core (3.4.1) app/models/spree/promotion.rb:128:in `block in activate'
activerecord (7.0.4.3) lib/active_record/relation/delegation.rb:88:in `each'
activerecord (7.0.4.3) lib/active_record/relation/delegation.rb:88:in `each'
solidus_core (3.4.1) app/models/spree/promotion.rb:127:in `map'
solidus_core (3.4.1) app/models/spree/promotion.rb:127:in `activate'
solidus_core (3.4.1) app/models/spree/promotion_handler/cart.rb:28:in `block in activate'
solidus_core (3.4.1) app/models/spree/promotion_handler/cart.rb:26:in `each'
solidus_core (3.4.1) app/models/spree/promotion_handler/cart.rb:26:in `activate'
solidus_core (3.4.1) app/models/spree/order_contents.rb:77:in `after_add_or_remove'
solidus_core (3.4.1) app/models/spree/order_contents.rb:24:in `add'
solidus_api (3.4.1) app/controllers/spree/api/line_items_controller.rb:14:in `create'
actionpack (7.0.4.3) lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
actionpack (7.0.4.3) lib/abstract_controller/base.rb:215:in `process_action'
actionpack (7.0.4.3) lib/action_controller/metal/rendering.rb:53:in `process_action'
actionpack (7.0.4.3) lib/abstract_controller/callbacks.rb:234:in `block in process_action'
activesupport (7.0.4.3) lib/active_support/callbacks.rb:118:in `block in run_callbacks'
solidus_api (3.4.1) app/controllers/spree/api/base_controller.rb:162:in `block in lock_order'
solidus_core (3.4.1) app/models/spree/order_mutex.rb:29:in `with_lock!'
solidus_api (3.4.1) app/controllers/spree/api/base_controller.rb:162:in `lock_order'
Any insight would be greatly appreciated!Jefferson Bernal Cardona
05/04/2023, 5:13 AMjakemumu
05/07/2023, 7:49 PMjakemumu
05/08/2023, 4:11 AMTom Wilson
05/08/2023, 3:03 PMsolidus_stripe 4.4.0
, and we use it mostly to configure payment methods - so we're using the Spree::PaymentMethod::StripeCreditCard
from the gem. (We don't use any of the webhooks directly or the frontend integration in our particular setup). Is there any good guidance on how to update the gem from v4 to v5?Tom Wilson
05/08/2023, 3:05 PMStripeCreditCard
is removed in the latest version of the gem, so I'm trying to understand how a store is expected to upgrade this dependency.elia
05/08/2023, 3:10 PMelia
05/08/2023, 3:13 PM