Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Hiding the shop page using groups

Home / Forums / Virtue Theme / Hiding the shop page using groups

This topic is: Resolved
[Resolved]
Posted in: Virtue Theme
March 14, 2014 at 2:42 am

Hi Ben,

I’m attempting a redirect of my shop page if the user tries to go there and they’re not logged in. I’ve done this successfully before using the plugin Groups and the snippet of code from this blog in the archive-product.php as shown here:

For whatever placing this in the top of your archive-product.php file has no effect. I imagine it’s because of the level of customisation and changes across the history of your template that things aren’t called quite as woocommerce out of the box is.

I’ve tried placing it in a few other places but to no success. I was hoping you might be able to steer me in the right direction.

Oh, and yes I’ve tested it’s working by trying another theme and it works fine.

Thanks

  • The forum ‘Virtue Theme’ is closed to new topics and replies.