Sellers cannot edit own product after administrator edits product
Cayenne - August 27, 2009 - 02:53
| Project: | Ubercart Marketplace |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Seller created a product, then I went in and did an edit to the attributes. Thereafter, the seller cannot make any edits to the product at all.
Prior to my (admin) touching the product, there was no problem. Has anyone seen this? I THINK I have my permissions right...
Probably unrelated, but sellers cannot upload product images..

#1
Update to this Query:
There seems to be some peripheral discussion of how Marketplace determines who owns the product. Is this different from normal nodes? Does marketplace look to the last editor?
A link to the discussion is posted below. I am now going to roam about the database. I'd be thrilled, simply thrilled, if someone can wave a magic answering wand over this!
Michael
http://www.ubercart.org/forum/support/12085/uc_marketplace_problem_need_...
#2
The link you supplied highlights one of the fundamentals of marketplace. The AUTHOR is the owner of the product node and the exact same thing as the SELLER if given permission to act as seller. My first guess would be to make sure the author is set to the username of your seller if anytime an admin is creating or editing a product node. You can do this by modifying the Authored by field. In your case, permissions should be set for sellers to create product and edit own product.
Please let me know if this fixes your problem.
#3
It is very strange. Your suggestion is quite a good one, and I had already tried it. However, the problem now appears confined to a single case. As you suspect, when I set the AUTHOR correctly, with the correct permissions, there is generally no problem, EXCEPT in one case:
Where the node is created by cloning a particular pre-existing product, then the problem recurs. If I create the product from scratch, whether as admin or seller, the problem seems not to be there.
If this issue is really confined to a single idiosyncratic case, then that's tough noogies, I think. Let me experiment a little more.
In this regard, may I ask one question: It has seemed to me that when I create a seller AFTER the product is listed, and after some sales have been made, that assigning the product to that seller leaves some pre-existing orders off the seller's report. Am I correct in that observation, or am I just nuts? I'm asking here because it may bear a little bit on the general case of after-created sellers.
Despite the above, it's a great and helpful module
Michael
#4
Michael,
You're probably not nuts. All said, I haven't tested that yet but I have seen some weird date errors related to the various reports. I can't remember offhand if it was originating in marketplace or ubercart and wether it had anything to do with timezone offsets but I'll be sure to dig a little deeper.