VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: Fossa on July 03, 2019, 13:21:43 PM

Title: Attention no standard shopper group set
Post by: Fossa on July 03, 2019, 13:21:43 PM
VirtueMart Version:   VM-3.4.2
Joomla Version:   joomla 3.9

After testing my installation placing an order whitout register the customer, I got the error message "Attention no standard shopper group set". None of the product added to Virtuemart is no longer shoved after this. Searching forum I found out I shoud have shopper groups -anonymus- with id 2, and -default- as id 1 set to standard.
What to do to fix this?
Title: Re: Attention no standard shopper group set
Post by: StefanSTS on July 03, 2019, 19:28:22 PM
There is a default column in the database table #__virtuemart_shoppergroups.
default has a value of 1 in standard installation, guest a 2.

Hope that  helps.
Stefan
Title: Re: Attention no standard shopper group set
Post by: Fossa on July 03, 2019, 23:14:44 PM
Thank you, Stefan!

These values are correct when seen in VM Control panel. I still see the mentioned error message and none of the products in the shop.
Title: Re: Attention no standard shopper group set
Post by: StefanSTS on July 04, 2019, 12:27:29 PM
You cannot see the "default" value in VM control panel. You only see the item id.
You have to check in the database.

Title: Re: Attention no standard shopper group set
Post by: Fossa on July 04, 2019, 16:53:52 PM
QuoteYou cannot see the "default" value in VM control panel. You only see the item id.
You have to check in the database.

I checked this in DB.
The value for both -default- and -anonymus- in the column Default is 1.
Title: Re: Attention no standard shopper group set
Post by: jenkinhill on July 04, 2019, 17:10:29 PM
Like this?

(https://i.ibb.co/2txyfXh/groups.jpg) (https://ibb.co/Hz6Vkm4)
Title: Re: Attention no standard shopper group set
Post by: StefanSTS on July 04, 2019, 17:37:06 PM
The column default in a vanilla installation has 1 and 2. Maybe that changed at some time.
Title: Re: Attention no standard shopper group set
Post by: StefanSTS on July 04, 2019, 17:47:03 PM
I changed my guest group's "default" value to "1" and get your message.

So change that value to "2" and you should be fine.

P.S. If you have error reporting enabled you get a lot of notices too when the value is "1".
Title: Re: Attention no standard shopper group set
Post by: Fossa on July 04, 2019, 21:00:26 PM
Thank you both Jenkin and Stefan!

The settings i DB was like seen in fils Shopper groups - and I changed to the result you can see in file Shopper groups final.

Still no change in the website. The error message (Attention no standard shopper group set) is still shown - and none of the products set with shopper groups -anonymus- and -default-.
Title: Re: Attention no standard shopper group set
Post by: jjk on July 04, 2019, 22:47:07 PM
If I remember correctly, the anonymous shopper group was replaced by the guest shoppergroup long time ago. In the database table you should have at least a guest shoppergroup and a default shoppergroup. Sorting the virtuemart_shoppergroup_id column just changes the sorting of the table. Try to adjust the 'default' column values to read 1 and 2 instead of your 1 and 1, like in the screenshot below.

If that doesn't help, try Tools > 'Tools & Migration' and click the 'Install or if necessary update tables' button once.
Title: Re: Attention no standard shopper group set
Post by: Fossa on July 04, 2019, 23:33:42 PM
Thanks a lot, JJK!

I followed your advice - and my shop is finally working again.
It's probably best to force customers to register, I guess!
Title: Re: Attention no standard shopper group set
Post by: StefanSTS on July 05, 2019, 02:47:32 AM
You did not change the values in the column "default" as I wrote above, that is why it still did not work. You can see that clearly in your two screen shots.

The database tool has done that for you now. Maybe that was the better idea anyway if other things were also in the mix.

Title: Re: Attention no standard shopper group set
Post by: jjk on July 05, 2019, 10:09:36 AM
Quote from: Fossa on July 04, 2019, 23:33:42 PM
It's probably best to force customers to register, I guess!
In most cases that's not necessary. The only difference between a registered and an unregistered (guest) shopper is that a registration additionally stores a username and password, which allows the shopper to easily access his order history and that frequent customers don't have to type in their full address with every order.

I always suggest to unpublish the Joomla registration module, because it attracts a lot of Spambots and it doesn't store the customer's address.