2011-05-07 64 views

回答

5

CheckoutController具有隱含的編輯操作。編輯本身沒有直接的邏輯。

然而,存在的的before_filter:load_order這反過來觸發before_ [狀態]回調方法,這取決於哪個狀態結帳是

0

有一個在施普雷沒有編輯操作:: CheckoutController但它呈現結帳/ edit.html.erb。引用超類動作。以下引用來自狂熱文檔

The edit action renders the checkout/edit.html.erb template, which then renders a partial with the current state, such as app/views/spree/checkout/address.html.erb. This partial shows state-specific fields for the user to fill in. If you choose to customize the checkout flow to add a new state, you will need to create a new partial for this state.