Skip Navigation

[Résolu] Limit access to WooCommerce shop page

This support ticket is created Il y a 4 années et 6 mois. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Marqué : 

Ce sujet contient 5 réponses, a 2 voix.

Dernière mise à jour par Antoine Il y a 4 années et 6 mois.

Assisté par: Shane.

Auteur
Publications
#1628955

Tell us what you are trying to do?
Using Toolset Access I want to limit access to the WooCommerce Shop page to logged in users. Currently when I apply a Custom Group to Products and the Shop page:
- Shop page is visible
- Shop page displays a message that no products are available

I want to display a custom message instead or redirect to a custom page.

Is there any documentation that you are following?
Default documentation for setting access to a page.

Is there a similar example that we can see?
See issue https://toolset.com/forums/topic/will-views-respect-read-access/#post-329040
In that topic it states that "...'Access "custom groups' only apply to single posts, and will have no effect in Archives.
We can't apply custom group permissions to Archives, because it's will take too much server resources."

What is the link to your site?
I am currently working locally. Before setting up a test-site, I would like to know if this is possible. Based on the above topic it seems to be a known issue.

#1629421

Shane
Supporter

Les langues: Anglais (English )

Fuseau horaire: America/Jamaica (GMT-05:00)

Hi Antoine,

Thank you for getting in touch.

Is you current shop page a custom template made in our toolset plugins ?

Meaning you've created a custom template in either our views plugin or blocks plugin?

If not then you may need to use the method below to restrict your shop page.
lien caché

We are able to restrict the contents when it is a custom created shop page in our Access plugin but not when it's using the default woocommerce shop.

Thanks,
Shane

#1629981

Hello Shane, thanks for the update. I prefer to use the default WooCommerce shop pages, as I also need them to be compatible with other plugins like YITH WooCommerce Ajax Product Filter.

I am setting up a B2B shop for a client and need front facing shop pages not be accessible to non-approved customers.

If this is not possible using Toolset I will look into other options like WooCommerce Private Store: lien caché

Next Toolset challenge: setting up forms for customers to subscribe and an option for admins to approve customers.

Kind regards,
Antoine

#1630513

Shane
Supporter

Les langues: Anglais (English )

Fuseau horaire: America/Jamaica (GMT-05:00)

Hi Antoine,

Yes Toolset won't be able to get this done for you regarding setting up the permissions for the shop page.

However for the membership settings you can use our Forms plugin to achieve this.

Have a look at the link below and let me know if this helps.
https://toolset.com/learn/create-membership-site-wordpress-using-toolset-plugins/#user-registration-and-account-management

Thanks,
Shane

#1631649

Hello Shane, thanks for the link. I already implemented a flow so administrators can change pending to approved state using your feedback in this thread: https://toolset.com/forums/topic/change-user-role-after-cred-post-form/

#1631651

My issue is resolved now. Thank you!