
i think the theme may be over-riding something
i've contacted the theme owner to see what he says
How do I get rid of this one? Do I have to add another instance to the file?I noticed that the 'Product Compare (0)' just above the list of items in any particular category is still there.
Code: Select all
<operation>
<search position="replace">
<![CDATA[<a href="<?php echo $compare; ?>" id="compare_total"><?php echo $text_compare; ?></a>]]>
</search>
<add>
<![CDATA[ ]]>
</add>
</operation>
Code: Select all
<modification>
<id>Remove Wishlist and Compare Features</id>
<version>1.5.2.1</version>
<vqmver>2.1.6</vqmver>
<author>bogalakon, Tom DeVito(modified)</author>
<file name="catalog/view/theme/default/template/common/header.tpl">
<operation>
<search position="replace"><![CDATA[<div class="links"><a href="<?php echo $home; ?>"><?php echo $text_home; ?></a><a href="<?php echo $wishlist; ?>" id="wishlist-total"><?php echo $text_wishlist; ?></a><a href="<?php echo $account; ?>"><?php echo $text_account; ?></a><a href="<?php echo $shopping_cart; ?>"><?php echo $text_shopping_cart; ?></a><a href="<?php echo $checkout; ?>"><?php echo $text_checkout; ?></a></div>]]></search>
<add><![CDATA[<div class="links"><a href="<?php echo $home; ?>"><?php echo $text_home; ?></a><a href="<?php echo $account; ?>"><?php echo $text_account; ?></a><a href="<?php echo $shopping_cart; ?>"><?php echo $text_shopping_cart; ?></a><a href="<?php echo $checkout; ?>"><?php echo $text_checkout; ?></a></div>]]></add>
</operation>
</file>
<file name="catalog/view/theme/default/template/common/footer.tpl">
<operation>
<search position="replace"><![CDATA[<li><a href="<?php echo $wishlist; ?>"><?php echo $text_wishlist; ?></a></li>]]></search>
<add><![CDATA[]]></add>
</operation>
</file>
<file name="catalog/view/theme/default/template/product/product.tpl">
<operation>
<search position="replace"><![CDATA[<span><?php echo $text_reward; ?></span> <?php echo $reward; ?><br />]]></search>
<add><![CDATA[]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[<div><span> <?php echo $text_or; ?> </span></div>]]></search>
<add><![CDATA[]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[<div><a onclick="addToWishList('<?php echo $product_id; ?>');"><?php echo $button_wishlist; ?></a><br />]]></search>
<add><![CDATA[]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[<a onclick="addToCompare('<?php echo $product_id; ?>');"><?php echo $button_compare; ?></a></div>]]></search>
<add><![CDATA[]]></add>
</operation>
</file>
<file name="catalog/view/theme/default/template/product/category.tpl">
<operation>
<search position="replace"><![CDATA[<div class="product-compare"><a href="<?php echo $compare; ?>" id="compare-total"><?php echo $text_compare; ?></a></div>]]></search>
<add><![CDATA[<div class="product-compare"></div>]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[<div class="wishlist"><a onclick="addToWishList('<?php echo $product['product_id']; ?>');"><?php echo $button_wishlist; ?></a></div>]]></search>
<add><![CDATA[]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[<div class="compare"><a onclick="addToCompare('<?php echo $product['product_id']; ?>');"><?php echo $button_compare; ?></a></div>]]></search>
<add><![CDATA[]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[html += ' <div class="wishlist">' + $(element).find('.wishlist').html() + '</div>';]]></search>
<add><![CDATA[]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[html += ' <div class="compare">' + $(element).find('.compare').html() + '</div>';]]></search>
<add><![CDATA[]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[html += '<div class="wishlist">' + $(element).find('.wishlist').html() + '</div>';]]></search>
<add><![CDATA[]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[html += '<div class="compare">' + $(element).find('.compare').html() + '</div>';]]></search>
<add><![CDATA[]]></add>
</operation>
</file>
<file name="catalog/view/theme/default/template/product/manufacturer_info.tpl">
<operation>
<search position="replace"><![CDATA[<div class="product-compare"><a href="<?php echo $compare; ?>" id="compare-total"><?php echo $text_compare; ?></a></div>]]></search>
<add><![CDATA[<div class="product-compare"></div>]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[<div class="wishlist"><a onclick="addToWishList('<?php echo $product['product_id']; ?>');"><?php echo $button_wishlist; ?></a></div>]]></search>
<add><![CDATA[]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[<div class="compare"><a onclick="addToCompare('<?php echo $product['product_id']; ?>');"><?php echo $button_compare; ?></a></div>]]></search>
<add><![CDATA[]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[html += ' <div class="wishlist">' + $(element).find('.wishlist').html() + '</div>';]]></search>
<add><![CDATA[]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[html += ' <div class="compare">' + $(element).find('.compare').html() + '</div>';]]></search>
<add><![CDATA[]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[html += '<div class="wishlist">' + $(element).find('.wishlist').html() + '</div>';]]></search>
<add><![CDATA[]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[html += '<div class="compare">' + $(element).find('.compare').html() + '</div>';]]></search>
<add><![CDATA[]]></add>
</operation>
</file>
<file name="catalog/view/theme/default/template/product/special.tpl">
<operation>
<search position="replace"><![CDATA[<div class="product-compare"><a href="<?php echo $compare; ?>" id="compare-total"><?php echo $text_compare; ?></a></div>]]></search>
<add><![CDATA[<div class="product-compare"></div>]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[<div class="wishlist"><a onclick="addToWishList('<?php echo $product['product_id']; ?>');"><?php echo $button_wishlist; ?></a></div>]]></search>
<add><![CDATA[]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[<div class="compare"><a onclick="addToCompare('<?php echo $product['product_id']; ?>');"><?php echo $button_compare; ?></a></div>]]></search>
<add><![CDATA[]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[html += ' <div class="wishlist">' + $(element).find('.wishlist').html() + '</div>';]]></search>
<add><![CDATA[]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[html += ' <div class="compare">' + $(element).find('.compare').html() + '</div>';]]></search>
<add><![CDATA[]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[html += '<div class="wishlist">' + $(element).find('.wishlist').html() + '</div>';]]></search>
<add><![CDATA[]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[html += '<div class="compare">' + $(element).find('.compare').html() + '</div>';]]></search>
<add><![CDATA[]]></add>
</operation>
</file>
<file name="catalog/view/theme/default/template/product/search.tpl">
<operation>
<search position="replace"><![CDATA[<div class="product-compare"><a href="<?php echo $compare; ?>" id="compare-total"><?php echo $text_compare; ?></a></div>]]></search>
<add><![CDATA[<div class="product-compare"></div>]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[<div class="wishlist"><a onclick="addToWishList('<?php echo $product['product_id']; ?>');"><?php echo $button_wishlist; ?></a></div>]]></search>
<add><![CDATA[]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[<div class="compare"><a onclick="addToCompare('<?php echo $product['product_id']; ?>');"><?php echo $button_compare; ?></a></div>]]></search>
<add><![CDATA[]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[html += ' <div class="wishlist">' + $(element).find('.wishlist').html() + '</div>';]]></search>
<add><![CDATA[]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[html += ' <div class="compare">' + $(element).find('.compare').html() + '</div>';]]></search>
<add><![CDATA[]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[html += '<div class="wishlist">' + $(element).find('.wishlist').html() + '</div>';]]></search>
<add><![CDATA[]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[html += '<div class="compare">' + $(element).find('.compare').html() + '</div>';]]></search>
<add><![CDATA[]]></add>
</operation>
</file>
<file name="catalog/view/theme/default/template/account/account.tpl">
<operation>
<search position="replace"><![CDATA[<li><a href="<?php echo $wishlist; ?>"><?php echo $text_wishlist; ?></a></li>]]></search>
<add><![CDATA[]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[<li><a href="<?php echo $reward; ?>"><?php echo $text_reward; ?></a></li>]]></search>
<add><![CDATA[]]></add>
</operation>
</file>
<file name="catalog/view/theme/default/template/module/account.tpl">
<operation>
<search position="replace"><![CDATA[<li><a href="<?php echo $wishlist; ?>"><?php echo $text_wishlist; ?></a></li>]]></search>
<add><![CDATA[]]></add>
</operation>
</file>
</modification>
<!--
<modification> - This is the highest level of the file and there can only be one
<id> - This is the name of the mod. Format: Free form text. (Informational)
<version> - This is the version of the mod. Format: Number and Decimal (1.0.0) (Informational)
<author> - This is the author of the mod. Format: Free form text (Informational)
<file> - This is the name of the file to modify. Requires attribute "name" as relative filename (catalog/controller/product/product.php). There can be multiple
<operation> - This is the wrapper of the actual operation occuring. There can be multiple operations to the same file.
<search> - This is the first required step of the operation. Uses an optional attribute "position" set to before|after|replace. replace is default. One per operation. Use CDATA tags to wrap code.
<add> - This is the second required step of the operation. Uses an optional attribute "trim" set to true|false to trim away whitespace and linebreaks. false is default. One per operation. Location of added data depends on the position of the <search> command. Use CDATA tags to wrap code.
<![CDATA[ ]]> - These are called CDATA tags and they are used by xml to specify that the data between should not be evaluated.
-->
You can get the VqMod's to work with any/all themes by changing 'Default' or 'MyTheme' etc to '*' such as:Just downloaded the file in the first post, updated the paths with my theme
Code: Select all
<file name="catalog/view/theme/*/template/product/category.tpl">
Please check out my OpenCart shop which is now trading!
http://www.directmuscle.co.uk
ReadMe for the vQmod Add Compare Products to the Header.
vQmod to Add Product Compare to the Header
-- - thanks for the opportunity to participate in y(our) ongoing success - --
-- - thanks for the opportunity to participate in y(our) ongoing success - --
in your styleshhet - - - search for .product-compareterrynshed wrote:Thanks twigg. Worked great.
Anyone figure out how to remove the Product Compare (0) just above the list of items.
Thanks again.
-- - thanks for the opportunity to participate in y(our) ongoing success - --
Hand Dryers
Bookstore Mod
QuickShop Module
Restricted Access - Compulsory Login
Template Override - Category Specific (vQmod)
Template Override - Brand Specific (vQmod)
How did you find out about us register question mod
Compulsory Login vQmod
Brands In Top Menu
zoom - Product Image - Auto on hover
Code: Select all
.icon-compare {
display: none;
OR
visibility: hidden;
}
Users browsing this forum: No registered users and 1 guest