Here's the simplest blanket-one-file solution I could fashion in under an hour: ALL vQmod, no changing the stylesheet.
Insure that you do have vQmod and Manager installed, latest versions recommended. At least 2.3.0 for this solution.
In the case of class= already available are .compare and .product-compare => set to display:none in css and see what happens.
There are related content still in the code, content without containers, containers labelled without regard to content, and other stuff just dropped in place. Solution = put things in the properly named containers: name containers appropriately, style as you wish, of the container separate from the content. Display none is a valid option for a container - content is unaffected - program code is unaffected - only the container is missing from the browser, by design.
- - - vQmod Remove Compare - removes the Product Compare feature, mostly by injecting style=display:none" and leaving the rest to the browser, the thinking here is to change them all together in agreement.
Instead of:
remove some content - in or by program code;
remove from display some content - in or by HTML and css,
Code: Select all
<modification>
<id><![CDATA[Remove Compare]]></id>
<version><![CDATA[1.0]]></version>
<vqmver><![CDATA[2.3]]></vqmver>
<author><![CDATA[William Jay - williamjay@repairman.com]]></author>
<file path="catalog/view/theme/*/template/product/" name="product.tpl">
<operation error="log" info="remove Compare from DISPLAY on product product template AND change wishlist to class xwishlist">
<search position="replace" trim ="true" offset="1"><![CDATA[<span class="links"><a onclick="addToWishList('<?php echo $product_id; ?>');"><?php echo $button_wishlist; ?></a><br />]]></search>
<add><![CDATA[<div class="links"><span class="xwishlist"><a onclick="addToWishList('<?php echo $product_id; ?>');"><?php echo $button_wishlist; ?></a></span>
<span class="xcompare" style="display:none;"><a onclick="addToCompare('<?php echo $product_id; ?>');"><?php echo $button_compare; ?></a></span></div>]]></add>
</operation>
</file>
<file path="catalog/view/theme/*/template/product/" name="category.tpl,manufacturer_info.tpl,search.tpl,special.tpl">
<operation error="log" info="remove from DISPLAY Product-Compare">
<search position="replace" trim ="true"><![CDATA[<div class="product-compare">]]></search>
<add><![CDATA[<div class="product-compare" style="display:none;">]]></add>
</operation>
</file>
<file path="catalog/view/theme/*/template/product/" name="category.tpl,manufacturer_info.tpl,search.tpl,special.tpl">
<operation error="log" info="remove DISPLAY of Compare from Routes - Category, Maunfacturer_Info, Search and Special Templates">
<search position="replace" trim ="true"><![CDATA[<div class="compare">]]></search>
<add><![CDATA[<div class="compare" style="display:none;">]]></add>
</operation>
</file>
</modification>
You have nothing to lose by updating vQmod and possibly much to gain. For every release of vQmod, the same files and directories are used, (except one directory, deprecated), and so one can faithfully install any version of vQmod and it will completely over-write the currently installed one, same for vQmod Manager -> easy to downgrade or match to.