Closed (fixed)
Project:
Commerce Wishlist
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
30 Nov 2011 at 11:03 UTC
Updated:
12 Dec 2011 at 15:32 UTC
Hi,
first of all thanks for this great module. It really helps a lot!
As the delivered view doesn't fulfill my needs, I adapted the wishlist view and found an interesting bug: after customizing the view, the "add to wishlist" link always appeared beside the "add to cart" link, which of course should not happen (because it's already in wishlist)
After trying lots of different variations, it seems to me that the appearence of the "add to wishlist" link depends on the path of view. It seems that the word "wishlist" has to be present somewhere in path in order to hide the the link correctly. The position of the word in the path seems to be unimportant.
Comments
Comment #1
fall_0ut commentedHi,
How the button "Add to wishlist" is added by the hook_form_alter, I had implemented a hack to not add the button when the path contains "wishlist"
At this moment I created a simple routine to detect if is a wishlist view, not adding the button "Add to wishlist"
Please test!