Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
For some reason products do not appear in user's wishlist on user/%user/wishlists/%commerce_order
.
Will look into this further and keep this issue posted.
Comments
Comment #1
aramboyajyan CreditAttribution: aramboyajyan commentedVery strange; after playing around with this, the issue seems to be in the
Manage own wishlist
permission of thewishlist
view.The user I'm trying to see this has that permission, and I verified that programmatically.
Admins can see the order contents though.
Will keep this posted.
Comment #2
Neograph734Just ran into the situation where I could not see the content as admin. Very strange as I did not notice this earlier.
Comment #3
Neograph734It is due the wrong contextual filter. When we switched to multiple wishlists per user, I switched the contextual filter to use the commerce-order-id rather then the user-id. Somehow this has gotten reverted somewhere.
If you remove the commerce order: uid and replace it with commerce order order-id, the view works as expected.
Comment #5
Neograph734Committed, please have a look if it resolved the problem.
Comment #6
Neograph734Marking as fixed. Please reopen if still an issue.
Comment #8
aramboyajyan CreditAttribution: aramboyajyan commentedThe latest dev didn't work; I tested this a few times on a clean install and seems that Commerce Product relationship was causing the line items not to be displayed in the view.
A commit should be pushed shortly; I just updated the default view.
Let me know if it still works on your end. I'm changing the status meanwhile to "Needs review", just till I test this more thoroughly.
Comment #9
Neograph734Can you confirm the rest of the View is as described in #3?
I'll have a look later today.
Comment #10
aramboyajyan CreditAttribution: aramboyajyan commentedWill do shortly; thanks for quick response.
Comment #11
Neograph734I ran into a similar situation where some fields were not saving their relationship the first time (opening the field properties and hitting save again solved the issue :s). Perhaps this is what went wrong in your view as well?
Anyway, we don't really seem to be needing the product reference and if people want to add it manually it is their choice. Views seems to be working perfectly without the reference so I am setting this to fixed as it has already been committed.
Comment #12
aramboyajyan CreditAttribution: aramboyajyan commentedI think I run yesterday into the same issue later on; I wanted to look further because it wasn't consistent.
Let's leave this as it is for now; I agree in not needing the product reference right now. We can always come back to this if we need it later on.