Jump to content



Member Since 10 May 2011
Offline Last Active Apr 14 2013 03:37 PM

#123717 How to remove "Downloads" from "My Account"?

Posted by DBN on 14 October 2011 - 04:25 PM

I know this is an old topic, but to help anyone who might find this topic, here is another suggestion for a fix:

Instead of editing the cs-cart code, add a new file

The file should contain:
{hook name="profiles:my_account_menu"}
{if $auth.user_id}
<li><a href="{"profiles.update"|fn_url}" rel="nofollow" class="underlined">{$lang.profile_details}</a></li>
<li><a href="{if $controller == "auth" && $mode == "login_form"}{$config.current_url|fn_url}{else}{"auth.login_form?return_url=`$return_current_url`"|fn_url}{/if}" rel="nofollow" class="underlined">{$lang.sign_in}</a> / <a href="{"profiles.add"|fn_url}" rel="nofollow" class="underlined">{$lang.register}</a></li>
<li><a href="{"orders.search"|fn_url}" rel="nofollow" class="underlined">{$lang.orders}</a></li>

This is an extract of my_account.tpl with the download item removed.

Doing it this way keeps all your changes in one place and means your changes are less likely to be lost during an upgrade.