I am having this problem where the wishlist only displays for the administrator. The add to wishlist button and the messages saying that the item has been added and if its already existent shows for everybody. I have tried to remove all permissions with no luck! I am doing something wrong?

Comments

ibuildit’s picture

Same here. :(

rodvolpe’s picture

Try to give admin acess to your roles and then remove them as required. It worked for me.

fall_0ut’s picture

Assigned: Unassigned » fall_0ut

I need to test this permission.

It's probably due to a wrong permission in the view.

fall_0ut’s picture

Status: Active » Needs review

I had wrong a permission "admin" on the view, please test, the admin permission has been fixed.

dhayles’s picture

I've just downloaded the latest dev version and it doesn't appear to be fixed, still no listings for authorised users.

sleepingmonk’s picture

Latest dev, (downloaded Feb 21), still not working.

I don't think it's a permissions issue as it's not giving a "Page Not Found" or "Access Denied" message. It's successfully showing the Wishlist Tab but it has the "No results behaviour" text: "No products have been added yet."

I've played with permissions and contextual filters with no results. I think, something is getting lost on the database query with non-admin users. I'm not familiar with the inner workings of views enough to figure it out. My path is usually to write the query and the display into the module, but that doesn't allow for the flexibility of views.

To test:

  1. Grant "View own whishlist" permission to Authenticated user.
  2. Create New user.
  3. While logged in with the new Authenticated user, add item to wishlist.
  4. Go to that users /user/[uid]/wishlist.
  5. You SHOULD see the item just added, INSTEAD you see "No products have been added yet."
  6. Log out, then Log in as Admin
  7. Navigate back to the new users wishlist and you WILL see their item.

So, it's there. Admins can see it, it's in the database. But while authenticated users CAN see the wishlist page, it returns no results.

Thanks, anyone, for any insight or solution.

fall_0ut’s picture

Hi

sleepingmonk, you had installed the commerce_wishlist before the lastest dev version?

Try to revert the view "Wishlist"!

I will test what is described above.

dhayles’s picture

Hi fall_Out

To fully check the latest dev version I have just fully uninstalled the version I had, plus I deleted the view.

I have then reinstalled from the latest dev version as suggested.

I can confirm that the module is still only working for administrators and not authorised users.

Both the block and the page view have the message -- No products have been added yet. -- Yet if if try and add the same item twice then I get the message -- This product is already in your wishlist. -- If I double check the database then an entry has indeed been made.

I have been through the module code and cannot see where a problem my lie.

Tezza’s picture

Same here. 7.x-1.x-dev (2012-Feb-13)

A customer's wishlist is not visible to authenticated users but is visible to the administrator role. Granted an authenticated user the administrator role and voila - there it is. Remove the admin role from the user and un-voila, there it isn't!

I created a new role for customers and permitted that role to view their wishlist but this had no effect either.

fall_0ut’s picture

Category: bug » support

Hi,

You need given the permission "Access checkout " and "View any product of any type" or check the "View any Product %product" of the products types you want show to the registed users.

You need check the permission to view a product type because the view have a relation with a product.

dhayles’s picture

Thanks fall_0ut

As you say it is the permission on the 'product' that is needed.

I have kept the wishlist's view permission to 'View own wishlist' and added the authorised user to the products permissions and all is now working as it should.

Tezza’s picture

Yes!

Thanks a lot, Fall_Out. That did the trick.

hmartens’s picture

How I got around this problem is I went into Views and under Wishlist view I clicked on "Query settings:" under "Advanced" and checked "Disable SQL rewriting" ...now it is working...what's the implication of my actions?

sleepingmonk’s picture

Thanks for the insight @fall_0ut

fall_0ut’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

mac_dougal’s picture

Thanks a lot. @fall_0ut