Adding New Menu Item In Admin

I wanted to share how to add a new menu item in admin.

Create addon and add “app/addons/addon_name/schemas/menu/menu.post.php” with the following content:



$schema['central']['orders']['items']['addon_name'] = array(
'attrs' => array(
'class' => 'is-addon'
),
'href' => 'addon_name.your_mode',
'position' => 2000
);
return $schema;




Clear all cache and test “Orders” menu.

Hi @ooaykac,



More help to generate a new CS-cart add-on like
addon_name
can be found here cs-cart.ie/tools



Keep on smiling,





Valentin

[color=#808080][size=2]part of hungryweb.net[/size][/color]

:) Thanks. I corrected

[quote name=‘ooaykac’ timestamp=‘1423569397’ post=‘204832’]

:) Thanks. I corrected

[/quote]



I remove also notice from my post ;)

Hai,I have created new menu item with your help in app/addons/vehicles/schemas/menu/menu.post.php



But in my menu it is showing “_vehicles”

How can i change this to “Vehicles”?



Please Help me in this.

[quote name='Sekhar' timestamp='1429948278' post='212603']

Hai,I have created new menu item with your help in app/addons/vehicles/schemas/menu/menu.post.php



But in my menu it is showing “_vehicles”

How can i change this to “Vehicles”?



Please Help me in this.

[/quote]

I have the same issue, please tell me if you know how to do it now.

Please go to Administration → Languages → Translations and add the vehicles language variable (without underscore)

Hai,I have created new menu item with your help in app/addons/vehicles/schemas/menu/menu.post.php

But in my menu it is showing "_vehicles"
How can i change this to "Vehicles"?

Please Help me in this.

you can add language variable in addon.xml

For Example :

lang="en" id="vehical">Vehical
lang="ru" id="vehical">средство

For reference,please checkout the documentation:
http://docs.cs-cart.com/4.2.x/addons/addon_scheme.html

Language variable block

Or

you can also use query block in addon.xml

Example :

INSERT INTO ?:language_values (`lang_code`, `name`, `value`) VALUES ('en', 'Vehical', 'Vehical');