Post by harnishdesign » Thu Jan 08, 2015 2:24 pm

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)

Image

OpenCart themes: Marketshop Theme | Bigshop Theme | Moderns Theme

www.harnishdesign.net - OpenCart News, Themes and Tutorials.


User avatar
New member

Posts

Joined
Thu Jan 26, 2012 12:39 am
Location - India

Post by ThePath » Mon Feb 29, 2016 9:06 pm

Did you manage to work this one out? I'm having the same issue.

O0

Image

OpenCart Theme Options - See All My Extensions - OpenCart Themes and Mods


User avatar
Active Member

Posts

Joined
Fri Jun 26, 2009 11:53 pm
Location - Scotland

Post by ThePath » Mon Feb 29, 2016 9:31 pm

Ahh just worked this out. If you look in admin\controller\design\layout.php you will see the following:

Code: Select all

if ($this->config->has($code . '_status') || $module_data) {
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.

Image

OpenCart Theme Options - See All My Extensions - OpenCart Themes and Mods


User avatar
Active Member

Posts

Joined
Fri Jun 26, 2009 11:53 pm
Location - Scotland

Post by ocart777 » Mon Feb 29, 2016 11:13 pm

admin/model/extension/extension.php

Code: Select all

$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "extension WHERE `type` = '" . $this->db->escape($type) . "' ORDER BY code");
modify those line using vqmod or ocmod to look like this as example

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");
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

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


User avatar
Active Member

Posts

Joined
Mon Jun 10, 2013 4:57 pm
Location - Malaysia
Who is online

Users browsing this forum: No registered users and 281 guests