I have using OpenCart version 2.0.1.1 and, I have added one custom module.
but, I want to remove module name from module list in Layout page.
is it possible?
(admin > System > Design > Layouts)
OpenCart themes: Marketshop Theme | Bigshop Theme | Moderns Theme
www.harnishdesign.net - OpenCart News, Themes and Tutorials.
Did you manage to work this one out? I'm having the same issue.
OpenCart Theme Options - See All My Extensions - OpenCart Themes and Mods
Ahh just worked this out. If you look in admin\controller\design\layout.php you will see the following:
So if your extension has a variable with its name then "_status" its automagically added.
I think thats it anyway, about to test it now.
Code: Select all
if ($this->config->has($code . '_status') || $module_data) {
I think thats it anyway, about to test it now.
OpenCart Theme Options - See All My Extensions - OpenCart Themes and Mods
admin/model/extension/extension.php
modify those line using vqmod or ocmod to look like this as example
this module_code you can find them at oc_extension
notes: if your module code is like 123123module_code123123, then it will not take this to layout also
Code: Select all
$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "extension WHERE `type` = '" . $this->db->escape($type) . "' ORDER BY code");
Code: Select all
$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "extension WHERE `type` = '" . $this->db->escape($type) . "' AND code NOT LIKE '%module_code%' ORDER BY code");
notes: if your module code is like 123123module_code123123, then it will not take this to layout also
You can't control the weather, but you can change your mood.
You can't modify the visage, but you can show your smile.
You can't command someone else, but you can hold yourself.
You can't forecast tomorrow, but you can using today.
You can't obtain thanks, but you can exert yourself in everything.
OCEXTENSION.COM - YOUR PROFESSIONAL OPENCART EXTENSION STORE
You can't modify the visage, but you can show your smile.
You can't command someone else, but you can hold yourself.
You can't forecast tomorrow, but you can using today.
You can't obtain thanks, but you can exert yourself in everything.
OCEXTENSION.COM - YOUR PROFESSIONAL OPENCART EXTENSION STORE
Who is online
Users browsing this forum: No registered users and 281 guests