Closed (fixed)
Project:
Commerce Wishlist
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
19 Dec 2011 at 13:58 UTC
Updated:
21 Aug 2012 at 16:02 UTC
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
Comment #1
ibuildit commentedSame here. :(
Comment #2
rodvolpe commentedTry to give admin acess to your roles and then remove them as required. It worked for me.
Comment #3
fall_0ut commentedI need to test this permission.
It's probably due to a wrong permission in the view.
Comment #4
fall_0ut commentedI had wrong a permission "admin" on the view, please test, the admin permission has been fixed.
Comment #5
dhayles commentedI've just downloaded the latest dev version and it doesn't appear to be fixed, still no listings for authorised users.
Comment #6
sleepingmonkLatest 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:
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.
Comment #7
fall_0ut commentedHi
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.
Comment #8
dhayles commentedHi 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.
Comment #9
Tezza commentedSame 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.
Comment #10
fall_0ut commentedHi,
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.
Comment #11
dhayles commentedThanks 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.
Comment #12
Tezza commentedYes!
Thanks a lot, Fall_Out. That did the trick.
Comment #13
hmartens commentedHow 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?
Comment #14
sleepingmonkThanks for the insight @fall_0ut
Comment #15
fall_0ut commentedComment #17
mac_dougal commentedThanks a lot. @fall_0ut