Artx Posted January 15, 2014 Share Posted January 15, 2014 (edited) I`ve upgraded PS 1.3 shop to 1.5.6 and activated multistore, and added three more shops, and csv-imported in those 3 shops categories and products. For all of the 4 shops I`ve created 4 root categories, respectively. Now, when I go to top horizontal menu module I see only categories from the first shop(witch I upgraded from PS 1.3). If I select any of other 3 shops in top menu module, there are no options to select and add to menu categories to Top menu from those shops. I allready discovered that if i go to \modules\blocktopmenu\blocktopmenu.php and change: // BEGIN Categories $this->_html .= '<optgroup label="'.$this->l('Categories').'">'; $this->getCategoryOption(1, (int)$id_lang, (int)Shop::getContextShopID()); $this->_html .= '</optgroup>'; the shops root category id manually from 1 to respective shops root category id // BEGIN Categories $this->_html .= '<optgroup label="'.$this->l('Categories').'">'; $this->getCategoryOption(555, (int)$id_lang, (int)Shop::getContextShopID()); $this->_html .= '</optgroup>'; , then the needed categories are showing up. Why is that so ? I`ve setup another installation and tried to reproduce that (thistime without upgrading anything) and everything goes well, without any hacks. Am I missing some setting/have incompleate database ? Edited January 15, 2014 by Artx (see edit history) Link to comment Share on other sites More sharing options...
Artx Posted January 15, 2014 Author Share Posted January 15, 2014 OK. I did solve it like this: // BEGIN Categories $this->_html .= '<optgroup label="'.$this->l('Categories').'">'; $this->getCategoryOption((int)Category::getRootCategory()->id, (int)$id_lang, (int)Shop::getContextShopID()); $this->_html .= '</optgroup>'; I`d like to hear an approvement that it`s OK and will not cause furtcher probems somehow, somewhere. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now