Add extra category button

Nicky

Avatar: Nicky

2009-03-13 19:28

I followed the instructions here -> http://opensolution.org/Quick.Cart/docs/?id=tips&s=producers#how_to_add_next_menu

I could achieve to make a new category on the same level as Producers, Hidden Pages, Top Menu Above logo etc..., I can see it in the administration panel, also can add products and pages.

However, this category is only visible in the admin, I want it to display in the left menu as an extra 'Button'.

Extra clarification of what I mean exactly, when you look at the demo, you see 2 buttons -> "Categories" and "Producers". On the left side navbar. What I'm trying to do is add a third one..

» Quick.Cart v3.x

Nicky

Nicky

Avatar: Nicky

2009-03-13 19:58

This thread is approximately the same question, but I can't make up an answer from it.
http://opensolution.org/Quick.Cart/forum/?p=readTopic&nr=5903

Nicky

beholder

Avatar: beholder

2009-03-15 17:25

hmm here is a quick guide, not tested, please report how it works.

1. add the new menu description to the config/lang_xx.php, looks like this:
$aMenuTypes[6] = 'New menu';

2. edit the templates/themes/default.php, add:
$sMenu5 = $oPage->throwMenu( 'menu_5.tpl', 5, $iContent, 2 );

3. next create your menu template templates/menu_5.tpl, in the worst case just copy over the content from menu_4.tpl

4. add $sMenu5 to the templates/container.tpl and you're set to go!

beholder

Avatar: beholder

2009-03-15 17:27

oh, my mistake, here is a correct guide one more time (your new menu must be menu6, because menu5 is 'hidden pages'):

1. add the new menu description to the config/lang_xx.php, looks like this:
$aMenuTypes[6] = 'New menu';

2. edit the templates/themes/default.php, add:
$sMenu6 = $oPage->throwMenu( 'menu_6.tpl', 6, $iContent, 2 );

3. next create your menu template templates/menu_6.tpl, in the worst case just copy over the content from menu_4.tpl

4. add $sMenu6 to the templates/container.tpl and you're set to go!

Grabusik

No avatar

2009-03-17 22:00

great here i've found some clues to my question :)

i've figured out your solution, however i was trying to chnage hidden menu as the menu 6 ...and i messed up :)

search field is missing, and ther is no hidden menu in control panel..

So the only way is to make 3-rd menu in left column is to make it as menu no 6 - without touching previous structure.
Right?

Adam

Grabusik

No avatar

2009-03-17 22:02

great here i've found some clues to my question :)

i've figured out your solution, however i was trying to chnage hidden menu as the menu 6 ...and i messed up :)

search field is missing, and there is no hidden menu in control panel..

So the only way to make 3-rd menu in left column is to make it as menu no 6 - without touching previous structure.
Right?

Adam

beholder

Avatar: beholder

2009-03-17 23:38

absolutely.

jans

Avatar: jans

2009-06-12 17:03

Hello I follow all the steps below

By default, 4 types of menu (2 upper and 2 on the left side) are displayed. If you want to add next type of menu for example on the left side, execute following steps:

■edit “config/lang_pl.php” file and change
$aMenuTypes[1] = 'Top menu above logo';
$aMenuTypes[2] = 'Top menu under logo';
$aMenuTypes[3] = 'Categories';
$aMenuTypes[4] = 'Producers';to

$aMenuTypes[1] = 'Top menu above logo';
$aMenuTypes[2] = 'Top menu under logo';
$aMenuTypes[3] = 'Categories';
$aMenuTypes[4] = 'Producers';
$aMenuTypes[5] = enter here name for new menu';■create new file in “templates/” directory, name it “menu_5.tpl” and copy content of e.g. “menu_4.tpl” file to the new one,
■edit “templates/themes/default.php” file and add code
$sMenu5 = $oPage->throwMenu( 'menu_5.tpl', 5, $iContent, 1 );■edit “templates/container.tpl” and add $sMenu5 variable behind e.g. $sMenu4 variable in this file,
■log in to administration and add pages to this type of menu.

In the admin i have add pages to this menu, but it is not display on my site.

Makaron

Avatar: Makaron

2009-06-15 07:53

Maybe You didn't add $sMenu5 variable to file templates/container.tpl. This instruction is right and if You didn't make any mistake new menu should be visible.

jans

Avatar: jans

2009-06-15 08:11

I have look over everything and its correct. Is it possible that its not working with
QC 3.0 EXT version.

kalanta

No avatar

2009-06-15 08:58

It should work. Don't forget to create menu_5.tpl file.

jans

Avatar: jans

2009-06-15 09:33

I did that olso, but then 6 and 7 page 5 is hidden pages. Maby is there somthing else what must done.?

I have an other, if i put somthig in the basket then display on the left a box with that product, i will place there de basket, how must i do that? SORRY FOR MY ENGLISH it is not verry well.

Greetz

QC 3.0 EXT

kalanta

No avatar

2009-06-15 13:23

This forum is for freeware only- we can't give you any tips about EXT version.

jans

Avatar: jans

2009-06-15 14:08

Were can i get tips for qc ext

QC 3.0 EXT

kalanta

No avatar

2009-06-15 14:41

if you are a customer, ask through email: http://opensolution.org/contact,en,6.html

filoaman

Avatar: filoaman

2011-05-22 19:44

After adding the new button you have also to tweak the "default.css" file (or any other .css file you use) if you want the new button menu to be the same as the other menus.

Also you have to pay attention when you edit the "default.php". My mistake was that i follow step by step the instructions and add this string:
"$sMenu5 = $oPage->throwMenu( 'menu_5.tpl', 5, $iContent, 2 );"
although i was planing to add an new menu called "menu6".
I edit the latter part of the string changing the 'menu_5.tpl' part to 'menu_6.tpl' but i totally forgot to change the firts part of the string ("$sMenu5) to "$sMenu6.
So even after adding the "$sMenu6" variable to "container.tpl" i can't see any change.
It take me almost half an hour to figure out what happen - :)

culda_a

Avatar: culda_a

2012-02-08 09:59

can you please tell me what I have to change in css? I have brightside.css
what exactly I have to do?

Back to top
about us | contact