Jump to content

Recommended Posts

Здравствуйте! Как можно вывести модуль в меню OC 3

 

2021-04-07_15-58-46.png

Share this post


Link to post
Share on other sites
1 час назад, kirillkanavalov сказал:

Здравствуйте! Как можно вывести модуль в меню OC 3

 

2021-04-07_15-58-46.png

<?xml version="1.0" encoding="utf-8"?>
<modification>
	<name>Sima Land in menu</name>
	<version>1.0</version>
	<code>sima_land_menu</code>
	<author>opencartforum</author>
	<file path="admin/controller/common/column_left.php">
        <operation>
            <search><![CDATA[if ($catalog) {]]></search>
            <add position="before"><![CDATA[
	            if ($this->user->hasPermission('access', 'extension/module/mymodule')) {
	                $catalog[] = array(
	                    'name'	   => 'Sima Land',
	                    'href'     => $this->url->link('extension/module/mymodule', 'user_token=' . $this->session->data['user_token'], true),
	                    'children' => array()
	                );
	            }
            ]]></add>
        </operation>
    </file>	
</modification>

как-то так. Только ссылки правильные прописать и по-хорошему бы название вынести в языковой файл

Edited by Blast
  • +1 1

Share this post


Link to post
Share on other sites

Спасибо

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.