Omari Mubutu
01/12/2023, 11:21 AMGiven Reed
01/12/2023, 12:36 PMOmari Mubutu
01/12/2023, 12:58 PMNaoki Mi
01/12/2023, 2:53 PMOmari Mubutu
01/12/2023, 3:01 PMOmari Mubutu
01/12/2023, 3:08 PMon app/model/spree/order_decorator.rb Spree::Order.class_eval do
checkout_flow do
#go_to_state :address
#go_to_state :delivery
#go_to_state :payment
go_to_state :confirm,
end
end i commented out the steps i don't want since the address i update it from the backend and want the following states to the select only the default values
Given Reed
01/12/2023, 3:16 PMOmari Mubutu
01/12/2023, 3:19 PMGiven Reed
01/12/2023, 3:25 PM/app/decorators/embold/spree/order_decorator.rb
and it starts with
module Embold::OrderDecorator
def self.prepended(base)
base.insert_checkout_step :verify_address, {
before: :delivery
}
I wonder if your decorator is in the wrong spot. The guide points to a spot similar to what I'm using.Omari Mubutu
01/12/2023, 3:46 PM/app/decorators/malimali/spree/order_decorator.rb
module Malimali::OrderDecorator
def self.prepended(base)
base.remove_checkout_step :address
end
::Spree::Order.prepend self
end
for context i'm using solidus starter frontend. still it doesn't skip checkout step address.Given Reed
01/12/2023, 3:49 PM<http://Rails.logger.info|Rails.logger.info> "some message here that I can search development.log for"
Omari Mubutu
01/12/2023, 4:13 PMGiven Reed
01/12/2023, 4:15 PMNaoki Mi
01/13/2023, 5:54 AMOmari Mubutu
01/13/2023, 7:58 AMNaoki Mi
01/15/2023, 3:48 AM# config/application.rb
module SampleSolidusStore
class Application < Rails::Application
config.to_prepare do
# Load application's model / class decorators
Dir.glob(File.join(File.dirname(__FILE__), "../app/**/*_decorator*.rb")) do |c|
Rails.configuration.cache_classes ? require(c) : load(c)
end
end
# ...
end
end
Omari Mubutu
01/23/2023, 6:35 AM