2011-05-07 65 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.