Using iCustomFooter with vQmod

Often our customers have scenarios that require integrating iCustomFooter on OpenCart with a installed vQmod.  Although it is a standard and relatively straight-forward install procedure, sometimes the vQmod cache may produce warnings when loading the iCustomFooter or may not load it at all.
 
If you are getting a warning message like this, read on,
 
PHP Warning:  require_once(icustomfooter.tpl) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in...
 
It seems that you have a vQmod file that caches the standard footer and it does not resolve the paths. If you do not need these standard footer modifications, the easy fix would be to delete this file (it's in vqmod cache folder) and it will work. Nevertheless, if you want to keep it that way, please follow the steps below,
 
1) Go to the vQmod cache folder and open the file that modifies your footer (could be called vqmod_catalog_view_theme_default_template_common_footer.tpl , or .xml, or hopefully in other descriptive way)
 
2) Find the following line in the file,
<file name="catalog/view/theme/default/template/common/footer.tpl">

 

N.B. This line could also be <file name="catalog/view/theme/*/template/common/footer.tpl"> similar

 and right underneath it (it's the tag body) add the following code:

<operation>        
<search position="replace"><!--[CDATA[
<?php require_once('icustomfooter.tpl'); ?-->
]]></search>
<add><!--[CDATA[
<?php require_once('catalog/view/theme/default/template/common/icustomfooter.tpl'); ?-->
]]></add> 
</operation>

3) Save the file and open your OpenCart store again. iCustomFooter should show up.

 
This should solve the issue with the PHP warning.

Join 11,000+ subscribers receiving actionable E-commerce advice

* Unsubscribe any time

Trending blogs

comments powered by Disqus