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
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?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 } ?>
I tried
Code: Select all
$this->config->get('affiliate_status')
Database > oc_extension table > code column
Oğuzhan SARI
olla.market (Coming Soon as Opencart)
Who is online
Users browsing this forum: No registered users and 2 guests