Page 1 of 1

Remove Download Link

Posted: Tue Sep 28, 2010 12:17 pm
by techiechic
I've disabled downloads from the backend, but there is still a "Downloads" option available on the account page. I would have expected this to go away if the downloads option was disabled.

Re: Remove Download Link

Posted: Tue Sep 28, 2010 11:03 pm
by maxno
catalog\view\theme\default\template\account\account.tpl

remove the line download

Re: Remove Download Link

Posted: Fri Jul 29, 2011 5:57 am
by nyltak
this may be helpful also...


\catalog\view\theme\default\template\module\account.tpl
remove
<li><a href="<?php echo $download; ?>"><?php echo $text_download; ?></a></li>

Re: Remove Download Link

Posted: Fri Oct 21, 2011 5:02 pm
by SherlockHolmes
I have tried commenting out and taking out the lines from the code as mentioned above. However my front end still shows Downloads, Newsletter and Wish List in the My Account Column on the right: http://www.toddlerstore.in/index.php?ro ... ount/login

My account.tpl file looks like this:

Code: Select all

<?php echo $header; ?><?php echo $column_left; ?><?php echo $column_right; ?>
<div id="content"><?php echo $content_top; ?>
  <div class="breadcrumb">
    <?php foreach ($breadcrumbs as $breadcrumb) { ?>
    <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
    <?php } ?>
  </div>
  <h1><?php echo $heading_title; ?></h1>
  <?php if ($success) { ?>
  <div class="success"><?php echo $success; ?></div>
  <?php } ?>
  <h2><?php echo $text_my_account; ?></h2>
  <div class="content">
    <ul>
      <li><a href="<?php echo $edit; ?>"><?php echo $text_edit; ?></a></li>
      <li><a href="<?php echo $password; ?>"><?php echo $text_password; ?></a></li>
      <li><a href="<?php echo $address; ?>"><?php echo $text_address; ?></a></li>
<!--/*<li><a href="<?php echo $wishlist; ?>"><?php echo $text_wishlist; ?></a></li>*/-->
    </ul>
  </div>
  <h2><?php echo $text_my_orders; ?></h2>
  <div class="content">
    <ul>
      <li><a href="<?php echo $order; ?>"><?php echo $text_order; ?></a></li>
<!--/*<li><a href="<?php echo $download; ?>"><?php echo $text_download; ?></a></li>*/-->
<!--/*<li><a href="<?php echo $reward; ?>"><?php echo $text_reward; ?></a></li>*/-->
      <li><a href="<?php echo $return; ?>"><?php echo $text_return; ?></a></li>
      <li><a href="<?php echo $transaction; ?>"><?php echo $text_transaction; ?></a></li>
    </ul>
  </div>
    <?php echo $content_bottom; ?></div>
<?php echo $footer; ?> 
Any suggestions on how to remove those items from the front end??

Re: Remove Download Link

Posted: Thu Nov 17, 2011 6:37 am
by Solan
Ive been reading many threads but cant find the solution.

I´m not going to have anything for my customers to download so i would want to get rid of everything that has to do with that O0

Could anyone please tell me how and where i do this?

Have version 1.5.1

Thanks :)

Re: Remove Download Link

Posted: Sun Nov 20, 2011 3:08 pm
by qahar
SherlockHolmes wrote:I have tried commenting out and taking out the lines from the code as mentioned above. However my front end still shows Downloads, Newsletter and Wish List in the My Account Column on the right.
Edit module/account.tpl

[SOLVED] Remove Download Link

Posted: Sun Nov 27, 2011 8:54 am
by Solan
I got rid of them by deleting the line:
<li><a href="<?php echo $download; ?>"><?php echo $text_download; ?></a></li>

catalog/view/theme/default/template/account/account.tpl

and

catalog/view/theme/default/template/module/account.tpl

Re: Remove Download Link

Posted: Fri Apr 19, 2013 6:22 am
by just_plain_alison
I've wrapped this up in a vQmod extension, to make life a little easier. It'll show or hide the downloads links depending on whether you've enabled or disabled downloads in the store settings.

See http://www.opencart.com/index.php?route ... n_id=11499

Re: Remove Download Link

Posted: Thu Apr 25, 2013 3:52 pm
by olimax
Useful. Should be in core. Thanks
Works in 1.5.2.1 too

Re: Remove Download Link

Posted: Sun Jul 28, 2013 12:39 am
by MartinOxby
Thanks so much for this. I agree with the sentiment of the above - should definitely be in the core, seems an obvious 'missing link' to me.

Re: Remove Download Link

Posted: Sat Jul 26, 2014 2:41 am
by rocky.ajwani
People using custom theme can follow the same thing mentioned above...in custom theme folder

Re: Remove Download Link

Posted: Mon Oct 12, 2020 5:05 am
by mrlawrencelam
catalog/view/theme/default/template/common/header.twig

In OpenCart version 3.0.3.6 (it is 12/OCT/2020 when I am typing this), just remove the related "Downloads" line in the file above. Extremely simple.