Join our new community forum for support & discussion

Join Now

Home Support Extensions Marketplace Placing orders

Placing orders

  • Author
    Posts
  • Yliya 14

    Hello. Can you please tell me if it is possible to publish both products and just ads in the plugin. I can not find it in the settings. As planned, I have a freelance services site. Users perform tasks remotely. The task takes several days. But if I put a checkbox next to “require file attachment”, then the order is automatically executed. And you need freelancers to be able to both sell articles and perform services. Is it possible?

    Yliya 14

    I’ll add to this post. Is it possible to make it so that users have the opportunity to sell a file, but not make the “file” field required.

    ihor developer

    Sure, please try using this PHP snippet to make the attachments optional (you can add it via the Code Snippets plugin):

    add_filter(
    	'hivepress/v1/models/listing/attributes',
    	function( $attributes ) {
    		if ( isset( $attributes['attachments'] ) ) {
    			$attributes['attachments']['edit_field']['required'] = false;
    		}
     
    		return $attributes;
    	},
    	1000
    );
    Yliya 14

    Thank you, you helped me a lot. And then I myself thought to write code, but I’m not a developer … Great plugin and support!

    ihor developer

    Thanks, I’m glad I could help.

Viewing 5 posts - 1 through 5 (of 5 total)

New Reply

This forum has been archived and is no longer accepting new posts or replies. Please join our new community forum for support & discussion.