Jump to content

Morfeus

Members
  • Posts

    15
  • Joined

  • Last visited

Posts posted by Morfeus

  1. Hi,

    This module is amazing. Thank you.

    I found some problems.

    1) missing picture path

    Original line 754:

    $img = $level == 1 ? 'lv1.gif' : 'lv'.$level.'_'.($todo == $doneC ? 'f' : 'b').'.gif';



    Replaced 754:

    $img = $level == 1 ? 'lv1.png' : 'lv'.$level.'_'.($todo == $doneC ? 'f' : 'b').'.png';



    2) deprecated functions: hideCategoryPosition

    Original line 765:

      '.stripslashes(Category::hideCategoryPosition($current['infos']['name'])).'';



    Replaced 765:

      '.stripslashes($current['infos']['name']).'';



    Original line 1843:

    $this->_menu .= ''.(trim($NameSubstitute[0]['name_substitute']) != '' ? $NameSubstitute[0]['name_substitute'] : Category::hideCategoryPosition($NameCategory[0]['name'])).''.$eol;



    Replaced 1843:

    $this->_menu .= ''.(trim($NameSubstitute[0]['name_substitute']) != '' ? $NameSubstitute[0]['name_substitute'] : $NameCategory[0]['name']).''.$eol



    Original line 1854:

    $this->_menu .= ''.(trim($NameSubstitute[0]['name_substitute']) != '' ? $NameSubstitute[0]['name_substitute'] : Category::hideCategoryPosition($NameCategoryUnder[0]['name'])).''.$eol;



    Replaced 1854:

    $this->_menu .= ''.(trim($NameSubstitute[0]['name_substitute']) != '' ? $NameSubstitute[0]['name_substitute'] : $NameCategoryUnder[0]['name']).''.$eol;



    Are these changes correct? Or am I wrong?

    3) Problem with FriendlyURL (FO)

    The correct link is: http://myweb.com/en/2-music-ipods

    or

    The correct link is: http://myweb.com/fr/2-music-ipods

    But in the menu is the link: http://myweb.com/2-music-ipods

    /en/ or /fr/ is missing.

    For products generated link is correct.

    4) In BO items: Add button and MeGa DrOwN mEnU organization

    MeGa DrOwN mEnU organization – There are only displayed items entered in English. If you add an item to another language, the item is not displayed in the BO. In FO is displayed correctly.

    5) In BO: tinyMCE is undefined

    Solution (works only for IE):

    Change line 851 (script type="text/javascript" src="'.__PS_BASE_URI__.'js/tinymce/jscripts/tiny_mce/tiny_mce.js">) to:

    script type="text/javascript" src="'.__PS_BASE_URI__.'js/tiny_mce/tiny_mce.js">



    Change line 879:

    language : "'.(file_exists(_PS_ROOT_DIR_.'js/tiny_mce/langs/'.$iso.'.js') ? $iso : 'en').'"



    Can somebody advice me how to remove these errors?

    Thank you

    Best regards

  2. Ahoj,

    dle meho nazoru funguji - zkousel jsem cca 10 reseni (normalni i flash). Reseni z odkazu nad timto prispevkem funguje - ted jsem ho testnul. Obmenovani musis nastavit v Configure: Random from Home category. Uprava stylu dle tve predstavy take neni problem (zmenis css, nebo zdrojak). Neznam tvou predstavu ale vse je mozne :-).

  3. Ahoj,

    vse zrusis nebo nastavis v souboru:

    themes\tvojetema(pokud mas defaut tema tak prestashop)\category.tpl

    Pokud chces zrusit vse smaz radky 33 - 50:

    {l s='Subcategories'}
    
           {foreach from=$subcategories item=subcategory}
    
    getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$subcategory.name|escape:'htmlall':'UTF-8'}">
                       {if $subcategory.id_image}
    getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium')}" alt="" />
                       {else}
    
                       {/if}
    
    
    
    getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}">{$subcategory.name|escape:'htmlall':'UTF-8'}
    
           {/foreach}
    
    
    
    
    



    Pokud jen obrazky smaz radky 38 - 42:

    {if $subcategory.id_image}
    getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium')}" alt="" />
                       {else}
    
    {/if}
    

  4. Hi,

    Block displays all the main categories.

    Must be changed:

    {if $mainCategory == 0 OR $node.id == $mainCategoryId OR $depth > 1}
    


    to:

    {if $mainCategory != 0 OR $node.id == $mainCategoryId OR $depth > 1}
    



    If you click on the product in category or featured products.
    Menu is hidden.

    Example: - Click on the product in Main category 1 -> Subcategory 1
    Result: - Menu is hidden.

    Correct result has to be:

    Main Category 1 
       [b]-Subcategory 1[/b] 
            -Sub 11 
            -Sub 22 
       -Subcategory 2 
       -Subcategory 3
    



    Thank you

  5. After the code change to:

    for blockcategoriesaccordion.php line 190 from:

       if (isset($_GET['id_category']))
           $smarty->assign('currentCategoryId', intval($_GET['id_category']));
    


    to:

       if (isset($_GET['id_category']))
           $currentCategoryId=intval($_GET['id_category']);
    



    for category-tree-branch.tpl line 1 from:

    {if $mainCategory == 0 OR $node.id == $mainCategoryId OR $depth > 1}
    


    to:

    {if $mainCategory != 0 OR $node.id == $mainCategoryId OR $depth > 1}
    
    



    for blockcategoriesaccordion.php line 195 - 212 from:

       if ($currentCategoryId > 1)
       {
           $id_category = $_GET['id_category'];
    
           do
           {
               $category = new Category($id_category);
               $id_parent = $category->id_parent;
    
               if ($id_parent == 1)
                   $mainCategoryId = $id_category;
               else
                   $id_category = $id_parent;
           }
           while ($mainCategoryId == 0);
       }
    
       $smarty->assign('mainCategoryId', $mainCategoryId);
    


    to:

       if ($currentCategoryId > 1)
       {
           $id_category = $_GET['id_category'];
    
           do
           {
               $category = new Category($id_category);
               $id_parent = $category->id_parent;
    
               if ($id_parent == 1)
                   $mainCategoryId = $id_category;
               else
                   $id_category = $id_parent;
           }
           while ($mainCategoryId == 0);
       }
    
       $smarty->assign('mainCategoryId', $mainCategoryId);
       $cookie->last_visited_category = intval($_GET['id_category']);
       $smarty->assign('currentCategoryId', intval($_GET['id_category']));
    




    Menu starts work.

    The problems is:
    1) After a long time in the menu - everything stops working (does not generate categories).
    I must to uninstall the module. and Reinstall.

    Any Idea?

    Thank you

  6. Thank you

    I will try to make a change.

    Just have a small question.

    Where to insert this code in the file blockcategoriesaccordion.php?:

           $id_category = $currentCategoryId;
       $mainCategoryId = 0;
    
       do
       {
         $category = new Category($id_category);
         $id_parent = $category->id_parent;
    
         if ($id_parent == 1)
           $mainCategoryId = $id_category;
         else
           $id_category = $id_parent;
       }
       while ($mainCategoryId == 0);
    
       $smarty->assign('mainCategoryId', $mainCategoryId);
    

  7. Hi Rocky,

    Looking for a code change to enable:

    Example:

    In the horizontal menu, I have three main categories.

    Main Category 1! Main Category 2! Main Category 3

    After clicking the Main category 1 appear in the block:

    Main Category 1
      - Subcategory 1
          - Sub 11
          - Sub 22
      - Subcategory 2
    ....
    



    Main categories 2 and 3 are hiding in the block.

    Sample code (category-tree-branch.tpl):

    >
    {if $node.id == $currentCategoryId}
    
    {$node.name|escape:html:'UTF-8'}
       {if $node.children|@count > 0}
    </pre>
    <ul>
           {foreach from=$node.children item=child name=categoryTreeBranch}
               {if $smarty.foreach.categoryTreeBranch.last}
                           {include file=$tpl_dir./category-tree-branch.tpl node=$child last='true'}
               {else}
                           {include file=$tpl_dir./category-tree-branch.tpl node=$child last='false'}
               {/if}
           {/foreach}
    </ul>
    <br>   {/if}<br><br>{/if


    This works only for $node.id = = $currentCategoryId. When I click the subcategory everything disappears - this is correct. This is in the condition.
    But How to modify this code after clicking on the Subcategory 1 or Sub 11 display remained the Main categories 1 (for more than 2 levels).

    Thank you for your advice

  8. Hi Rocky,

    module is great. Thank you.

    Please can you advise me how to modify the module to be displayed:

    If I'm on the page (HOME PAGE - $currentCategoryId = 0 or HOME category - $currentCategoryId = 1) in block categories show only text: Select the main category.

    and

    If I select a main category (level_depth = 1) - hide other categories with level_depth = 1 except the selected category ($currentCategoryId).

    Thank you in advance for ideas for resolving.

  9. Hi,

    please advice about how to modify Block Categories:

    1) Display the selected main category located in the horizontal menu and all levels (sub-categories) in the block category (in the left column).

    2) Show: On the HOME PAGE and HOME category only the text: Please select a main category in the horizontal menu.

    BR

  10. Zdravim,

    prosim o radu jak upravit BlockCategories:

    1) aby zobrazoval vybranou hlavni kategorii umistenou v horizontalnim menu do vsech jeho pod urovni v bloku Kategorie (v levo).

    2) Na strance HOME PAGE a v kategorii HOME zobrazil v bloku KATERORIE pouze text: Vyberte prosim nekterou hlavni kategorii v horizontalnim menu.

  11. Zdravim,

    Po aktualizaci PrestaShopu z SVN2129 na SVN2167 nelze konfigurovat Top horizontal menu v1.3.

    Pokud kliknu v BO – moduly - Top horizontal menu v1.3 na Configure - Zobrazi se me hlaska: hack attempt.

    Pred aktualizaci vse fungovalo. Menu v FO funguje dale bez problemu.

    Pls vite nekdo, kde je problem a jak ho opravit?

    Prestashop team rekl: Toto je bug v top horizontal menu v1.3 - autor bohuzel nekomunikuje.

    Dekuji

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More