Join our new community forum for support & discussion

Join Now

Home Support General HivePress Different functionalities for Make Offer button

Different functionalities for Make Offer button

  • Author
    Posts
  • alexif

    Hello!

    I am interested in one of the below functionalities if possible via code snippet:

    1. When clicking Make Offer button to actually post directly the request, skipping the window of sending offer. Basically to shortcut the process.

    2. In case the above solution is not so easy to implement, can the details textbox be hidden and leave only the submit button there?

    3. Can a submited offer be validated by the vendor or be approved automatically?

    Thanks!

    yevhen developer

    There is no easy way to implement offers without requests or accept the offer automatically, but you can remove the Details field with this code snippet

    add_filter(
    	'hivepress/v1/models/offer',
    	function( $model ) {
    		$model['fields']['text']['required'] = false;
    
    		return $model;
    	},
    	1000
    );
    
    add_filter(
    	'hivepress/v1/forms/offer_make',
    	function( $form ) {
    		unset($form['fields']['text']);
    
    		return $form;
    	}
    );
Viewing 2 posts - 1 through 2 (of 2 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.