Top menu : not working

Why is my changes to the “top menu” not working??

Anyone??

Surely someone has this problem?

please can you explain more you may get help.



Its like me saying…why is my head sore !



John

[quote name='johnbol1' timestamp='1352409768' post='148722']Its like me saying…why is my head sore ![/quote]



Not really. It's a very simple answer in your case. Too much Guinness.

Hello Nicolbok,



Thank you for your message.



Unfortunately, your request is not clear enough to me. Please clarify which changes you made and where exactly you implemented them (in your CS-Cart admin panel, in a template file, etc.) so that I could understand the problem better.



Also you try clearing the template cache to resolve your issue. To do it, open in your browser: http://www.your_doma…om/admin.php?cc, where www.your_domain.com is the address of your store and admin.php is the new name given to the admin.php file. Before clearing the template cache you should be logged in to the administration panel of your store.



Thank you.





Pavel Zyukin

CS-Cart Support team

Hi



May I ask a question here about the mega menu in v3?





Why is it that when I have less than 6 items in all the rigt side menu they go out of the screen?



its been asked a few more times in here, but noanswer on that.



I have clients who need to have less than six items on the right side. Am I missing something or is it a bug?



Fotis

Thanks Cs Cart That worked a treat.!!!

Hello Fotis,



Thank you for your message.


[quote name='dvsgr' timestamp='1352979533' post='149244']

Hi



May I ask a question here about the mega menu in v3?





Why is it that when I have less than 6 items in all the rigt side menu they go out of the screen?



its been asked a few more times in here, but noanswer on that.



I have clients who need to have less than six items on the right side. Am I missing something or is it a bug?



Fotis

[/quote]



You can try using the solution provided by our engineer here:



http://forum.cs-cart…1547#entry12192



If it does not help you, the problem will require examination on your server. Please contact us via Customer Help Desk and provide temporary access to your server by clicking on the Add record link on the Access information page of your Help Desk account so that we could examine the issue.


[quote name='Nicolbok' timestamp='1353003085' post='149279']

Thanks Cs Cart That worked a treat.!!!

[/quote]



You are welcome.





Pavel Zyukin

CS-Cart Support team

Hi there Pavel,



had the time to research the solution but stuck with this code.



Where should I change the code?


```php

diff --git a/skins/basic/customer/blocks/topmenu_dropdown.tpl b/skins/basic/customer/blocks/topmenu_dropdown.tpl

index a4bc6b8…8051c3f 100644

— a/skins/basic/customer/blocks/topmenu_dropdown.tpl

+++ b/skins/basic/customer/blocks/topmenu_dropdown.tpl

@@ -8,6 +8,8 @@

{foreach from=$items item=“item1” name=“item1”}

{assign var=“item1_url” value=$item1|fn_form_dropdown_object_link:$block.type}

  •   			   {assign var="unique_elm_id" value=$item1_url|md5}
  •   			   {assign var="unique_elm_id" value="topmenu_`$block.block_id`_`$unique_elm_id`"}
  • 4 && $smarty.foreach.item1.last} drop-left{/if}">
  •   							   

```



It is not clear.



Can you make it more clear?



Thanks



Fotis

Hello Fotis,



Thank you for your message.



Here is how content of this file should look after applying the fix:


```php

{hook name=“blocks:topmenu_dropdown”}



{if $items}







    {hook name=“blocks:topmenu_dropdown_top_menu”}



    {foreach from=$items item=“item1” name=“item1”}

    {assign var=“item1_url” value=$item1|fn_form_dropdown_object_link:$block.type}

    {assign var=“unique_elm_id” value=$item1_url|md5}

    {assign var=“unique_elm_id” value=“topmenu_$block.block_id_$unique_elm_id”}

  • {$item1.$name}



    {if $item1.$childs}



    {if !$item1.$childs|fn_check_second_level_child_array:$childs}

    {* Only two levels. Vertical output }













      {hook name=“blocks:topmenu_dropdown_2levels_elements”}



      {foreach from=$item1.$childs item=“item2” name=“item2”}

      {assign var=“item_url2” value=$item2|fn_form_dropdown_object_link:$block.type}

      {$item2.$name}

      {/foreach}

      {if $item1.show_more && $item1_url}

    • {$lang.text_topmenu_view_more}


    • {/if}



      {/hook}













    {else}

    {
    Three levels. Full output *}



    {assign var=“subitems_count” value=$item1.$childs|count}

    {math assign=“divider” equation=“ceil(x / 6)” x=$subitems_count}

    {math assign=“cols” equation=“ceil(x / y)” x=$subitems_count y=$divider}



    {if $cols == 1}

    {assign var=“dropdown_class” value=“dropdown-1column”}

    {elseif $cols == 6}

    {assign var=“dropdown_class” value=“dropdown-fullwidth”}

    {else}

    {assign var=“dropdown_class” value=“dropdown-$colscolumns”}

    {/if}







    {hook name=“blocks:topmenu_dropdown_3levels_cols”}



    {foreach from=$item1.$childs item=“item2” name=“item2”}



    {assign var=“item2_url” value=$item2|fn_form_dropdown_object_link:$block.type}

    {$item2.$name}



    {if $item2.$childs}



      {hook name=“blocks:topmenu_dropdown_3levels_col_elements”}

      {foreach from=$item2.$childs item=“item3” name=“item3”}

      {assign var=“item3_url” value=$item3|fn_form_dropdown_object_link:$block.type}

      {$item3.$name}

      {/foreach}

      {if $item2.show_more && $item2_url}

    • {$lang.text_topmenu_view_more}


    • {/if}

      {/hook}



    {/if}





    {if $smarty.foreach.item2.index % $cols == ($cols - 1) && !$smarty.foreach.item2.first && !$smarty.foreach.item2.last}



    {/if}



    {/foreach}



    {if $item1.show_more && $item1_url}



    {/if}



    {/hook}







    {/if}



    {/if}



  • {/foreach}



    {/hook}







{/if}



{/hook}



{literal}


{/literal}

```



Please check it.



Thank you.





Pavel Zyukin

CS-Cart Support team

Hi Pavel thank you for that.



And wich file may be that?



Fotis

Hello Fotis,



Thank you for your message.



This is for the topmenu_dropdown.tpl file located in the skins/basic/customer/blocks directory of your CS-Cart installation.



Thank you.





Pavel Zyukin

CS-Cart Support team

Hi Pavel



thanks again.



I did that, cleared cache but the last menu that has 5 columns has still this problem.



Any ideas ?



[attachment=6225:eshopkatoikidio.jpg]

eshopkatoikidio.jpg

[quote name='The Tool' timestamp='1352423288' post='148737']

Not really. It's a very simple answer in your case. Too much Guinness.

[/quote]



Ha …is true

Hello Fotis,



Thank you for the reply.



We need to examine this problem directly in your store. Please contact us via Customer Help Desk and provide temporary access to your server by clicking on the Add record link on the Access information page of your Help Desk account so that our technical support engineer could examine the issue in detail.



Thank you.





Pavel Zyukin

CS-Cart Support team