How to check if a module is active from template
3 posts
• Page 1 of 1
How to check if a module is active from template
Hello,
I was wondering if there is a way to detect if an template is active or inactive from a template. For example there is no need to show the affiliate link if the affiliate module is disabled.
opencart 1.5.1.3
I was wondering if there is a way to detect if an template is active or inactive from a template. For example there is no need to show the affiliate link if the affiliate module is disabled.
opencart 1.5.1.3
- yakideo
- Posts: 3
- Joined: Tue Jan 03, 2012 12:22 am
Re: How to check if a module is active from template
You check the same way as you do from any location
- Code: Select all
<?php if ($this->config->get('modulename_status')) { ?>
....do something
<?php } ?>

Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
-

Qphoria - Administrator
- Posts: 18210
- Joined: Mon Jul 21, 2008 7:02 pm

Re: How to check if a module is active from template
Qphoria wrote:You check the same way as you do from any location
- Code: Select all
<?php if ($this->config->get('modulename_status')) { ?>
....do something
<?php } ?>
Where can one find the name of the module?
I tried
- Code: Select all
$this->config->get('affiliate_status')
- yakideo
- Posts: 3
- Joined: Tue Jan 03, 2012 12:22 am
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: Google Feedfetcher and 24 guests













