Post by cjfranca » Thu Jul 22, 2021 8:43 pm

Dear friends.
A partner question me about links in open cart system .
How we can remove link redirection for forum, documentations ... in open cart? ;D https://drive.google.com/drive/folders/ ... sp=sharing
https://drive.google.com/drive/folders/ ... sp=sharing
In first moment I say for him not possible, but other friend say, yes. ::)

New member

Posts

Joined
Tue Jun 30, 2020 5:05 am
Location - São Paulo- BR

Post by JNeuhoff » Thu Jul 22, 2021 9:18 pm

I am not sure what your question is. Please be more more specific, and also give us more details about your OpenCart site, such as version used, extensions installed, etc.
Last edited by JNeuhoff on Thu Jul 22, 2021 9:23 pm, edited 1 time in total.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by Gergely » Thu Jul 22, 2021 9:22 pm

Hey cjfranca

Could you please elaborate on the question a bit, as I am not sure what you mean.
The drive links are not publicly shared, could you please make sure that we can in fact access it?

Anyway, your other friend is probably right, with Open Cart most things are possible!

Active Member

Posts

Joined
Wed Sep 30, 2020 7:58 pm

Post by cjfranca » Thu Jul 22, 2021 9:30 pm

cjfranca wrote:
Thu Jul 22, 2021 8:43 pm
Dear friends.
A partner question me about links in open cart system .
How we can remove link redirection for forum, documentations ... in open cart? ;D https://drive.google.com/drive/folders/ ... sp=sharing
https://drive.google.com/drive/folders/ ... sp=sharing
In first moment I say for him not possible, but other friend say, yes. ::)
Thank you for your questions.
What is the (legal) procedure to remove, if possible, the links that refer to the open cart or direct to the community or forum, within the open cart, in the admin panel.

New member

Posts

Joined
Tue Jun 30, 2020 5:05 am
Location - São Paulo- BR

Post by Gergely » Thu Jul 22, 2021 9:52 pm

I see,

For full disclosure: I don't really see why you would want to do that, but here's a way.

If you don't want to develop an extension that does that, just locate the header.twig template for the admin site (admin/view/template/common/header.twig) and comment out the code that adds these to the page. I like to not actually delete it, but use a little 'if false' hack:

Code: Select all

... beginning of header.twig ...
{% if false %}
	  <li role="separator" class="divider"></li>
          <li class="dropdown-header">{{ text_help }}</li>
          <li><a href="http://www.opencart.com" target="_blank"><i class="fa fa-opencart fa-fw"></i> {{ text_homepage }}</a></li>
          <li><a href="http://docs.opencart.com" target="_blank"><i class="fa fa-file-text-o fa-fw"></i> {{ text_documentation }}</a></li>
          <li><a href="http://forum.opencart.com" target="_blank"><i class="fa fa-comments-o fa-fw"></i> {{ text_support }}</a></li>
{% endif %}
... rest of header.twig ...          
This way you can just remove the if control when you want to add it back in.
Please make sure that you also responsibly comment and keep track of such changes!

Let me know if this helps!

Gergely

Active Member

Posts

Joined
Wed Sep 30, 2020 7:58 pm

Post by cjfranca » Thu Jul 22, 2021 11:28 pm

Gergely wrote:
Thu Jul 22, 2021 9:52 pm
I see,

For full disclosure: I don't really see why you would want to do that, but here's a way.

If you don't want to develop an extension that does that, just locate the header.twig template for the admin site (admin/view/template/common/header.twig) and comment out the code that adds these to the page. I like to not actually delete it, but use a little 'if false' hack:

Code: Select all

... beginning of header.twig ...
{% if false %}
	  <li role="separator" class="divider"></li>
          <li class="dropdown-header">{{ text_help }}</li>
          <li><a href="http://www.opencart.com" target="_blank"><i class="fa fa-opencart fa-fw"></i> {{ text_homepage }}</a></li>
          <li><a href="http://docs.opencart.com" target="_blank"><i class="fa fa-file-text-o fa-fw"></i> {{ text_documentation }}</a></li>
          <li><a href="http://forum.opencart.com" target="_blank"><i class="fa fa-comments-o fa-fw"></i> {{ text_support }}</a></li>
{% endif %}
... rest of header.twig ...          
This way you can just remove the if control when you want to add it back in.
Please make sure that you also responsibly comment and keep track of such changes!

Let me know if this helps!

Gergely
Thank you for your help. But this is compatible for any version ? I use 3.0.07 .

New member

Posts

Joined
Tue Jun 30, 2020 5:05 am
Location - São Paulo- BR

Post by Gergely » Thu Jul 22, 2021 11:39 pm

Well, the steps would be very similar on any version.
I have tested it on 3.0.3.7 myself.
(See screenshot attached. I assume those are the links that you wanted to remove.)

Attachments

removed_links.PNG

I think you wanted to remove links from the dropdown circled in red. - removed_links.PNG (72.5 KiB) Viewed 529 times


Active Member

Posts

Joined
Wed Sep 30, 2020 7:58 pm

Post by cjfranca » Thu Jul 22, 2021 11:47 pm

Gergely wrote:
Thu Jul 22, 2021 11:39 pm
Well, the steps would be very similar on any version.
I have tested it on 3.0.3.7 myself.
(See screenshot attached. I assume those are the links that you wanted to remove.)
I will test and back here. Thank you

New member

Posts

Joined
Tue Jun 30, 2020 5:05 am
Location - São Paulo- BR
Who is online

Users browsing this forum: Amazon [Bot] and 45 guests