As far as I know, it's not really possible to have static pages in the top menu. Of course, all depends with the theme you choose, but I just wanted to be able to use the information page editor to create static pages, which are shown next to the categories. Just as if they are, in fact, a category.
I've created this vQmod to do that. Just place this file in your xml directory. If you have a different language then English, you'll have to add a language string to either this mod, or to "admin/language/<yourlanguage>/catalog/information.php, with the name $_['entry_show_in_menu']. The English string for this variable is "Show in main menu".
After applying this mod, go to Categories->Information Pages. On the 2nd tab, there should be an extra checkbox. If checked, the information page will show up in the main menu. If unchecked, they'll show up where they used to be.
The Opencart version for which this module was built is 1.5.1.2
I've created this vQmod to do that. Just place this file in your xml directory. If you have a different language then English, you'll have to add a language string to either this mod, or to "admin/language/<yourlanguage>/catalog/information.php, with the name $_['entry_show_in_menu']. The English string for this variable is "Show in main menu".
After applying this mod, go to Categories->Information Pages. On the 2nd tab, there should be an extra checkbox. If checked, the information page will show up in the main menu. If unchecked, they'll show up where they used to be.
The Opencart version for which this module was built is 1.5.1.2
This is EXACTLY what I seeking. Where does this file get placed? I tried a few places I felt logical, but I must be missing it. My client wants a few additional static pages up top, and I've always hard coded it in the past. Thank you, thank you! -B
Hi I have installed the xml file using the VQMod Manager module, but there is no option in the Data tab of the information page to add the item to the main menu.
I am using OC 1.5.1.3 and have tried clearing the cache etc.
Any help would be appreciated
I am using OC 1.5.1.3 and have tried clearing the cache etc.
Any help would be appreciated
Did you renamed your admin folder to something else? If so, you need to edit the xml file.2fmedia wrote:Hi I have installed the xml file using the VQMod Manager module, but there is no option in the Data tab of the information page to add the item to the main menu.
I am using OC 1.5.1.3 and have tried clearing the cache etc.
Any help would be appreciated
You want to thank me for my time! Click here to donate
This is a great mod, v handy, thanks r-win. I think I spotted a wee glitch in it though. Not intended as a criticism at all, but just to help anyone else who has the same problem. I'm using OC v1.5.1.2 by the way.
So, the issue I spotted is that when you set an info to show in the main menu, by ticking the "Show in main menu" box, and clicking "Save" it deletes any information modules you have. This is just due to a clash in the values used in the "settings" table, when it uses the "editSetting" function. So, in the code, when it does (on line 39, 59 and 74)...
...it removes any settings you have for Information modules.
This is simple to resolve, by changing these lines too...
So, the issue I spotted is that when you set an info to show in the main menu, by ticking the "Show in main menu" box, and clicking "Save" it deletes any information modules you have. This is just due to a clash in the values used in the "settings" table, when it uses the "editSetting" function. So, in the code, when it does (on line 39, 59 and 74)...
Code: Select all
$this->model_setting_setting->editSetting('information', Array('infopage_menu' => $infopage_menu));
This is simple to resolve, by changing these lines too...
Code: Select all
$this->model_setting_setting->editSetting('information_menu', Array('infopage_menu' => $infopage_menu));
I'm a web developer at http://www.ssofb.co.uk in Aberdeen, Scotland.
Got a random blog at http://www.andygaskell.blogspot.com/.
I cannot get this to work even with the code changes. If I install it automatically adds items to top menu, even if they have no checks and if I try to update the page I get vqmod header already sent errors?
Having the same issue, has this been addressed?wordpressdesignshop wrote:I cannot get this to work even with the code changes. If I install it automatically adds items to top menu, even if they have no checks and if I try to update the page I get vqmod header already sent errors?
also have 1.5.1.3 - installed vqmod module, and put up the xml .. but not seeing it as an option for info pages
added line to language file as well. still no workie
would really LOVE to use this mod!
added line to language file as well. still no workie
would really LOVE to use this mod!
This worked perfectly for me - however, I did need to clear cache in order for it to appear. I also applied Andy's tweak below. Great vqmod!
AndyGaskell wrote:This is a great mod, v handy, thanks r-win. I think I spotted a wee glitch in it though. Not intended as a criticism at all, but just to help anyone else who has the same problem. I'm using OC v1.5.1.2 by the way.
So, the issue I spotted is that when you set an info to show in the main menu, by ticking the "Show in main menu" box, and clicking "Save" it deletes any information modules you have. This is just due to a clash in the values used in the "settings" table, when it uses the "editSetting" function. So, in the code, when it does (on line 39, 59 and 74)......it removes any settings you have for Information modules.Code: Select all
$this->model_setting_setting->editSetting('information', Array('infopage_menu' => $infopage_menu));
This is simple to resolve, by changing these lines too...Code: Select all
$this->model_setting_setting->editSetting('information_menu', Array('infopage_menu' => $infopage_menu));
Using OC v1.5.4.1 with Evisu Theme
I'm getting similar behaviour in 1.5.2.1. Items automatically go to top menu (whether ticked or not). If I then untick it, I get the following error message:wordpressdesignshop wrote:I cannot get this to work even with the code changes. If I install it automatically adds items to top menu, even if they have no checks and if I try to update the page I get vqmod header already sent errors?
Undefined index: infopage_menu in /home/{mydomain}/vqmod/vqcache/vq2-admin_model_catalog_information.php on line 83
It would be nice to get this working, otherwise I guess the solution is to only have information pages that I want in the menu...
Hmm, that's interesting, I don't have nay SEO mods running, but will investigate further by disabling mods and see what happens.Lisaweb wrote:I rememeber having issues with it a while back, and tracked it down to an incompatible vqmod. Can't remember for sure, but I think it was one of the SEO page tweak mods.
EDIT: Disabled all mods but this one, and still the same result, so it's an incompatibility issue with 1.5.2.1 rather than with other vqmod extensions. Oh well...
Who is online
Users browsing this forum: No registered users and 9 guests