VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: btseppo on December 03, 2020, 12:59:01 PM

Title: Shop vendor other than siteadmin
Post by: btseppo on December 03, 2020, 12:59:01 PM
Hi,

I place this thread at installation -category as this issue appears after installation, while still configuring VirtueMart.

I set up the Joomla and Virtuemart for another person.
After insalling virtuemart, I edit the Shop (Shop -> Shop), and it does not allow to save unless fields at "Shopper information" are filled. If I fill there the correct information, it will overwerite the admin-account with that info (new Joomla, only admin there at the moment).
So this obviously was not right. I went to Joomla to change it back as it was supposed to be.

I was about to create another shopper from VM (Orders & Shoppers -> Shoppers) but there isn't any "new" button, so I need to create new uyer from Joomla. So I did.
Then, back to VM, to Shop -setup. It was filled still with admin info, so I changed them to new user info. When saving, got error: vmError: Registration failed: Username in use.
That was obvious since I had to create it before adding it to VM as explained above.

OK, I recall that somehow user needs to be marked as vendor, so I went to Orders & Shoppers -> Shoppers, clicked the new user. It takes me to "Shopper Information" with emails and username of admin account prefilled, not this new user. So I press cancel, and check the other one, actual admin account. This takes me to shop-configuration page, at Shoppper information tab - with the admin account details prefilled.

This is most confusing: How can one setup certain user as the "shop owner" -user, other than pageadmin who is just taking care of the site etc technical?

I find no logic in there, but I must be missing something. I checked the manual etc, but they just show images of that page (shop->shop->shopper information) with admin details, and the textual information does not give any further info of in which order or how should one setup a shop owner there..

So how do I setup another Joomla account as shop owner?

Title: Re: Shop vendor other than siteadmin
Post by: GJC Web Design on December 03, 2020, 16:05:48 PM
I don't really foloow your question but what I do is:

as tech/builder I am a Joomla superadmin - during install I will be designated as shop owner

I also make the new shop owner a J superadmin , then complete the reg process in the VM shopper
then in vm tools assign that id as shop owner
Title: Re: Shop vendor other than siteadmin
Post by: jenkinhill on December 03, 2020, 16:25:26 PM
I do exactly the same as GJC.
Title: Re: Shop vendor other than siteadmin
Post by: btseppo on December 03, 2020, 23:23:04 PM
OK thanks. Seems there is 2 ways to do that. I didn't see that place at Tools at first and almost missed it even after reading your answers, but for ones looking for it, it is the one input box after large buttons in DB Tools tab.

The other way I found:
Seems that the admin cannot do if for the shop owner, but the shop owner needs to do it themselves. Or admin through using their account.

While that works, it is a bit odd, as many shop owners do not know much about tech and ask for someone to do it for them instead. Like GJC and jenkinhill pointed out, there is a "transfer ownership" -thingie at Tools, but I found no mentioning it in the manuals, or in the info-boxes VM shows up when setting things up. 

If devs are reading this, a suggestion for future versions: put a simple dropdown to shop -config, where admin can select the shopowner. Much easier if it is at the same place where you need to set it in the first place, and without need to look for the id of that user separately.

Anyway, thanks!
Title: Re: Shop vendor other than siteadmin
Post by: jenkinhill on December 04, 2020, 10:40:09 AM
Quote from: btseppo on December 03, 2020, 23:23:04 PM
I found no mentioning it in the manuals

Set here the new storeowner id   http://docs.virtuemart.net/manual/tools-menu/70-tools-migration.html