Using 1.9.0.1
Here is the situation:
-
not logged in
-
adding some product to cart (no problem)
-
go to "view cart"
-
fields: image, description, edit, unit price, qty, subtotal, remove
Situation 2:
-
logged in now
-
adding some product to cart (no problem)
-
go to "view cart"
-
fields: image, description, edit, add to wishlist!!!, unit price, qty, subtotal, remove
How do i get rid of the add to wishlist from this?
I know i can set display none using like this:
.cart-table th:nth-child(3), .cart-table td:nth-child(3), .cart-table th:nth-child(4), .cart-table td:nth-child(4) {
display: none;
}
BUT…
when i do this it works great for when NOT LOGGED IN, and when LOGGED IN, it added an extra th so it is messed up…
Anyone know where i can safely delete that add to wishlist function from cart view?
Thanks
Best Answer
You have 2 options here.
Option 1.
Edit all cart and cart item templates and remove the wishlist column.
For this you need to edit:
Option 2
Override the
Mage_Wishlist_Helper_Data::isAllowInCart
method and make it returnfalse
always.For this second option you need a new module. Let's call it
Easylife_Wishlist
. Create these files:app/etc/modules/Easylife_Wishlist.xml
- the declaration file:app/code/local/Easylife/Wishlist/etc/config.xml
- the configuration fileapp/code/local/Easylife/Wishlist/Helper/Data.php
- your new helperClear the cache, disable compilation if enabled and you are done.