Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 34 total)
  • Author
    Posts
  • in reply to: Add custom fields to WooCommerce Order #49756
    zenjukai@gmail.com[email protected]
    Participant

    "Do you think it would be possible to complete this order custom fields during the WooCommerce checkout process?"

    I know this is an older post, but it depends on what you are wanting to send to the cart and checkout, but yes you can with a bit of custom code.

    Cheers

    in reply to: Frontend Submission --> Custom Title and Slug from Fields #49271
    zenjukai@gmail.com[email protected]
    Participant

    I know this is an older post, but thought I would add to it, as it is a great feature that MB has.

    In my case I have a form that is capturing submissions, so like a contact form. I created a custom post type of "Submissions" and then added the custom fields I wanted on that form.

    Now, I did not want the Post Title to be on the frontend, but if you remove it you get an error and if you hide it, the submission captures and empty field. So I took the code above that John submitted an modified it a bit. Now when the form is submitted the Post Title entry is the user's First and Last name.

    Hope this helps. =]

    add_action( 'rwmb_frontend_after_save_post', 'update_submission_post_title');
    function update_submission_post_title( $object ) {
    	
    	$post_type = $object->post_type;
    	if ( 'submission' == $post_type ) {
    		$post_id = $object->post_id;
    		
    		// Get both field values
    		$first_name = rwmb_meta( 'first_name', '', $post_id );
    		$last_name = rwmb_meta( 'last_name', '', $post_id );
    		
    		// Combine the names
    		$full_name = trim( $first_name . ' ' . $last_name );
    		
    		// Only update if we have a name
    		if ( ! empty( $full_name ) ) {
    			// Prepare update post
    			$my_post_title = array(
    				'ID' => $post_id,
    				'post_title' => $full_name,
    				'post_name' => sanitize_title( $full_name ),
    			);
    			wp_update_post( $my_post_title );
    		}
    	}
    }
    in reply to: Hide From Front Not Working #49002
    zenjukai@gmail.com[email protected]
    Participant

    Hello Peter,

    Thanks for the quick response and pushing it along to the team. =]

    Cheers

    in reply to: There seems to be a lot of issues lately .. why is that? #47045
    zenjukai@gmail.com[email protected]
    Participant

    Thanks Peter, I have sent in the info via the contact form.

    Cheers

    in reply to: There seems to be a lot of issues lately .. why is that? #47033
    zenjukai@gmail.com[email protected]
    Participant

    If debug is on and I activate Metabox AIO, I get this message: Notice: Function WP_Block_Type_Registry::register was called incorrectly. Block type names must contain a namespace prefix.

    Deactivate AIO and it comes back.

    in reply to: Post Types No Longer Rendering After Update #46904
    zenjukai@gmail.com[email protected]
    Participant

    Hey Peter,

    Sorry to bug, but it seems there is still some glitchy weirdness going on. Here is a screen recording showing you when is happening.

    Video: https://streamable.com/uo7pqp

    Cheers

    in reply to: Post Types No Longer Rendering After Update #46880
    zenjukai@gmail.com[email protected]
    Participant

    Hey Peter,

    Yes, all is working now. I did however have to readd the name back in, as it was blank from before. But once readded and saved, all works great.

    Thanks again!

    in reply to: Post Types No Longer Rendering After Update #46831
    zenjukai@gmail.com[email protected]
    Participant

    Perfect, thanks again Peter and to the team, great work as always.

    in reply to: New update #46810
    zenjukai@gmail.com[email protected]
    Participant

    Excellent, thanks Peter and team for the good work. =]

    in reply to: New update #46805
    zenjukai@gmail.com[email protected]
    Participant

    Thanks for the link Peter.

    Cheers

    in reply to: New update #46803
    zenjukai@gmail.com[email protected]
    Participant

    I get the same thing ... I can see the list of custom fields, but when I go into one of them to edit, the fields show, then disappear with the "Something went wrong. Please try again!" error message.

    in reply to: Possible Bug with Submission Forms #45846
    zenjukai@gmail.com[email protected]
    Participant

    Hey folks, ignore this posting, as I was able to sort it out. All works fine.

    Cheers

    zenjukai@gmail.com[email protected]
    Participant

    Thanks folks for the quick reply and fix for this. All is working great now with the update: AIO v1.27.1

    Cheers

    in reply to: New Block/Views Update Not Working & Creating Errors #45826
    zenjukai@gmail.com[email protected]
    Participant

    Yes, I did figure that you the other day when testing, but it would be nice to not have an error if there is no field. But thank you for sending it along to support.

    Cheers

    zenjukai@gmail.com[email protected]
    Participant

    Just an update ... I have been testing and I found this error happens when you have no fields. Once you add at least one field, there is no error.

    Is this the way it should be, or?

    Cheers

Viewing 15 posts - 1 through 15 (of 34 total)