Page 1 of 1
Add a menu in the admin dashboard version 3.0.2.0
Posted: Mon Feb 22, 2021 4:57 pm
by Diaplo
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
Re: Add a menu in the admin dashboard version 3.0.2.0
Posted: Mon Feb 22, 2021 5:21 pm
by xxvirusxx
Diaplo wrote: ↑Mon Feb 22, 2021 4:57 pm
How to do it? where do I start?
colum_left.php controller
Re: Add a menu in the admin dashboard version 3.0.2.0
Posted: Mon Feb 22, 2021 5:46 pm
by kestas
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
Re: Add a menu in the admin dashboard version 3.0.2.0
Posted: Tue Feb 23, 2021 7:35 pm
by paulfeakins
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.
Re: Add a menu in the admin dashboard version 3.0.2.0
Posted: Fri Sep 08, 2023 9:52 pm
by gazih
Hello good day, I added to common_left.php, but the menu I added does not appear? Why could this happen?
Re: Add a menu in the admin dashboard version 3.0.2.0
Posted: Sun Sep 17, 2023 6:11 am
by Joe1234
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>
Re: Add a menu in the admin dashboard version 3.0.2.0
Posted: Sun Sep 17, 2023 7:03 am
by halfhope
HI!
Also you can use me extension "
Admin menu manager".