Post by jknutsen » Sun Sep 12, 2010 5:31 pm

Studio-Owens wrote:Actually this wasn't too bad. Took about 15 minutes. Open cart is so well structured.

I only had to add checks on each <li> using the function hasPermission(). I attached the modified header.tpl file (it is from version 1.4.9).

The attached file replaces:
admin/view/template/common/header.tpl
THX MAN!

I've been looking for this so, so long :D

Image
http://www.bluebell.no/order/whmcs/aff.php?aff=001
Kun 999,- i året inklusiv domene.


User avatar
New member

Posts

Joined
Sun Feb 07, 2010 12:23 am
Location - Skoppum, Norway

Post by i2Paq » Sun Sep 12, 2010 5:39 pm

I've merged the 3 topics about the same question and moved them here.

Solution can be found here http://forum.opencart.com/viewtopic.php?p=97682#p97682 in this topic.

Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________

Our FREE search: Find your answer FAST!.

[How to] BTW + Verzend + betaal setup.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands

Post by rebecca » Fri Oct 22, 2010 10:54 pm

What a neat solution! Thanks Studio-Owens! You cheered up my week!

New member

Posts

Joined
Thu Jul 15, 2010 9:54 pm

Post by Studio-Owens » Wed Nov 24, 2010 7:22 am

rebecca wrote:What a neat solution! Thanks Studio-Owens! You cheered up my week!
Glad to be of service.
O0

Image
www.Studio-Owens.com


User avatar
Newbie

Posts

Joined
Fri Jun 04, 2010 5:00 am

Post by ckonig » Thu Mar 10, 2011 10:50 pm

Thanks a lot, this was a very useful source for me. But I needed it to be a vqmod file, so I don't have to change anything original. You can find it here: http://forum.opencart.com/viewtopic.php?f=131&t=28457
greets

User avatar
Active Member

Posts

Joined
Wed Feb 16, 2011 4:26 pm
Location - Netherlands

Post by dmurphy4 » Wed Jul 06, 2011 5:04 am

THANKS STUDIO!

- Daniel Murphy
http://www.punchupproductions.com
"copy and paste developer extraordinaire"


User avatar
Newbie

Posts

Joined
Sat Oct 02, 2010 1:54 pm
Location - Derby, Kansas, United States

Post by ames » Sat Dec 03, 2011 5:36 am

does this solution work for latest version of opencart? because i tried it and got errors where the menu was suppose to be

New member

Posts

Joined
Wed Oct 19, 2011 9:11 pm

Post by sdlion » Thu Jan 10, 2013 1:39 am

Thank you! Exactly what I was looking for.
Based on Studio-Owen's solution I edited the 1.5.4.1 header.
Here's the result

Attachments

Custom header template for admin panel. It won't print menu's item if the user group has no access permissions


Newbie

Posts

Joined
Thu Jan 10, 2013 1:33 am

Post by miraclewanz » Tue Feb 18, 2014 11:38 am

Studio-Owens wrote:Actually this wasn't too bad. Took about 15 minutes. OpenCart already had the needed functions, it was just about using them.

I only had to add checks on each <li> using the function hasPermission(). If the admin user has access permission then the list item is shown (the if block is executed). On parent menu items I checked to see if the admin user had access to any of the children items (Products is the child of Catalog for example). If it did then the parent list item is shown. If not then the parent list item is skipped.

I attached the modified header.tpl file with the above modifications (it is from version 1.4.9).

The attached file replaces:
admin/view/template/common/header.tpl

I use opencart 1.5.5.1 but i dont know how to to the attached file (vMod) to my opencart.

if i use just change the header.tpl it doesn't work. can you help me??

Newbie

Posts

Joined
Tue Feb 18, 2014 11:34 am
Who is online

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