Page 1 of 1

how to remove all mentions of 'downloads'?

Posted: Wed Aug 01, 2012 2:37 pm
by sb12759
I have version 1.5.3
And I have "allow downloads" set to no in the admin.
Why are all the "download" links still there? You would think that the reason for this setting in the admin is to make those links go away if you don't offer downloads right?
How would I remove those links from all spots on the site? I think there are links on the site map page, my account page (under my orders), and under the account module. Could be more I guess too.
Any extensions that do this?

also, this brings up another question - Isn't there a way to edit what is listed under the 'accounts' module?

Thanks!

Re: how to remove all mentions of 'downloads'?

Posted: Thu Aug 02, 2012 1:30 am
by anung
Open account.tpl in
catalog-->view-->theme-->yourtheme-->template--->account
and
catalog-->view-->theme-->yourtheme-->template--->module
find and remove this code

Code: Select all

<li><a href="<?php echo $download; ?>"><?php echo $text_download; ?></a></li>
it is to remove link download in account page and account module.

note*
backup account.tpl first before you do this.

Re: how to remove all mentions of 'downloads'?

Posted: Thu Aug 02, 2012 5:48 am
by sb12759
Thank you! That worked! Now another problem:

When you place an order and get the - 'Your Order Has Been Processed!' page, you will still get "If your purchase has an associated download, you can go to the account downloads page to view them"

I tried to remove that line from catalog:language:english:checkout:success.php - <p>If your purchase has an associated download, you can go to the account <a href="%s">downloads</a> page to view them.</p>

but then link for the line below it - "Please direct any questions you have to the store owner" - went to the downloads page instead of the contact us page!

Can somebody help me with this?

Re: how to remove all mentions of 'downloads'?

Posted: Fri Aug 03, 2012 1:52 am
by anung
open success.php in
catalog-->controller-->checkout
find and remove this code

Code: Select all

$this->url->link('account/download', '', 'SSL')

Re: how to remove all mentions of 'downloads'?

Posted: Fri Aug 03, 2012 2:51 am
by sb12759
Hmmm... So I tried that, and I get - Warning: sprintf() [function.sprintf]: Too few arguments in /home3/modolivi/public_html/catalog/controller/checkout/success.php on line 53
at the top of the page and all the main text is gone from the page (except "your order has been processed")

So this is what I have:

if ($this->customer->isLogged()) {
$this->data['text_message'] = sprintf($this->language->get('text_customer'), $this->url->link('account/account', '', 'SSL'), $this->url->link('account/order', '', 'SSL'), $this->url->link('information/contact'));

Do you see a problem?

Thanks for your help!

Re: how to remove all mentions of 'downloads'?

Posted: Fri Aug 03, 2012 5:19 am
by anung
Are you use commersial theme?

Re: how to remove all mentions of 'downloads'?

Posted: Fri Aug 03, 2012 6:47 am
by sb12759
It is a custom theme but I started with a direct copy of the default theme and have just made some changes mostly to the stylesheet.
Any ideas?

Re: how to remove all mentions of 'downloads'?

Posted: Sat Aug 04, 2012 1:15 am
by anung
Because before I give a solution, I've been testing it on the default theme OpenCart, and it's no problem.

Re: how to remove all mentions of 'downloads'?

Posted: Sat Aug 04, 2012 7:26 am
by sb12759
Well, strange! I just tried it again and have the same problem. I haven't changed any other code on this file.
Any ideas?

Thanks!

Re: how to remove all mentions of 'downloads'?

Posted: Sat Aug 04, 2012 10:10 am
by MaxD
If someone produce vQmod of this, I will gladly include it into free Stripper package.

Re: how to remove all mentions of 'downloads'?

Posted: Sat Aug 11, 2012 1:11 am
by alijzari
go to catalog/langauge/english/checkout and just delete the line that has the download part in it including the href

Re: how to remove all mentions of 'downloads'?

Posted: Tue Aug 21, 2012 12:43 pm
by sb12759
alijzari wrote:go to catalog/langauge/english/checkout and just delete the line that has the download part in it including the href
That line that has download in it is not on checkout.php. It is on success.php as far as I can see. So it is back to the same problem (see the top of the thread)

Has anyone figured this out? Thanks!

Re: how to remove all mentions of 'downloads'?

Posted: Thu Aug 23, 2012 11:23 pm
by lundgren2
You have to remove the part from catalog/controller/checkout/success.php:

Code: Select all

, $this->url->link('account/download', '', 'SSL')
and then remove

Code: Select all

<p>If your purchase has an associated download, you can go to the account <a href="%s">downloads</a> page to view them.</p>
from catalog/language/english/checkout/success.php and it should works!

Re: how to remove all mentions of 'downloads'?

Posted: Mon Sep 03, 2012 10:34 pm
by MaxD
Stripper got updated with No Downloads strip.

Re: how to remove all mentions of 'downloads'?

Posted: Mon Oct 08, 2012 10:49 am
by lmw1
I used "Stripper" but the "Downloads" link still shows in the site map.

Any ideas on how to remove it from there?

Respectfully,
Leonard Michael

Re: how to remove all mentions of 'downloads'?

Posted: Thu Mar 07, 2013 11:05 pm
by siptec
catalog-->view-->theme-->yourtheme-->template--->information
sitemap.tpl

remove

Code: Select all

<li><a href="<?php echo $download; ?>"><?php echo $text_download; ?></a></li>

Re: how to remove all mentions of 'downloads'?

Posted: Mon Mar 11, 2019 2:42 am
by Johnny2017
lundgren2 wrote:
Thu Aug 23, 2012 11:23 pm
You have to remove the part from catalog/controller/checkout/success.php:

Code: Select all

, $this->url->link('account/download', '', 'SSL')
and then remove

Code: Select all

<p>If your purchase has an associated download, you can go to the account <a href="%s">downloads</a> page to view them.</p>
from catalog/language/english/checkout/success.php and it should works!
Excellent!!!!! Worked

Re: how to remove all mentions of 'downloads'?

Posted: Mon Mar 11, 2019 2:55 am
by johnp