Post by techiechic » Tue Sep 28, 2010 12:17 pm

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.

User avatar
Newbie

Posts

Joined
Tue Sep 28, 2010 12:05 pm


Post by maxno » Tue Sep 28, 2010 11:03 pm

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

remove the line download

User avatar
New member

Posts

Joined
Thu Jul 22, 2010 12:27 am

Post by nyltak » Fri Jul 29, 2011 5:57 am

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>

New member

Posts

Joined
Wed Jul 20, 2011 9:56 am

Post by SherlockHolmes » Fri Oct 21, 2011 5:02 pm

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??

New member

Posts

Joined
Mon Sep 19, 2011 6:37 pm

Post by Solan » Thu Nov 17, 2011 6:37 am

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 :)

Active Member

Posts

Joined
Sat Feb 19, 2011 7:34 pm

Post by qahar » Sun Nov 20, 2011 3:08 pm

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

User avatar
Expert Member

Posts

Joined
Tue Jun 29, 2010 10:24 pm
Location - Indonesia

Post by Solan » Sun Nov 27, 2011 8:54 am

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

Active Member

Posts

Joined
Sat Feb 19, 2011 7:34 pm

Post by just_plain_alison » Fri Apr 19, 2013 6:22 am

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


Posts

Joined
Fri Apr 19, 2013 6:19 am

Post by olimax » Thu Apr 25, 2013 3:52 pm

Useful. Should be in core. Thanks
Works in 1.5.2.1 too

User avatar
New member

Posts

Joined
Thu Dec 22, 2011 5:08 pm
Location - Barcelona & London

Post by MartinOxby » Sun Jul 28, 2013 12:39 am

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.

Newbie

Posts

Joined
Sun Jul 28, 2013 12:38 am

Post by rocky.ajwani » Sat Jul 26, 2014 2:41 am

People using custom theme can follow the same thing mentioned above...in custom theme folder

User avatar
Newbie

Posts

Joined
Mon May 05, 2014 2:05 am

Post by mrlawrencelam » Mon Oct 12, 2020 5:05 am

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.

User avatar
Newbie

Posts

Joined
Mon Oct 12, 2020 4:59 am
Who is online

Users browsing this forum: No registered users and 24 guests