Post by williamjay » Fri Mar 29, 2013 12:20 am

Haowdy all, and especially @virgojewelry,

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>

Hope this is clear enough, note ** this syntax is for vQmod v2.3 ** ==> where path= and name= are separate on the Search Line. If you are using vQmod Version before 2.3, update or separate the sections back out to use only name= for each file, one section for each file. If you are using a custom theme, mileage may vary ...

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.

-- - thanks for the opportunity to participate in y(our) ongoing success - --


User avatar
New member

Posts

Joined
Sun Apr 29, 2012 5:41 am

Post by virgojewelry » Fri Mar 29, 2013 12:29 pm

Thanks for your reply. I will try it Sunday or Monday since I will have more time to go through your instructions.

Newbie

Posts

Joined
Fri Feb 22, 2013 10:06 am
Who is online

Users browsing this forum: No registered users and 2 guests