Advanced Archives - Plugin Republic https://pluginrepublic.com/support-categories/advanced-woocommerce-members-only/ WooCommerce Plugins Tue, 11 Aug 2020 15:06:40 +0000 en-US hourly 1 https://pluginrepublic.com/wp-content/uploads/2020/10/cropped-favicon-1-32x32.png Advanced Archives - Plugin Republic https://pluginrepublic.com/support-categories/advanced-woocommerce-members-only/ 32 32 Add expiry date to product page https://pluginrepublic.com/documentation/add-expiry-date-to-product-page/ https://pluginrepublic.com/documentation/add-expiry-date-to-product-page/#respond Tue, 11 Aug 2020 15:06:38 +0000 https://pluginrepublic.com/?post_type=ht_kb&p=558858 You can use the following snippet to display details of a product’s expiration date: How to add a snippet.

The post Add expiry date to product page appeared first on Plugin Republic.

]]>
You can use the following snippet to display details of a product’s expiration date:

View this code snippet on GitHub.

How to add a snippet.

The post Add expiry date to product page appeared first on Plugin Republic.

]]>
https://pluginrepublic.com/documentation/add-expiry-date-to-product-page/feed/ 0
Hide prices for restricted products https://pluginrepublic.com/documentation/hide-price-restricted-products/ https://pluginrepublic.com/documentation/hide-price-restricted-products/#respond Mon, 16 Mar 2020 13:39:32 +0000 https://pluginrepublic.com/?post_type=ht_kb&p=295853 You can hide prices for restricted products. Go to WooCommerce > Settings > Members Only and check the ‘Hide Price’ option.

The post Hide prices for restricted products appeared first on Plugin Republic.

]]>
You can hide prices for restricted products. Go to WooCommerce > Settings > Members Only and check the ‘Hide Price’ option.

The post Hide prices for restricted products appeared first on Plugin Republic.

]]>
https://pluginrepublic.com/documentation/hide-price-restricted-products/feed/ 0
Update roles when order status is completed https://pluginrepublic.com/documentation/update-roles-when-order-status-is-completed/ https://pluginrepublic.com/documentation/update-roles-when-order-status-is-completed/#respond Mon, 13 Jan 2020 07:17:01 +0000 https://pluginrepublic.com/?post_type=ht_kb&p=217281 By default, the new user’s role is updated when the order status is changed to ‘Processing’. You can change this to update the new user’s role when the order status changes to ‘Complete’ using this snippet: Follow these steps to add the snippet to your site.

The post Update roles when order status is completed appeared first on Plugin Republic.

]]>
By default, the new user’s role is updated when the order status is changed to ‘Processing’. You can change this to update the new user’s role when the order status changes to ‘Complete’ using this snippet:

View this code snippet on GitHub.

Follow these steps to add the snippet to your site.

The post Update roles when order status is completed appeared first on Plugin Republic.

]]>
https://pluginrepublic.com/documentation/update-roles-when-order-status-is-completed/feed/ 0
Moderate user registration https://pluginrepublic.com/documentation/moderate-user-registration/ https://pluginrepublic.com/documentation/moderate-user-registration/#respond Mon, 02 Dec 2019 10:47:20 +0000 https://pluginrepublic.com/?post_type=ht_kb&p=176740 You can choose to approve or reject new user registrations using the Members Only plugin. For all user registration options, please take a look at this article: WooCommerce user approval.

The post Moderate user registration appeared first on Plugin Republic.

]]>
You can choose to approve or reject new user registrations using the Members Only plugin.

For all user registration options, please take a look at this article: WooCommerce user approval.

The post Moderate user registration appeared first on Plugin Republic.

]]>
https://pluginrepublic.com/documentation/moderate-user-registration/feed/ 0
Redirect user to restricted page after logging in https://pluginrepublic.com/documentation/redirect-user-to-restricted-page-after-logging-in/ https://pluginrepublic.com/documentation/redirect-user-to-restricted-page-after-logging-in/#respond Wed, 20 Nov 2019 11:37:42 +0000 https://pluginrepublic.com/?post_type=ht_kb&p=165957 If the user tries to access a page that’s restricted to them, you can redirect them to a log-in or password form page. You can also redirect them back to the original page they tried to access after they successfully log in. To redirect users back to their original page after logging: Go to WooCommerce […]

The post Redirect user to restricted page after logging in appeared first on Plugin Republic.

]]>
If the user tries to access a page that’s restricted to them, you can redirect them to a log-in or password form page. You can also redirect them back to the original page they tried to access after they successfully log in.

To redirect users back to their original page after logging:

  1. Go to WooCommerce > Settings > Members Only
  2. Select ‘Redirect’ in the ‘After Logging in’ option
  3. Choose ‘Referring page’ in the ‘After Log In, Redirect To’ field

The post Redirect user to restricted page after logging in appeared first on Plugin Republic.

]]>
https://pluginrepublic.com/documentation/redirect-user-to-restricted-page-after-logging-in/feed/ 0
Redirect to different URL depending on password https://pluginrepublic.com/documentation/redirect-to-different-url-depending-on-password/ https://pluginrepublic.com/documentation/redirect-to-different-url-depending-on-password/#respond Tue, 13 Aug 2019 09:29:11 +0000 https://pluginrepublic.com/?post_type=ht_kb&p=99774 If you are using passwords as your restriction method, you can redirect users to different URLs depending on which password they use. To enable this, you’ll need to add this snippet to your site. See this article if you’d like to know how best to add a snippet to your site. In the example above, […]

The post Redirect to different URL depending on password appeared first on Plugin Republic.

]]>
If you are using passwords as your restriction method, you can redirect users to different URLs depending on which password they use.

To enable this, you’ll need to add this snippet to your site. See this article if you’d like to know how best to add a snippet to your site.

View this code snippet on GitHub.

In the example above, the user will be redirected to the WooCommerce archive page for the category with the ID of 19 – if they correctly enter ‘green’ as the password.

You can set up multiple passwords and redirect the user to a different URL for each using this method.

The post Redirect to different URL depending on password appeared first on Plugin Republic.

]]>
https://pluginrepublic.com/documentation/redirect-to-different-url-depending-on-password/feed/ 0
Filtering the redirect URL https://pluginrepublic.com/documentation/filtering-the-redirect-url/ https://pluginrepublic.com/documentation/filtering-the-redirect-url/#respond Wed, 03 Jul 2019 09:11:28 +0000 https://pluginrepublic.com/?post_type=ht_kb&p=83301 If you want to change the page that users are redirected to, you can add this small script to your functions.php file or snippets file: Don’t forget to update the URL… Filter redirect based on user role You can filter the redirect URL based on the current user’s role – so you can direct Gold […]

The post Filtering the redirect URL appeared first on Plugin Republic.

]]>
If you want to change the page that users are redirected to, you can add this small script to your functions.php file or snippets file:

View this code snippet on GitHub.

Don’t forget to update the URL…

Filter redirect based on user role

You can filter the redirect URL based on the current user’s role – so you can direct Gold Members to a different page from Silver Members for example:

View this code snippet on GitHub.

You’ll need to edit the snippet to include your user roles.

The post Filtering the redirect URL appeared first on Plugin Republic.

]]>
https://pluginrepublic.com/documentation/filtering-the-redirect-url/feed/ 0
Hiding menus from users https://pluginrepublic.com/documentation/hiding-menus-from-unauthorised-users/ https://pluginrepublic.com/documentation/hiding-menus-from-unauthorised-users/#respond Thu, 14 Feb 2019 17:13:11 +0000 https://pluginrepublic.com/?post_type=ht_kb&p=45809 You can hide certain menu items from being seen by unauthorised users. Go to WooCommerce > Settings > Members Only You and enter the menu item names in the ‘Exclude from Menu’ field to ensure they’re not seen by the wrong users.

The post Hiding menus from users appeared first on Plugin Republic.

]]>
You can hide certain menu items from being seen by unauthorised users. Go to WooCommerce > Settings > Members Only You and enter the menu item names in the ‘Exclude from Menu’ field to ensure they’re not seen by the wrong users.

The post Hiding menus from users appeared first on Plugin Republic.

]]>
https://pluginrepublic.com/documentation/hiding-menus-from-unauthorised-users/feed/ 0
Hiding widgets from users https://pluginrepublic.com/documentation/hiding-widgets-from-users/ https://pluginrepublic.com/documentation/hiding-widgets-from-users/#respond Thu, 14 Feb 2019 17:12:05 +0000 https://pluginrepublic.com/?post_type=ht_kb&p=45807 Enabling WooCommerce Members Only ensures that unauthorised users don’t see any content in widgets. However, if there are certain widgets that you’re happy for users to see, you can just go to WooCommerce > Settings > Members Only and add the widget names to the ‘Widget Whitelist’ field. You’ll need to ensure that the ‘Enable […]

The post Hiding widgets from users appeared first on Plugin Republic.

]]>
Enabling WooCommerce Members Only ensures that unauthorised users don’t see any content in widgets.

However, if there are certain widgets that you’re happy for users to see, you can just go to WooCommerce > Settings > Members Only and add the widget names to the ‘Widget Whitelist’ field.

You’ll need to ensure that the ‘Enable Widget Whitelist’ option is selected.

How to find the widget name

You can find the widget name by going to Appearance > Widgets. The widgets are each named, e.g. ‘Search’, ‘Recent Posts’.

The post Hiding widgets from users appeared first on Plugin Republic.

]]>
https://pluginrepublic.com/documentation/hiding-widgets-from-users/feed/ 0