[vQmod] Remove Add to Compare
42 posts
• Page 2 of 3 • 1, 2, 3
Re: [vQmod] Remove Add to Compare
yes i already did all this 
i think the theme may be over-riding something
i've contacted the theme owner to see what he says

i think the theme may be over-riding something
i've contacted the theme owner to see what he says
- smitch6
- Posts: 155
- Joined: Sat Sep 17, 2011 6:46 am
Re: [vQmod] Remove Add to Compare
have a look in the vqmod logs. this may give you a clue
-

olimax - Posts: 77
- Joined: Thu Dec 22, 2011 9:08 am
- Location: Barcelona & London
Re: [vQmod] Remove Add to Compare
no no error logs to do with this mod :~
- smitch6
- Posts: 155
- Joined: Sat Sep 17, 2011 6:46 am
Re: [vQmod] Remove Add to Compare
Just downloaded the file in the first post, updated the paths with my theme and I am also seeing the 'null' text under the 'add to wishlist'.
I also noticed that the 'Product Compare (0)' just above the list of items in any particular category is still there.
Using OpenCart 1.5.1.3 and the latest VQmod.
Thanks.
I also noticed that the 'Product Compare (0)' just above the list of items in any particular category is still there.
Using OpenCart 1.5.1.3 and the latest VQmod.
Thanks.
- terrynshed
- Posts: 67
- Joined: Fri Jan 20, 2012 9:35 am
Re: [vQmod] Remove Add to Compare
it works on 1.5.1.3 with custom theme; to remove "null" you need to manually delete <div> tags.
example:
this "<![CDATA[<div class="compare"><a onclick="addToCompare('<?php echo $product['product_id']; ?>');"><?php echo $button_compare; ?></a></div>]]>"
became "<![CDATA[<a onclick="addToCompare('<?php echo $product['product_id']; ?>');"><?php echo $button_compare; ?></a>]]>"
example:
this "<![CDATA[<div class="compare"><a onclick="addToCompare('<?php echo $product['product_id']; ?>');"><?php echo $button_compare; ?></a></div>]]>"
became "<![CDATA[<a onclick="addToCompare('<?php echo $product['product_id']; ?>');"><?php echo $button_compare; ?></a>]]>"
- twigg
- Posts: 6
- Joined: Thu Feb 09, 2012 8:33 pm
Re: [vQmod] Remove Add to Compare
olimax, thank you for the file.
and thank you for the heads up twigg!
I am only having one issue, that is the same one that terrynshed stated:
How do I get rid of this one? Do I have to add another instance to the file?
I'm using OpenCart 1.5.1.3 and the latest VQmod as well.
Thanks!
and thank you for the heads up twigg!
I am only having one issue, that is the same one that terrynshed stated:
I noticed that the 'Product Compare (0)' just above the list of items in any particular category is still there.
How do I get rid of this one? Do I have to add another instance to the file?
I'm using OpenCart 1.5.1.3 and the latest VQmod as well.
Thanks!
- picobo
- Posts: 10
- Joined: Fri Feb 10, 2012 10:59 pm
Re: [vQmod] Remove Add to Compare
Thanks twigg. Worked great.
Anyone figure out how to remove the Product Compare (0) just above the list of items.
Thanks again.
Anyone figure out how to remove the Product Compare (0) just above the list of items.
Thanks again.
- terrynshed
- Posts: 67
- Joined: Fri Jan 20, 2012 9:35 am
Re: [vQmod] Remove Add to Compare
nevermind... got it to work!
to remove the "Product Compare (0)", just add another 'operation' for that instance under:
<file name="catalog/view/theme/YOURTHEME/template/product/category.tpl"> inside the xml file.
Here's the code in case anybody needs it:
to remove the "Product Compare (0)", just add another 'operation' for that instance under:
<file name="catalog/view/theme/YOURTHEME/template/product/category.tpl"> inside the xml file.
Here's the code in case anybody needs it:
- 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>
- picobo
- Posts: 10
- Joined: Fri Feb 10, 2012 10:59 pm
Re: [vQmod] Remove Add to Compare
This works good!
But why do you replace Wishlist with <span>wishlist?
But why do you replace Wishlist with <span>wishlist?
- Xciso
- Posts: 134
- Joined: Thu Jul 14, 2011 9:20 pm
Re: [vQmod] Remove Add to Compare
I modified the code so it will work with Opencart 1.5.2.1. Hope it helps.
- 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.
-->
- Attachments
-
oc_remove_wishlist_compare_rewardpoint.xml- (11.42 KiB) Downloaded 173 times
- tommmied
- Posts: 4
- Joined: Mon Feb 13, 2012 6:08 am
Re: [vQmod] Remove Add to Compare
Just installed on 1.5.2.1 and it works great. Thank you. (To clarify, I am using the .xml in the original post to remove 'add to compare'.)
Using OC 1.5.2.1
- ogia
- Posts: 19
- Joined: Sun Apr 08, 2012 5:00 am
Re: [vQmod] Remove Add to Compare
tommmied wrote:I modified the code so it will work with Opencart 1.5.2.1. Hope it helps.
Excellent. Many thanks.
- DaveB
- Posts: 4
- Joined: Tue Dec 20, 2011 11:31 am
Re: [vQmod] Remove Add to Compare
Just downloaded the file in the first post, updated the paths with my theme
You can get the VqMod's to work with any/all themes by changing 'Default' or 'MyTheme' etc to '*' such as:
- 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
http://www.directmuscle.co.uk
- stevemarsbar
- Posts: 23
- Joined: Mon Apr 16, 2012 6:02 pm
Re: [vQmod] Remove Add to Compare
I tried using the vqmod tommmied posted on 1.5.2.1 using a custom theme, I've updated the theme directory but get these errors, any Idea what I'm doing wrong?
Thanks
---------- Date: 2012-04-25 12:21:12 ~ IP : ***** ----------
REQUEST URI : /index.php?route=product/product&path=25_28&product_id=42
MOD DETAILS:
modFile : /home/*****/public_html/vqmod/xml/oc_remove_wishlist_compare_rewardpoint.xml
id : Remove Wishlist and Compare Features
version : 1.5.2.1
vqmver : 2.1.6
author : bogalakon, Tom DeVito(modified)
Could not resolve path for [catalog/view/theme/kinder15/template/product/manufacturer_info.tpl] (SKIPPED)
Could not resolve path for [catalog/view/theme/kinder15/template/product/search.tpl] (SKIPPED)
Could not resolve path for [catalog/view/theme/kinder15/template/account/account.tpl] (SKIPPED)
Could not resolve path for [catalog/view/theme/kinder15/template/module/account.tpl] (SKIPPED)
SEARCH NOT FOUND (ABORTING MOD): <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>
----------------------------------------------------------------------
Thanks
---------- Date: 2012-04-25 12:21:12 ~ IP : ***** ----------
REQUEST URI : /index.php?route=product/product&path=25_28&product_id=42
MOD DETAILS:
modFile : /home/*****/public_html/vqmod/xml/oc_remove_wishlist_compare_rewardpoint.xml
id : Remove Wishlist and Compare Features
version : 1.5.2.1
vqmver : 2.1.6
author : bogalakon, Tom DeVito(modified)
Could not resolve path for [catalog/view/theme/kinder15/template/product/manufacturer_info.tpl] (SKIPPED)
Could not resolve path for [catalog/view/theme/kinder15/template/product/search.tpl] (SKIPPED)
Could not resolve path for [catalog/view/theme/kinder15/template/account/account.tpl] (SKIPPED)
Could not resolve path for [catalog/view/theme/kinder15/template/module/account.tpl] (SKIPPED)
SEARCH NOT FOUND (ABORTING MOD): <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>
----------------------------------------------------------------------
- web233
- Posts: 11
- Joined: Tue Feb 14, 2012 12:05 am
Re: [vQmod] Remove Add to Compare
Why get rid of it? Move it up onto the Header beside Wish List(o)
- Attachments
-
readme_AddCompareProductsToTheHeader.txt- ReadMe for the vQmod Add Compare Products to the Header.
- (3.03 KiB) Downloaded 45 times
-
add_compare_products_to_the_header.xml- vQmod to Add Product Compare to the Header
- (3.56 KiB) Downloaded 44 times
-- - thanks for the opportunity to participate in y(our) ongoing success - --
-

williamjay - Posts: 37
- Joined: Sat Apr 28, 2012 9:41 pm
Re: [vQmod] Remove Add to Compare
catalog/view/theme/*/etcetera/filename.xyz
- works around any Case SeNsiTive.direcTory naminGs . . . and has been in the vQmod since v2.1 . . .
Most of those things are displayed in <div>containers on the Pages and can easily be removed from display via the stylesheet.css by identifying them, (or writing a specificly targeted clause) and setting => {display:none;}
- works around any Case SeNsiTive.direcTory naminGs . . . and has been in the vQmod since v2.1 . . .
Most of those things are displayed in <div>containers on the Pages and can easily be removed from display via the stylesheet.css by identifying them, (or writing a specificly targeted clause) and setting => {display:none;}
-- - thanks for the opportunity to participate in y(our) ongoing success - --
-

williamjay - Posts: 37
- Joined: Sat Apr 28, 2012 9:41 pm
Re: [vQmod] Remove Add to Compare
terrynshed wrote:Thanks twigg. Worked great.
Anyone figure out how to remove the Product Compare (0) just above the list of items.
Thanks again.
in your styleshhet - - - search for .product-compare
.product-compare {
display:none;
}
-- - thanks for the opportunity to participate in y(our) ongoing success - --
-

williamjay - Posts: 37
- Joined: Sat Apr 28, 2012 9:41 pm
Re: [vQmod] Remove Add to Compare
THe main problem is that you are not cacneling out all the required things in the tpl file... you also need to remove the javascript tat corrosponds to the compare button etc... this is there for changing from grid to list etc... it is at the bottom of the tpl file... and as you have commented out the stuff in the tpl file but the javascript is trying to change it/find it you will get a null error...
make sense?... don't be supprised if it doesn't cos i am hardly thinking what i am writing as it is 2:30 in the morning here... SIGH... lol
CHeers
Jem
make sense?... don't be supprised if it doesn't cos i am hardly thinking what i am writing as it is 2:30 in the morning here... SIGH... lol
CHeers
Jem
If i have helped... please click here to donate
Bookstore (book store) mod
Template Override - Category Specific (vQmod)
Template Override - Brand Specific (vQmod)
How did you find out about us register question mod
Compulsory Login vQmod
zoom - Product Image - Auto on hover
Latest website
http://www.modehandcare.co.nz/hand-dryers/
Bookstore (book store) mod
Template Override - Category Specific (vQmod)
Template Override - Brand Specific (vQmod)
How did you find out about us register question mod
Compulsory Login vQmod
zoom - Product Image - Auto on hover
Latest website
http://www.modehandcare.co.nz/hand-dryers/
-

Jeremy Fisk - Posts: 924
- Joined: Thu Nov 11, 2010 10:11 am
- Location: New Zealand (Masterton, Wairarapa)
Re: [vQmod] Remove Add to Compare
Why to get in so much mess. simply edit in .css

- Code: Select all
.icon-compare {
display: none;
OR
visibility: hidden;
}

- afridi2129
- Posts: 4
- Joined: Sat May 19, 2012 6:24 am
Re: [vQmod] Remove Add to Compare
I've tried all the various options listed on this thread to successfully remove the "Add to Compare" and still got the "null" error. Would someone please list step-by-step instructions to remove the "Add to Compare" from the store. I need to know what to install, what files to edit. Please help! Thank you! 

- virgojewelry
- Posts: 2
- Joined: Fri Feb 22, 2013 2:06 am
42 posts
• Page 2 of 3 • 1, 2, 3
Who is online
Users browsing this forum: No registered users and 13 guests













