Ihor hello. Tell me how to make the First Name, Last Name, Photo, Description fields mandatory when making a request by a user (not a seller). That when clicking on the request, it would be required to fill in all these attributes. This snippet works only with listings and sellers for some reason:
Another important question for me . I manage to limit requests for all users and allow a certain number for verified users. But I need to implement another model within the engine and need help.
How to limit queries only for seller status(role) of sellers and allow for users in the regular role? Very much need specific help, thanks in advance.
Yes, it is possible but this requires advanced customizations. If you are familiar with code customization 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 https://fwd.cx/hLhc73mQCD9R
Please clarify if you want to restrict the number of requests only to vendors?
Yevgen. Is it possible that when you select a request category, specific attributes for that category would appear? If yes, I would be grateful for tips on how to implement it. Thank you.
As regular users do not have public accounts so advanced customization is needed. To start, it is possible to try this WordPress function get_users() | Function | WordPress Developer Resources to display users. If you are not familiar with code customization then please consider hiring someone for custom work https://fwd.cx/hLhc73mQCD9R
To make changes only for regular users it is possible to add this condition
if ( !current_user_can('edit_posts') ) {
// your code here.
}
Please make sure that you have the latest HivePress Requests extension version. It should work in this way by default
Yevhen, hi. I still have a problem with this field. When a simple user fills out a request and clicks send, he gets a message to fill in the required fields in the user profile: First Name, Last Name and Photo.
So the photo error does not disappear even when the user inserts a photo. Still, when filling out the request, he gets an error where he is asked to fill in a photo.