• Resolved Imagelukeseager

    (@lukeseager)


    By default there is a registered group, which is great. But I have a need for an ‘unregistered’ group, but I can’t see how to set this up.

    My scenario: I have an eCommerce store which allows customers to sign up as retail customers or trade customers. Retail and unregistered customers should see one set of products, and trade customers should see a different set of products.

    Currently, I can set products to the Trade group, and only Trade users can see those products. I can set products to a Retail group, and only retail customer can see those products. But now unregistered users can’t see any products.

    If I don’t set the Retail products to the Retail group, Trade customers see both their Trade products and Retail products, which isn’t ideal as they have no need for them.

    Thanks!

Viewing 1 replies (of 1 total)
  • Plugin Author ImageKento

    (@proaktion)

    Hi Luke,

    I think this would be suitable for your case: https://github.com/itthinx/groups-wc-not-purchasable

    Assuming that all your retail products belong to a product category “Retail” and given that all your trade customers belong to the “Trade” group, you could use the filter as explained there or fork this repository and change this line to

    private static $category_to_group = array( 'Retail' => 'Trade' );

    By having the retail products belong to a “Retail” group, they will still be visible to plain visitors while they will then be hidden for “Trade” customers who are logged in.

    I hope this helps 🙂

Viewing 1 replies (of 1 total)

The topic ‘Unregistered Group’ is closed to new replies.