general vqmod issues

This topic has been marked as not resolved.

Hi,

I have started a fresh install of OpenCart 1.5.3.1 with shoppica 2.1.2. and vqmod 2.1.6

I want to add something in the footer

catalog/view/theme/*/template/common/footer.tpl
(and filled shoppica2 in in case the wildcard would fail)

<file name="catalog/view/theme/shoppica2/template/common/footer.tpl">
	<operation>
	    <search position="before"><![CDATA[
            </body></html>
            ]]></search>
            <add><![CDATA[
           <?php echo $statcounter; ?>
            ]]></add>
	</operation>
	</file>

I was searching for “</body></html>” wich is obviously there in footer.tpl, but my vqmod log states that this can not be found.

SEARCH NOT FOUND (ABORTING MOD)

If i use the vqmod file with default template, no problem, but appearantly shoppica works differently.

And i have a big bunnncchhh of other vqmod files that used to work with the default template, but no longer work with shoppica.

Do i have to build vqmod files up differently for this theme, or what am i overlooking?

Thanks.

Lenny

July 16, 2012 at 12:19 pm #11357

The tags are there indeed. But your are overlooking the fact, that they are placed on two rows:

</body>
</html>
and you are searching one row in your vqmod. I guess you are safe to remove </html> from your search:

<search position="before"><![CDATA[
</body>
]]></search>

Regards,
ThemeBurn team

July 16, 2012 at 12:27 pm #11361

Hi,
Thanks for the fast reponse, i had also tried that, with the 2 rows, litteraly copied and pasted them from the footer.tpl but that did not fix it.

However, just body just does work.

So all and all on of the big differences with how Shoppica handles VQMOD is that it doesn’t ignore whitespacing then?
(in regards to all the other vqmods that im going to have to check).

Thanks!
Lenny

  • This reply was modified 4321 days ago by  l10lenny.
July 16, 2012 at 12:54 pm #11362

Yes, vqmod ignores the whitespaces, but not the newline symbols. You can’t search by two rows in vqmod. You must search by 1 row only.

Shoppica does not have any special vqmod handling. Vqmod is external to Shoppica. The vqmods are applied to the catalog/view/theme/shoppica2/template/ the same way they are applied to the default theme.

I don’t see a reason why leaving only the </body> tag in your modification wouldn’t work as this tag is unique to the html structure.

Regards,
ThemeBurn team

July 16, 2012 at 1:18 pm #11364
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.