How to setup rules for Messaging?

I am making a marketplace website with Suppliers and Customers. Suppliers will have free accounts, while Customers will have to pay a fee to get a login and then they will be able to message the Suppliers.

However, the Customers can be smart. They can create fake Supplier accounts and then message all Suppliers without paying me anything. I will probably have a thousand accounts, so its impossible for me to monitor.

How can the following rules be setup in “Messages” to prevent Customers hacking the system?

  1. Suppliers cant message other Suppliers.
  2. Customers cant message other Customers.

Basically, you need to draw a line for the get go, between customers and vendors, which is not possible by default as every customer can become a vendor.
All it takes to become a vendor is to post a listing.

Unless, upon registration you ask them for their “role”.
That’s what I did :

But this alters the hivepress website quite a lot. It requires some deep changes and coding. Too much to elaborate here, I am afraid.

is there any other Wordpress software/plugin (apart from Hivepress) that will let me ask users their “Role” when they sign up? and therefore segregate them when they sign up.

Hi,

Unfortunately, there is no simple solution for this, it will require a custom implementation. If customizations are required for your site, please try customizing it using the collection of code snippets Search · user:hivepress · GitHub and other developer resources, or consider hiring someone for custom work Customize your website | HivePress

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.