gpt4 book ai didi

Magento - 如何在我的帐户导航上添加/删除链接?

转载 作者:行者123 更新时间:2023-12-03 08:59:10 25 4
gpt4 key购买 nike

我正在尝试删除我的帐户导航上的链接。我查看了 customer/account/navigation.phtml 模板。模板通过 $this->getLinks() 获取链接。如何编辑 getLinks() 方法以便删除一些链接?

最佳答案

打开导航.phtml

app/design/frontend/yourtheme/default/template/customer/account/navigation.phtml

代替
<?php $_links = $this->getLinks(); ?>

带有要删除的未设置链接
<?php 
$_count = count($_links);
unset($_links['account']); // Account Information
unset($_links['account_edit']); // Account Information
unset($_links['address_book']); // Address Book
unset($_links['orders']); // My Orders
unset($_links['billing_agreements']); // Billing Agreements
unset($_links['recurring_profiles']); // Recurring Profiles
unset($_links['reviews']); // My Product Reviews
unset($_links['wishlist']); // My Wishlist
unset($_links['OAuth Customer Tokens']); // My Applications
unset($_links['newsletter']); // Newsletter Subscriptions
unset($_links['downloadable_products']); // My Downloadable Products
unset($_links['tags']); // My Tags
unset($_links['invitations']); // My Invitations
unset($_links['enterprise_customerbalance']); // Store Credit
unset($_links['enterprise_reward']); // Reward Points
unset($_links['giftregistry']); // Gift Registry
unset($_links['enterprise_giftcardaccount']); // Gift Card Link
?>

关于Magento - 如何在我的帐户导航上添加/删除链接?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1977824/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com