Post by rhafiko » Tue Aug 19, 2014 3:20 am

Hi there,

I have this issue.

I´m trying to modify some file information but it is included "on the fly" in file template. Like this:

my xml vqmod script search on file search.tpl above

<file name="catalog/view/theme/*/template/product/search.tpl">

but inside this file has a include like this:
<?php include('catalog/view/theme/'.$this->config->get('config_template').'/template/new_elements/product.tpl'); ?>

how to treat this file product.tpl ?




Mon Aug 11, 2014 10:38 am

Post by rph » Tue Aug 19, 2014 4:06 am

Create a specific file operation for it:

Code: Select all

<file name="catalog/view/theme/*/template/new_elements/product/search.tpl">
Or add it to the existing one:

Code: Select all

<file path="catalog/view/theme/*/template/" name="product/search.tpl,new_elements/product/search.tpl">
Since there's a wildcard in the path vQmod won't throw errors if the file doesn't exist. If you were using the full path you may want to add error skipping to handle stores where the theme isn't present:

Code: Select all

<file name="catalog/view/theme/custom_theme/template/new_elements/product/search.tpl" error="skip">


Expert Member


Fri Jan 08, 2010 5:05 am
Location - Lincoln, Nebraska
Who is online

Users browsing this forum: No registered users and 3 guests