Post by sb12759 » Wed Aug 01, 2012 2:37 pm

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!

New member

Posts

Joined
Fri May 18, 2012 4:58 am

Post by anung » Thu Aug 02, 2012 1:30 am

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.

User avatar
Active Member

Posts

Joined
Fri Mar 30, 2012 10:32 am
Location - Indonesia

Post by sb12759 » Thu Aug 02, 2012 5:48 am

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?

New member

Posts

Joined
Fri May 18, 2012 4:58 am

Post by anung » Fri Aug 03, 2012 1:52 am

open success.php in
catalog-->controller-->checkout
find and remove this code

Code: Select all

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

User avatar
Active Member

Posts

Joined
Fri Mar 30, 2012 10:32 am
Location - Indonesia

Post by sb12759 » Fri Aug 03, 2012 2:51 am

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!

New member

Posts

Joined
Fri May 18, 2012 4:58 am

Post by anung » Fri Aug 03, 2012 5:19 am

Are you use commersial theme?

User avatar
Active Member

Posts

Joined
Fri Mar 30, 2012 10:32 am
Location - Indonesia

Post by sb12759 » Fri Aug 03, 2012 6:47 am

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?

New member

Posts

Joined
Fri May 18, 2012 4:58 am

Post by anung » Sat Aug 04, 2012 1:15 am

Because before I give a solution, I've been testing it on the default theme OpenCart, and it's no problem.

User avatar
Active Member

Posts

Joined
Fri Mar 30, 2012 10:32 am
Location - Indonesia

Post by sb12759 » Sat Aug 04, 2012 7:26 am

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!

New member

Posts

Joined
Fri May 18, 2012 4:58 am

Post by MaxD » Sat Aug 04, 2012 10:10 am

If someone produce vQmod of this, I will gladly include it into free Stripper package.

Cartless (free) - "buy" button instead of "add to cart"
Stripper (free) - strip parts of OpenCart


User avatar
Active Member

Posts

Joined
Fri Jul 06, 2012 6:37 pm


Post by alijzari » Sat Aug 11, 2012 1:11 am

go to catalog/langauge/english/checkout and just delete the line that has the download part in it including the href

Newbie

Posts

Joined
Sat Aug 11, 2012 1:10 am

Post by sb12759 » Tue Aug 21, 2012 12:43 pm

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!

New member

Posts

Joined
Fri May 18, 2012 4:58 am

Post by lundgren2 » 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!

Newbie

Posts

Joined
Thu Aug 23, 2012 11:18 pm

Post by MaxD » Mon Sep 03, 2012 10:34 pm

Stripper got updated with No Downloads strip.

Cartless (free) - "buy" button instead of "add to cart"
Stripper (free) - strip parts of OpenCart


User avatar
Active Member

Posts

Joined
Fri Jul 06, 2012 6:37 pm


Post by lmw1 » Mon Oct 08, 2012 10:49 am

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

New member

Posts

Joined
Mon Jun 04, 2012 1:44 pm

Post by siptec » Thu Mar 07, 2013 11:05 pm

catalog-->view-->theme-->yourtheme-->template--->information
sitemap.tpl

remove

Code: Select all

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

User avatar
New member

Posts

Joined
Mon Sep 17, 2012 11:32 pm

Post by Johnny2017 » Mon Mar 11, 2019 2:42 am

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

Newbie

Posts

Joined
Wed Aug 23, 2017 12:05 pm

Post by johnp » Mon Mar 11, 2019 2:55 am


Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD 2.6.1 lover, user and geek.
Fast Service for Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
https://www.asandwhenbusinessservices.co.uk


User avatar
Active Member

Posts

Joined
Fri Mar 25, 2011 10:25 am
Location - Surrey, UK
Who is online

Users browsing this forum: No registered users and 49 guests