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.
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:
Any suggestions on how to remove those items from the front end??
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; ?>
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
Could anyone please tell me how and where i do this?
Have version 1.5.1
Thanks
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
Could anyone please tell me how and where i do this?
Have version 1.5.1
Thanks
Edit module/account.tplSherlockHolmes 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.
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
<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
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
See http://www.opencart.com/index.php?route ... n_id=11499
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.
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.
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.
Who is online
Users browsing this forum: No registered users and 56 guests