添加检查步骤
我的公司刚刚购买了 Ivan 的 CheckItOut 扩展,我正在尝试添加一个步骤。
事实上,我确实已将此步骤集成到“常规”OPC 中。
查看扩展的代码,我发现布局 checkitout.xml 文件中使用了一个 addCheckoutStepToLayout
方法。如果我将这一行放入 checkout.layout
块中:
<action method="addCheckoutStepToLayout"><layout>right-bottom</layout><step>points</step></action>
该步骤已添加,但我尝试通过我的扩展布局 .xml 文件添加它。
因此,我尝试更新 checkitout 句柄:
<ecomdev_checkitout_layout>
<reference name="content">
<reference name="checkout.layout">
<action method="addCheckoutStepToLayout"><layout>right-bottom</layout><step>points</step></action>
</reference>
</reference>
</ecomdev_checkitout_layout>
通过常规 checkout_onepage_index
句柄更新块:
<checkout_onepage_index>
<reference name="content">
<reference name="checkout.layout">
<action method="addCheckoutStepToLayout"><layout>right-bottom</layout><step>points</step></action>
</reference>
</reference>
</checkout_onepage_index>
使用和不使用
,但直到没有运气现在。
我很高兴阅读您的建议,谢谢
My company have just baught Ivan's CheckItOut extension, and I'm trying to add a step in it.
Actually, I did have this step integrated into "regular" OPC.
Looking at the extension's code, I see that there is a addCheckoutStepToLayout
method used in the layout checkitout.xml file. If I had this line into checkout.layout
block:
<action method="addCheckoutStepToLayout"><layout>right-bottom</layout><step>points</step></action>
the step is added, but I'm trying to add it via my extension layout .xml file.
So I've tried updating the checkitout handle:
<ecomdev_checkitout_layout>
<reference name="content">
<reference name="checkout.layout">
<action method="addCheckoutStepToLayout"><layout>right-bottom</layout><step>points</step></action>
</reference>
</reference>
</ecomdev_checkitout_layout>
updating the block through regular checkout_onepage_index
handle:
<checkout_onepage_index>
<reference name="content">
<reference name="checkout.layout">
<action method="addCheckoutStepToLayout"><layout>right-bottom</layout><step>points</step></action>
</reference>
</reference>
</checkout_onepage_index>
with and without <reference name="content">
, but no luck until now.
I'd be glad reading your suggestions, thx
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最后我直接问了作者,解决办法很简单。
当我尝试通过模块的布局文件更新它时,该块尚未创建:我已使其依赖于 Ecomdev_Checkitout 并且现在一切正常。
Eventually I asked the author directly, and the solution was quite simple.
The block wasn't created yet when I was trying to update it through my module's layout file: I've made it depends on Ecomdev_Checkitout and everything is working fine now.