2011-05-29 93 views
1

如何從local.xml刪除<action method="addCartLink"></action>。這段代碼在customer.xml:從local.xml刪除操作

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

回答

2

有應該爲你做它稱爲removeLinkByUrltop.links的方法。我沒有測試過,所以你可能需要完整的網址,但要點是這樣的:

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

希望有所幫助!

謝謝, 喬

+0

我怎樣才能獲得完整的URL'結帳/車' – 2011-05-29 11:45:54