May I know do we need to put any configuration code in the system when I want to add new module or move module from one place to another place?
I always hit error when I want to add in new module. For E.g: in open cart 1.2.6, I would like to move the search module in header.tpl to layout.tpl column_right but I hit error of "Undefined variable: search in". This will not happen in 1.2.5. Can anyone give me some idea whether I have miss out any part in the configuration or coding.
Thanks in advanced.
Edit "catalog/controller/common/header.php" (lines 26-29), change from:
Code: Select all
$this->children = array(
'common/language',
'common/search'
);
Code: Select all
$this->children = array(
'common/language',
// 'common/search'
);
Code: Select all
$this->children = array(
'common/header',
'common/footer'
);
Code: Select all
$this->children = array(
'common/header',
'common/footer',
'common/search'
);
Code: Select all
<?php echo $search; ?>
Code: Select all
<?php //echo $search; ?>
Code: Select all
<?php echo @$search; ?>
Code: Select all
<?php echo @$search; ?>
Code: Select all
<div id="column_right">
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool
If you're not living on the edge ... you're taking up too much space!
However, do you know the solution that we need to insert data into extension and setting table.
After the table insertion, we need to create search.tpl in module folder?
I tried that, but I failed. It shows cannot not load the search module.
Thanks.
The search "module" doesn't have any administrative components, so it is not configurable from the administration.
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool
If you're not living on the edge ... you're taking up too much space!
How can I make search.tpl as an administrative component? And why search.tpl file in the "catalog/view/theme/default/template/common" directory does not have administrative component? Can you teach me or tell me in detail.
Thanks.
Enabling the "dynamics" of the module system requires that the modules have some administrative component. Since only the modules in the column were intended to be moved, it is only these modules that have administrative components.
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool
If you're not living on the edge ... you're taking up too much space!
How can I make the page/component have administrator right. I believe if we simply move those page/tpl around or some other module will cause error "Could not load module!".
Please kindly tell me more cause I really want to understand how all of this work around.
Eg: put special offer (catalog\view\theme\default\template\product) into home.tpl.
Thanks and Regrads,
Andric Ng
The solution to this for version 1.2.6 is here http://forum.opencart.com/viewtopic.php ... 275#p18275
Phil.
Hi Phil,phpuk wrote:Hi,
Did you fix it by altering the sort order or was there another problem?
Just want to know if my instruction for the module are correct.
Phil.
It was something that I did wrong. I had the snippet <?php echo @$search; ?> at the bottom of the right column instead of adding it at the top in layout.tpl. It was after all very simple. Everything on you part was all good it was my blip up.
Delite163
Users browsing this forum: No registered users and 7 guests