Skip to content

Instantly share code, notes, and snippets.

@gudata
Created April 9, 2012 14:28
Show Gist options
  • Select an option

  • Save gudata/2343829 to your computer and use it in GitHub Desktop.

Select an option

Save gudata/2343829 to your computer and use it in GitHub Desktop.
Magic zoom plus - work with more tempaltes
diff --git a/vqmod/xml/product-image-zoom.xml b/vqmod/xml/product-image-zoom.xml
index 3af73b8..936c8b9 100644
--- a/vqmod/xml/product-image-zoom.xml
+++ b/vqmod/xml/product-image-zoom.xml
@@ -3,13 +3,13 @@
<version>2</version>
<vqmver>2.0</vqmver>
<author>www.backonoc.com</author>
- <file name="catalog/view/theme/default/template/common/header.tpl">
+ <file name="catalog/view/theme/*/template/common/header.tpl">
<operation>
<search position="after"><![CDATA[
- <link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/stylesheet.css" />
+ stylesheet/stylesheet.css" />
]]></search>
<add><![CDATA[
- <link href="catalog/view/theme/default/stylesheet/cloud-zoom.css" rel="stylesheet" type="text/css" />
+ <link href="catalog/view/theme/*/stylesheet/cloud-zoom.css" rel="stylesheet" type="text/css" />
]]></add>
</operation>
<operation>
@@ -21,7 +21,7 @@
]]></add>
</operation>
</file>
- <file name="catalog/view/theme/default/template/product/product.tpl">
+ <file name="catalog/view/theme/*/template/product/product.tpl">
<operation>
<search position="replace"><![CDATA[
<div class="image"><a href="<?php echo $popup; ?>" title="<?php echo $heading_title; ?>" class="colorbox" rel="colorbox"><img src="<?php echo $thumb; ?>
@@ -77,4 +77,4 @@
]]></add>
</operation>
</file>
-</modification>
\ No newline at end of file
+</modification>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment