如何刪除Spree結帳例程中的帳單(或發貨)地址?Spree刪除帳單地址
Spree::Order.class_eval do
checkout_flow do
go_to_state :address
go_to_state :payment, :if => lambda { |order| order.payment_required? }
go_to_state :confirm, :if => lambda { |order| order.confirmation_required? }
go_to_state :complete
remove_transition :from => :delivery, :to => :confirm
end
end
由於不必傳送步驟:我使用的是大禮包1.3
我已經試過了,但我仍然得到驗證錯誤(在交付爲必填項)。貨物字段已從您的地址表單中刪除。 – Maoko
是的..我也得到驗證錯誤:( – shajin