Author Topic: Critical-shop for registered users only, display products and prices to public  (Read 322 times)

stensbo

  • Jr. Member
  • **
  • Posts: 93
Using Joomla! 3.9.20,  Virtuemart 3.8.4 10335, PHP Version 7.4.14, vm overrides.
template Storefront version 3.25 - site danrider.dk

We have a shop (wholesale)- for registered users only.
Login module is assignet to a menu - for public
Virtuemart frontpage is assignet to a menu there is set for registered users only - all our vm modules is set for registered users only.
Despite that it sometimes popup with " you have to assign Virtuemart Component to a menu"
Google search on one of our products leads to a view of the product with price - that should not be possible.
 - url:https://oursite.dk/index.php/component/virtuemart/.....and the product -

Have tried to disable template overrides by renaming the virtuemart_com folder in template/html - view still display
even after I was forced to set our site offline the view still display.

Any ideas?

StefanSTS

  • Global Moderator
  • Full Member
  • *
  • Posts: 561
  • VirtueMart Version: VM 4.2 on Joomla 4.5
If you do not show prices for guest, they will not appear in Google. Some setting is wrong.

You should assign shopper groups.
--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts

Please use only stable versions with even numbers for your live shop! Use Alpha versions only if you know what risk you are taking.

stensbo

  • Jr. Member
  • **
  • Posts: 93
We have several shoppergroups and prices for each group.
When import product with csvi price goes in default shoppergroup - then we import prices for the other groups.

Normally when we ad a product link to a newsletter and customers click on that they get the login module

StefanSTS

  • Global Moderator
  • Full Member
  • *
  • Posts: 561
  • VirtueMart Version: VM 4.2 on Joomla 4.5
If you use the template Storefront from Gavick, you might have come the way from VirtueMart 2 and something in the core or in some extensions is not up to date.

In that case, this won't be easy to solve via forum.

--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts

Please use only stable versions with even numbers for your live shop! Use Alpha versions only if you know what risk you are taking.

stensbo

  • Jr. Member
  • **
  • Posts: 93
Thanks but what do you mean by this "If you do not show prices for guest" - shopper can not register and have not access to our shop unless they have a username and passsword provided from us

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3225
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
I think Stefan means that if your prices are "accessible to everyone" it is not enough just to have login restrictions. Are your prices accessible to all user groups ?

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

stensbo

  • Jr. Member
  • **
  • Posts: 93
Okay thanks - yes we have prices available to all shoppergroups on some products.
If I add a link in browser for one such product I get the login formular and that i correct.
If I add https://oursite.dk/index.php/component/virtuemart...... I get the first category with products and prices  and that should not be possible - i think

edit: .. and it tell to add Virtuemart Component to a menu. Virtuemart frontpage is assigned to a menuitem that is for registered users only.

StefanSTS

  • Global Moderator
  • Full Member
  • *
  • Posts: 561
  • VirtueMart Version: VM 4.2 on Joomla 4.5
Thanks but what do you mean by this "If you do not show prices for guest" - shopper can not register and have not access to our shop unless they have a username and passsword provided from us

If your prices are restricted to the shopper group Standard, Google will not be able to access your prices, because Google visits your site as guest.
If a user logs in, the user will be treated as in the group Standard, only after logging in, the user will see prices.

Please check, where you have restricted the access to the prices.

Once you can do it in your product, but you can also show different prices for different shopper groups. Check the setting in each individual shopper group for that.

--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts

Please use only stable versions with even numbers for your live shop! Use Alpha versions only if you know what risk you are taking.

stensbo

  • Jr. Member
  • **
  • Posts: 93
Thanks StefanSTS
Quote
Please check, where you have restricted the access to the prices.

Our shop is only for registered users - it's behind a login module - Virtuemart frontpage is assigned to a menuitem with access: registered - users are not able to register themselves -  so I think no one should be able to se anything in our shop unless we provide them with login info. Am I right ?


StefanSTS

  • Global Moderator
  • Full Member
  • *
  • Posts: 561
  • VirtueMart Version: VM 4.2 on Joomla 4.5
Restricting the VirtueMart frontpage link is not the way to deny access to VirtueMart pages or prices.
It just doesn't show a direct link to VM.

You have to disable prices for guest users. Either in every product, or for the shopper group guest.
Enable "Show shoppergroup specific prices" in the shopper groups settings.

EDIT: If you additionally want to restrict the guest so far that they cannot see any products, you could set the categories to shopper group "Standard".
Not sure, if it would be possible to get products via direct link. You might be able to set some restrictions in the menu item setting.

Otherwise you have to disable VM completely for guest via ACL, I guess. Never did that. Most people want to show the products without prices at least.

--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts

Please use only stable versions with even numbers for your live shop! Use Alpha versions only if you know what risk you are taking.