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.

Examples

  • original path: /user/%/wishlist --> it works as expected
  • change path to: /merkliste --> it doesn't work (link is shown)
  • change path to: /wishlist --> it works again as expected

Comments

fall_0ut’s picture

Assigned: Unassigned » fall_0ut
Status: Active » Closed (fixed)

Hi,

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!