Hi everybody. I'm trying to remove the delivery st...
# support
j
Hi everybody. I'm trying to remove the delivery step in order to sell digital products but anything that i have tried works. I have tried https://guides.solidus.io/cookbook/redefining-checkout-steps#removing-checkout-steps . Any help would be appreciated
k
Hello, what’s the outcome of that? Do you see an error?
j
The delivery step just not dissapear, I am stuck in this view. I need to remove only delivery step
k
this is the address step, right?
Ah, saw the error now
j
Sure, but you can see the deliver step there, and the calculations is part of delivery right?
k
can you paste the code you changed please?
j
module Canstore module Spree module OrderDecorator def self.prepended(base) base.remove_checkout_step :delivery end :Spree:Order.prepend self end end end
The path is /app/decorators/canstore/spree/order_decorator.rb
I'm using ruby on rails 7
k
do you have any other decorator working? In other words, did you verify that that file is correctly loaded?
In this section, there is something to add to config/application.rb. Did you already do that?
j
I'm seeing that solidus don't load this kind of files anymore automaticaly. Do i need to create a override?
Do I need to create an overrridee instead decorator? are the docs of this feature deprecatted?
e
I think you have to call some methods invoked in the removed transition in another transition
k
yes, the overrides folder is better, we need to update the guides
j
@kennyadsl @Edwin Cruz thanks for your help. I realy appreciate that
k
https://github.com/solidusio/edgeguides/pull/109 Can I ask you the favor to check if this works instead?
j
Sure, I will try this
It worked, thanks for your help and this amazing project