Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

Recommended Posts

1 час назад, kirillkanavalov сказал:

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

 

<?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
Link to comment
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
 Share

×
×
  • Create New...

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.