开发者

Add "My Cart" to top.links magento in local.xml or checkout.xml?

Two parts to this question:

  1. How can I add My Cart to either local.xml or checkout.xml? I have a custom template, that never had it called. Looking for where it is being removed, but not sure I am looking in the right place.

I have tried adding to local.xml

<reference name="root">
    <reference name="top.links">

<action method="addCartLink"></action>

</reference>
 开发者_Python百科   </reference>

But it breaks magento. Basically I have a soft add to cart and want to pull the default magento "My Cart" to the header, so the ajax updates on page like it does in the default magento template.

2nd par - Where does the code for "My Cart" live to tweak it?


<reference name="top.links">
    <block type="checkout/links" name="checkout_cart_link">
        <action method="addCartLink"></action>
    </block>
</reference>

You may have to clear your cache.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜