Ronald Laughton is the worst referee in Rugby League
Near the top of your stylesheet css (before #header), insert these lines:
Code: Select all
/* Hide wishlist and compare sections */
.wishlist {
display:none;
}
.compare {
display:none;
}
Code: Select all
<!--
<div><span><?php echo $text_or; ?></span></div>
<div><a onclick="addToWishList('<?php echo $product_id; ?>');"><?php echo $button_wishlist; ?></a><br />
<a onclick="addToCompare('<?php echo $product_id; ?>');"><?php echo $button_compare; ?></a></div>
-->
Thanks
Roy
Opencart store (undergoing a revamp!) come back soon! http://www.singlesupplygroup.co.uk
http://www.opencart.com/index.php?route ... order=DESC
or search the ampang jaya theme
cheers
aj
Does someone know if it works with the latest version 1.5.4. ? I placed the xml file in de vqmod/xml folder but it doesn't seem to work just yet.

Thanks this works great.vord wrote:This is what I did.
Near the top of your stylesheet css (before #header), insert these lines:
Go to theme>default>template>product>product.tpl, un-comment these lines (around line 207):Code: Select all
/* Hide wishlist and compare sections */ .wishlist { display:none; } .compare { display:none; }
Hope this helps.Code: Select all
<!-- <div><span><?php echo $text_or; ?></span></div> <div><a onclick="addToWishList('<?php echo $product_id; ?>');"><?php echo $button_wishlist; ?></a><br /> <a onclick="addToCompare('<?php echo $product_id; ?>');"><?php echo $button_compare; ?></a></div> -->
but how do i remove the wish list on the top of the page ( beside 'Home' ) and the link on the My account page ?
Digmen1 wrote:There is an extension that removes the WishlIst and compare options completly from opencart.
And it is free.
Can you post a link to it and does it work with the newest version of opencart?
Its a Vqmod
http://www.opencart.com/index.php?route ... %20compare
You can see it working on my webiste www.adovationz.co.nz
Its free and I think it works on all versions of 1.5.
http://www.opencart.com/index.php?route ... ist&page=2
only also comment out the line with wishlist (+/- line 172) so it does not show on the site.
I'd like to share what i've done to remove the Add to Compare..
Don't use vqmod.. if you have the xml in removing the Add to Compare, remove it.. then:
At line 95 in category.tpl
from this:
<div class="compare"><a onclick="addToCompare('<?php echo $product['product_id']; ?>');"><?php echo $button_compare; ?></a></div>
to this:
<div class="compare"></div>
Just remove the <a onclick="addToCompare('<?php echo $product['product_id']; ?>');"><?php echo $button_compare; ?></a>
Hope it works to you guys.. I'm still figuring how to remove the Product Compare (0) on the product page.. any help please??
In the end though I actually did a search / find using Dreamweaver because there were quite a few files referencing the wishlist. This handy feature located all instances for me & solved the problem

I spent over an hour trying to figure out what was wrong!
If I could add this:
The Manufacturer pages still have these unwanted links,
Apply the above instructions in the file manufacturer_info.tpl
(found in the same folder; catalog/view/theme/yourtheme/template/product/)
Delete (or comment out as I do) the same info which is found at around these lines:
63,64
84,85
147,148
Thanks again for being thorough in your solution,
other solutions were leaving "null" all over my pages!
Coz
Attachments
Untitled.png (2.9 KiB) Viewed 1365 times

Ernie
[VQMod] Remove Wishlist Link From Header
https://www.opencart.com/index.php?rout ... n_id=19142
---
Remove Add to Compare Button
https://www.opencart.com/index.php?rout ... n_id=21343
---
Remove Add to Wishlist Button
https://www.opencart.com/index.php?rout ... n_id=21344
---
Remove elements (wishlist / compare / language / currency)
https://www.opencart.com/index.php?rout ... n_id=14672
---
Remove Wish List and Add To Compare
https://www.opencart.com/index.php?rout ... on_id=7513
---
OCMOD: Remove Wishlist
https://www.opencart.com/index.php?rout ... n_id=20494
---
Compare System Remover
https://www.opencart.com/index.php?rout ... n_id=27618
---
Wish List Remover
https://www.opencart.com/index.php?rout ... n_id=27658
Remove Compare System (Vqmod & Ocmod)
https://www.opencart.com/index.php?rout ... n_id=26270
---
Remove Wishlist System
https://www.opencart.com/index.php?rout ... n_id=26273
---
Remove Wishlist from everywhere (VQmod)
https://www.opencart.com/index.php?rout ... n_id=26634
---
VQMOD: Remove Wishlist, Reward Points & Compare
https://www.opencart.com/index.php?rout ... n_id=20002
---
Remove Wishlist and Compare [OCMOD]
https://www.opencart.com/index.php?rout ... n_id=21489
---
Remove All Compare & Wishlist Button (vqmod)
https://www.opencart.com/index.php?rout ... on_id=2934
Please don't send me OC Forum Personal Messages, just contact: jti@jacob.ch
---
OC 1.5.6.5 LIGHT Test Site: http://www.bigmax.ch/shop/
OC 1.5.6.5 V-PRO Test Site: http://www.openshop.li/shop/
My Github OC Site: https://github.com/IP-CAM
2'800+ FREE OC Extensions on the World's largest Github OC Repository Archive Site.
/catalog/view/theme/YOURTHEME/template/product/category.tpl
/catalog/view/theme/YOURTHEME/template/product/product.tpl
/catalog/view/theme/YOURTHEME/template/common/header.tpl
/catalog/view/theme/YOURTHEME/template/common/footer.tpl
/catalog/view/theme/YOURTHEME/template/product/manufacturer_info.tpl
/catalog/view/theme/YOURTHEME/template/product/search.tpl
/catalog/view/theme/YOURTHEME/template/product/special.tpl
Edit: Now the "add to cart" has the whole width to play with, I also modified this in both search.tpl and category.tpl it lets the words "add to cart" never disappear as they never run out of room now. And it centralised them too.
<div class="button-group">
<button style="width:100%" type="button" onclick="cart.add('<?php echo $product['product_id']; ?>', '<?php echo $product['minimum']; ?>');"><i class="fa fa-shopping-cart"></i> <?php echo $button_cart; ?> </button>
</div>
Code: Select all
catalog/view/theme/<your_theme>/template/account/account.tpl
catalog/view/theme/<your_theme>/template/account/wishlist.tpl
catalog/view/theme/<your_theme>/template/common/footer.tpl
catalog/view/theme/<your_theme>/template/common/header.tpl
catalog/view/theme/<your_theme>/template/module/account.tpl
catalog/view/theme/<your_theme>/template/product/category.tpl
catalog/view/theme/<your_theme>/template/product/manufacturer_info.tpl
catalog/view/theme/<your_theme>/template/product/product.tpl
catalog/view/theme/<your_theme>/template/product/search.tpl
catalog/view/theme/<your_theme>/template/product/special.tpl
The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.
Regards,
Straightlight
Programmer / Opencart Tester
Users browsing this forum: No registered users and 33 guests