开发者

add step to checkitout

开发者 https://www.devze.com 2023-03-22 15:51 出处:网络
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.

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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消