Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/magento/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Magento 从local.xml中删除操作_Magento - Fatal编程技术网

Magento 从local.xml中删除操作

Magento 从local.xml中删除操作,magento,Magento,如何从local.xml中删除。customer.xml中的以下代码: <reference name="top.links"> <block type="checkout/links" name="checkout_cart_link"> <action method="addCheckoutLink"></action> <action method="addCart

如何从local.xml中删除
。customer.xml中的以下代码:

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

顶部有一个名为
removeLinkByUrl
的链接,它应该可以为您实现。我尚未对此进行测试,因此您可能需要完整的URL,但要点如下:

<reference name="top.links">
    <action method="removeLinkByUrl"><url>checkout/cart</url></action>
</reference>

结帐/购物车
希望有帮助

谢谢,
Joe

如何获取完整的url
checkout/cart