Post by Diaplo » Mon Feb 22, 2021 4:57 pm

Hi guys, I would like to know how to add a menu in the admin dashboard.
Such as Design, Sales and Reports menus.

How to do it? where do I start?

thank you

Attachments

Capture.PNG

Capture.PNG (19.12 KiB) Viewed 1204 times


New member

Posts

Joined
Thu Jun 25, 2020 5:36 am

Post by xxvirusxx » Mon Feb 22, 2021 5:21 pm

Diaplo wrote:
Mon Feb 22, 2021 4:57 pm
How to do it? where do I start?
colum_left.php controller

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by kestas » Mon Feb 22, 2021 5:46 pm

xxvirusxx wrote:
Mon Feb 22, 2021 5:21 pm
Diaplo wrote:
Mon Feb 22, 2021 4:57 pm
How to do it? where do I start?
colum_left.php controller
To be more clear... in: admin/controller/common/colum_left.php :)

Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here


Active Member

Posts

Joined
Tue Oct 12, 2010 2:23 am

Post by paulfeakins » Tue Feb 23, 2021 7:35 pm

Once you've found out what to change, make sure you change the core files back to how they were before and put your change in an OCMOD.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by gazih » Fri Sep 08, 2023 9:52 pm

Hello good day, I added to common_left.php, but the menu I added does not appear? Why could this happen?

Newbie

Posts

Joined
Mon Jul 24, 2023 7:41 pm

Post by Joe1234 » Sun Sep 17, 2023 6:11 am

Why? Because you didn't do it properly? j/k

Try this ocmod from my shop, should get you started, then adjust and expand as you need. Only thing I don't remember is if what it is searching for for the mod "// Stats" is in the default OC, or it is something from my setup, so you may need to just copy the code, everything between "<![CDATA[" and " ]]>" directly to see it work. Good luck.

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<modification>
  <name>z_MY CUSTOM: OC General Edits And Bug Fixes</name>
  <code>MY_CUSTOM_OC_General_Edits_And_Bug_Fixes</code>
  <version>1.0</version>
  <author>Just Me</author>
  <file path="admin/controller/common/column_left.php">
    <operation error="log">
      <search><![CDATA[// Stats]]></search>
      <add position="before"><![CDATA[
			$custom_links = array();

			// Developer Accounts
			$developer = array();

				$developer[] = array(
					'name'     => "Amazon",
					'href'     => 'https://developer.amazon.com" target="_blank',
					'children' => array()
				);

				$developer[] = array(
					'name'	   => "Facebook",
					'href'     => 'https://developers.facebook.com/apps" target="_blank',
					'children' => array()
				);


				$developer[] = array(
					'name'     => "Google",
					'href'     => 'https://console.cloud.google.com" target="_blank',
					'children' => array()
				);


				$developer[] = array(
					'name'	   => "Paypal",
					'href'     => 'https://www.paypal.com" target="_blank',
					'children' => array()
				);		

				$developer[] = array(
					'name'	   => "Twitter",
					'href'     => 'https://developer.twitter.com/en" target="_blank',
					'children' => array()
				);	
	
				if ($developer) {
					$custom_links[] = array(
						'name'	   => "Developer Accounts",
						'href'     => '',
						'children' => $developer
					);
				}

			$custom_links[] = array(
				'name'	   => 'HTML Editor',
				'href'     => 'https://onlinehtmleditor.dev/" target="_blank',
				'children' => array()
			);

			$custom_links[] = array(
				'name'	   => 'Auto Copy Editor',
				'href'     => 'https://tools.picsart.com" target="_blank',
				'children' => array()
			);

			$custom_links[] = array(
				'name'	   => 'Shippo',
				'href'     => 'https://apps.goshippo.com" target="_blank',
				'children' => array()
			);


			$custom_links[] = array(
				'name'	   => 'Mailer Packs',
				'href'     => 'https://www.uline.com/BL_1574/Expansion-Poly-Mailers" target="_blank',
				'children' => array()
			);

			if ($custom_links) {
				$data['menus'][] = array(
					'id'       => 'menu-custom-links',
					'icon'	   => 'fa-bar-chart',
					'name'	   => 'Custom Links',
					'href'     => '',
					'children' => $custom_links
				);
			}
	  ]]></add>
    </operation>
  </file>   
 </modification>

v3.0.3.9 php 8.1
I'm here for a reason, if your response is contact a/the developer, just don't reply.


Active Member

Posts

Joined
Sat Jan 01, 2022 5:47 am

Post by halfhope » Sun Sep 17, 2023 7:03 am

HI!

Also you can use me extension "Admin menu manager".

My extensions in marketplace. [ security | flexibility | speedup ]


User avatar
Active Member

Posts

Joined
Tue Dec 10, 2013 9:44 pm
Location - San Diego
Who is online

Users browsing this forum: Baidu [Spider], SohBH and 264 guests