VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: iWim on March 07, 2012, 11:52:51 AM

Title: Change vendor in shopinfo
Post by: iWim on March 07, 2012, 11:52:51 AM
Hello...

How can I get the information of C2 to display in the shop info?

My setup:
Joomla! 2.5.1 / VirtueMart 2.0.2
php 5.3.10 / MySQL 5.5.20

I have set up 3 Joomla users / VM Customers:
C0 = super user / admin / no vendor, was created by AdminTools
C1 = registered / shopper / no vendor, ID42, unpublished, was super user before AdminTools created a new one with new ID
C2 = super user / admin / VENDOR

AdminTools created C0 BEFORE VirtueMart was installed.

I changed C1 to no vendor and C2 to is a vendor.
When I go to C2 in Orders > Customers I can see the Vendor info tab. C1 has no vendor tab. So that works.
However, when I go to Shop > Shop I see (the customer info of) C1, who is no vendor.

So, how can I get the information of C2 to display in the shop info?

Thank you.
Wim
Title: Re: Change vendor in shopinfo
Post by: John2400 on March 08, 2012, 10:35:16 AM
Hi IWim,

What you really want is to be able to set the shop vendor.

* open Virtuemart>>tools>>control Panel>>shoppers>>pick your vendor>>click is a vendor>>or clcik not a vendor ( if you like)
Click on that person and they the vendor should have three tabs to type into.

Set this up as your vendor- and save.

Go to your shop and see tyhe vendor - again if this is not right then type in additional information.

Now you also have to check - in components >>contact >>manage contacts if you are going to set up ( contact info elsewhere in joomla or your shop) /

* Now if Joomla or virtuemart are doing something silly to your users - then keep the users you want eg _ C2 and get rid of all other users-

Be careful - now make sure you add in joomla a new super user - new passwords - make sure YOU  can get back in as superuser.

Title: Re: Change vendor in shopinfo
Post by: iWim on March 08, 2012, 15:11:54 PM
Thanks for the reply, but this doesn't seem to work.

I can change any shopper to vendor. I can see the vendor tab on the shopper edit page.

But... the new vendor does not show in Shop. The old vendor is.
And in the title I see "Shopper [edit] old vendor shopper name" with two tabs: Additional information and General User Information

When I set the old vendor back as vendor the title in Shop says "Shop [edit] shop name" and I have three tabs again.

Creating a new shopper and change that to vendor sometimes works. But not always.
Deleting the old vendor(shopper) also works. Not sure if that's the true intention of the system, kinda drastic.

I don't get it...
All I want is set (A) a shopper (any shopper) as vendor and (B) have that shopper display in 'Shop'.
I can do A, I can't do B. Or only through drastic measures...

Wim
Title: Re: Change vendor in shopinfo
Post by: Milbo on March 08, 2012, 22:56:03 PM
You need to change some code for it, Matteo got it almost perfect working within 2-3 days. Atm he is not available
Title: Re: Change vendor in shopinfo
Post by: lliseil on June 14, 2012, 20:05:42 PM
Hi, migrating a shop (from Joomla! 1.5.26 / Vm1.1.19) to Vm 2.0.6 / Joomla! 2..5.4, I had the same issue that iWim described:
Shop shows only two tabs (Additional information, General User Information), i.e. no Vendor tab.
Also similar to what Lorrein describes here Installation, Migration & Upgrade VM 2 / Re: No Shop Currency defined! (http://forum.virtuemart.net/index.php?topic=90927.msg331574;topicseen#msg331574) , or dartarvo in Installation, Migration & Upgrade VM 2 / Re: Cannot save changes to Config or Shop (http://forum.virtuemart.net/index.php?topic=99323.msg340825;topicseen#msg340825)
Note that the shop I migrated has 2000 shoppers that I cannot delete.

1. Tried several times with both Vm 2.0.6 and 2.0.7e; same results.
To be exact, it worked once, while still on Joomla! 1.5.26 with Vm 2.0.7e. But reverted to the same issue after migration to Joomla! 2.5.4: No Vendor tab.

2. In the Commands & Clients, I set desired shopper (super-admin) as Vendor.
Returning to the "Shop": No Vendor tab. (tried several times)

3. Tried the same but in "MultiVendor" mode, as described by Milbo Re: Can't edit the store? How to become a vendor (http://forum.virtuemart.net/index.php?topic=99353.msg328287#msg328287):
Right after returning to SingleVendor, there wasn't Vendor tab in the "Shop" (while in "MultiVendor" mode, the selected shopper showed up and there was my Vendor tab in the "Shop"). (tried several times)

4. Then I tried something simple: Went in the Commands & Clients, CLICKED on the desired shopper (super-admin) name.
That oppened the "Shop" straight, with the Vendor tab (without the user/vendor data, which is not a big deal).
Entering the user/vendor data, Currency then save did the trick in this location: Shop is working smoothly after several log off / log in with a couple more super-amdin users :-D

For the record, i found a funny behaviour during my MultiVendor tests:
Each time I went to "Commands & Client" and selected my user as the Vendor, another user showed up in "Shop" > Information  ;D
- Right after the migration it was user ID #63 (lowest ID; the desired user/vendor is #64)
- after I deleted user #63 (a former site admin), user #69  :o showed up (second ID after my user)
- tried to select user #64 again in MultiVendor mode, and then user #71 showed up (third ID after my user)

My 2 cents.
Title: Re: Change vendor in shopinfo
Post by: NickyV on June 23, 2012, 16:22:33 PM
I had similar issues - I'd set one user (not the original SuperUser) as Vendor but when I tried to click on Shop that Vendor info wouldn't come up. In the end I fixed it in phpMyAdmin - in the table virtuemart_vmusers, there are 2 columns to look at. The Vendor should have a "1" in both virtuemart_vendor_id AND user_is_vendor, which they did. However, another user also had a "1" under "virtuemart_vendor_id. When I changed both these columns to "0" for all non-Vendors, and both to "1" for the Vendor, it all worked.
Title: Re: Change vendor in shopinfo
Post by: efocus on August 06, 2012, 00:53:09 AM
I had this problem as well. I was the only user that had ever 'shopped' so I think I ended up there by default. Nothing I did worked to unseat my user account as the Vendor.

I logged myself out and relogged in as the user I wanted to be the Vendor. Then I set the correct user to Vendor and all the rest to Shoppers. Then I checked in the Shop and it looked like it took finally. I then went into phpMyAdmin to make sure as per NickyV's advice. I didn't have to change it as it was all correct. There's something not working smoothly in this process but I hope my method helps someone until its fixed.
Title: Re: Change vendor in shopinfo
Post by: olgri on February 21, 2013, 04:01:31 AM
I get this on VM 2.0.18a as well.

Fix from NickyV worked well, thanks!
Title: Re: Change vendor in shopinfo
Post by: webmosa on April 12, 2013, 20:59:11 PM
Why is this bug still not fixed. This is s serious core flaw in the system. Come on Virtuemart team get on the ball
Title: Re: Change vendor in shopinfo
Post by: jenkinhill on April 12, 2013, 23:53:27 PM
webmosa why are you bothering to add to this old thread with abuse - it never was a bug. Why are you not using the set vendor switch?  Under tools & migration.
Title: Re: Change vendor in shopinfo
Post by: coville on May 01, 2014, 18:59:13 PM
I was having trouble changing the shop owner to another user. I found it in the Tools -> Tools & Migration -> Migration and then enter the user id number in the "Write here the new store owner id" field.

There has to be a better way to do this and I hope that VM3 fixes this. I understand that this is something that is not needed to be done often, but when it does there is nearly no way to figure out how to do it without searching the forums. I think that on the shop page there should be a way to select owner from the shopper list.
Title: Re: Change vendor in shopinfo
Post by: SamTzu on June 10, 2014, 14:39:24 PM
Really? TWO YEARS. Why do we still have to put up with this, this, words fail me.
I'm here to tell you: THIS STILL DOES NOT WORK!!!
No matter what we do we still get this error in Shop page.

"JUser: :_load: Unable to load user with ID: 883"

Problem is Joomla sees no one with that user ID (but it is in virtuemart_vmusers table.)
How many here can use phpmyadmin? Hands up! Because every one and their cousin surely can.
FIX THIS NOW! If you don't you will alienate every one and their cousins.

If you don't want to fix the Vendor system for some obscure reason at least create a truncate virtuemart_vmusers table button in the Migration and Tools page, please.
Title: Re: Change vendor in shopinfo
Post by: jenkinhill on June 10, 2014, 15:55:51 PM
It is over a year since anyone reported seeing that error message. Was the original installation a Quickstart package?
These any help?
http://www.gavick.com/forums/general-discussion/error-juser-load-unable-to-load-user-with-id-42-17408.html
http://www.templatemonster.com/help/joomla-2-5-5-juser-_load-unable-to-load-user-with-id-42-error.html
http://getk2.org/community/English-K2-Community/170278-JUser-_load-Unable-to-load-user-with-ID-531
http://forum.virtuemart.net/index.php?topic=113929.msg383379#msg383379
Title: Re: Change vendor in shopinfo
Post by: GJC Web Design on June 10, 2014, 16:22:53 PM
@Samtzu - just ask for your money back......
Title: Re: Change vendor in shopinfo
Post by: tim92109 on February 04, 2015, 02:25:58 AM
Yes.  This dumb vendor crap has cost me hours and hours.  I'd never pay a dime for virtuemart when it comes with bugs like this.  What the hell is vendor for anyway???? How many f'ing vendors does one store need.  Not more than 1!!!  Stupid.  Idiotic.  Dumb.
Title: Re: Change vendor in shopinfo
Post by: Milbo on February 04, 2015, 11:24:49 AM
Hey do you really think anyone has your problem?

Answer, no almost no one has your problem and almost always if people have a problem with their vendor information they did something wrong before.

A vendor is the legal entity which is selling somehing, that is a vendor. Usually this error happens because people delete their administrator from the user config and wonder then that vm has no vendor anylonger.

Or in other words, when you drive with your car against a tree,.... the car cannot prevent that.
Title: Re: Change vendor in shopinfo
Post by: Milbo on February 04, 2015, 11:33:59 AM
and this thread is really a good example, why it makes sense to delete old threads, because some people just know forums from playing computer games, which are autopruned and so do not show any post older than 4 weeks.
Title: Re: Change vendor in shopinfo
Post by: jjk on February 04, 2015, 12:52:19 PM
@tim92101
Did you read this? http://forum.virtuemart.net/index.php?topic=99353.0
Title: Re: Change vendor in shopinfo
Post by: thelake on February 07, 2015, 10:33:57 AM
Well, for me it is very common to delete a user f.ex. not in the team anymore.

Then how to change the main vendor??
Title: Re: Change vendor in shopinfo
Post by: GJC Web Design on February 07, 2015, 10:39:50 AM
same as your other post - did you search or even read this thread where it is mentioned?

enable the Tools in the VM admin->config

then under Tools & Migration->Migration tab there is a Set Store owner
enter the Joomla user id
Title: Re: Change vendor in shopinfo
Post by: cvrak on May 14, 2018, 12:55:16 PM
Quote from: GJC Web Design on February 07, 2015, 10:39:50 AM
same as your other post - did you search or even read this thread where it is mentioned?

enable the Tools in the VM admin->config

then under Tools & Migration->Migration tab there is a Set Store owner
enter the Joomla user id

GJC Web Design, after many many days of searching, I've found your answer.
Although it's a little strange workflow (should be easier), This is working!!!!!
Thanks a lot!!!!!!