vQmod not working with featured_*.tpl

ThemeBurn SupportForumsOpenCart ThemesShoppica OpenCart ThemevQmod not working with featured_*.tpl

This topic has been marked as not a support question.

Hi


<modification>
   <id>test</id>
   <version>1.0.0</version>
   <vqmver>2.1.2</vqmver>
   <author>test</author>
   <file name="catalog/view/theme/*/template/module/featured_content.tpl">
      <operation>
         <search position="before"><![CDATA[<h2 class="s_title_1"><?php echo $heading_title; ?></h2>]]></search>
         <add><![CDATA[<h1>TEST</h1>]]></add>
      </operation>
   </file>
</modification>

This simple sintax is not working and I dont know why. Tried to use it in a different file and it worked i.e. featured.tpl. No log error and no file is generated in vqcache.

I would say this has something to do with the shoppica’s hierarchic of featured.tpl, no? Inside featured.tpl there’s an include for featured_content.tpl and featured_column.tpl, vQmod works perfectly for featured.tpl and other files, however doesn’t for _content.tpl’s and _column.tpl’s.

Could you pls help me?

Is this a bug or I am not using it properly?

Tks
Gustavo

  • This reply was modified 4575 days ago by  gustvao. Reason: used [code] instead of
October 15, 2011 at 8:37 pm #2558

I guess you are using it properly, but unfortunately is seems vqmod does not respect includes in template files.

module/featured_content.tpl gets included by module/featured.tpl:

<?php if ($module_position == 'content_top' || $module_position == 'content_bottom'): ?>
  <?php require 'featured_content.tpl'; ?>
<?php else: ?>
  <?php require 'featured_column.tpl'; ?>
<?php endif; ?>

You could submit this to the vqmod developers if you wish. For now, the quickest solution is to modify the file without using vqmod.

Regards, ThemeBurn team

October 17, 2011 at 11:23 am #2618

Submitted.

Tks

http://code.google.com/p/vqmod/issues/detail?id=4

  • This reply was modified 4571 days ago by  gustvao.
October 19, 2011 at 4:17 pm #2709

Hi.

It seems that vQmod supports it, probably you need to modify the file index.php to support the other files?

Pls see reply from the developer below, tks:

http://code.google.com/p/vqmod/issues/detail?id=4

October 30, 2011 at 10:04 pm #3026

Hi again!

It seems that there is a vqmod compatible way to include files in the templates. Qphoria mentioned it here. We will change our templates in the next Shoppica version.

For now you could change the template manually. Open catalog/view/theme/shoppica/template/module/featured.tpl and change its contents to:

You will need to register in order to post topics and read replies in the ThemeBurn.com support forums!

Does this work for you ?

November 2, 2011 at 6:24 pm #3129

tks

November 26, 2011 at 7:00 pm #3872
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.