Post by AndreBarini » Fri Oct 13, 2023 12:52 am

I made a script to make quotations and I want to put it in the Navigation Menu, along with Dashboard, Catalog, etc...
I search the database and couldn't find no table to put it on.
What should I do to put the script in the menu?

Thanks in advance.

Newbie

Posts

Joined
Wed Jun 21, 2023 6:59 pm

Post by johnp » Fri Oct 13, 2023 1:59 am

AndreBarini wrote:
Fri Oct 13, 2023 12:52 am
I made a script to make quotations and I want to put it in the Navigation Menu, along with Dashboard, Catalog, etc...
I search the database and couldn't find no table to put it on.
What should I do to put the script in the menu?

Thanks in advance.
To display on the front end I would suggest installing a menu extension. You can purchase one from the OC Marketplace or use this one from Ernie's Github page:

https://github.com/IP-CAM/Super-Mega-Me ... -v.1.5.6.x

To display on the admin menu you could write a quick vqmod.

Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk


User avatar
Active Member

Posts

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

Post by AndreBarini » Thu Oct 19, 2023 10:34 pm

I just add this lines in the admin/view/template/common/column_left.twig, in line 49:

<a href="{{ '../script-name.php' }}" target="_blank">
<i class="fa-solid fa-shopping-cart"></i> Cotação
</a>
And worked very well.

Newbie

Posts

Joined
Wed Jun 21, 2023 6:59 pm

Post by paulfeakins » Fri Oct 20, 2023 6:52 pm

johnp wrote:
Fri Oct 13, 2023 1:59 am
To display on the front end
It sounds like the OP wants to display on the backend.

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


User avatar
Legendary Member
Online

Posts

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

Post by paulfeakins » Fri Oct 20, 2023 6:52 pm

AndreBarini wrote:
Thu Oct 19, 2023 10:34 pm
I just add this lines in the admin/view/template/common/column_left.twig, in line 49:

<a href="{{ '../script-name.php' }}" target="_blank">
<i class="fa-solid fa-shopping-cart"></i> Cotação
</a>
And worked very well.
Great but you should consider using OCMOD to apply this.

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


User avatar
Legendary Member
Online

Posts

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

Post by Damienchester » Thu Mar 07, 2024 6:31 pm

AndreBarini wrote:
Fri Oct 13, 2023 12:52 am
I made a script to make quotations and I want to put it in the Navigation Menu, along with Dashboard, Catalog, etc...
I search the database and couldn't find no table to put it on. LaSRS Login
What should I do to put the script in the menu?

Thanks in advance.
Adding a custom item to the navigation menu in OpenCart typically requires modifying the website code. There are many online resources and tutorials created by the OpenCart community that can guide you through the process of adding custom menu items. You can find these resources by searching online for "OpenCart add custom menu item".

Newbie

Posts

Joined
Fri Sep 30, 2022 2:05 pm
Who is online

Users browsing this forum: Google [Bot], Semrush [Bot] and 81 guests