Hi
I would like to have your advise/support on the following system im trying to build with toolset:
Job applicant(s)= 'A' and employer(s) (job poster)= 'B'
The system would need to work like this:
'A' and 'B' make an account with all their information (info card)
'B' can post a 'job' which gets listed(toolset view) on a page so A can see it + apply to it .
'A' will only need to click 'Apply' on the job page -> application created (new post type applications?) and the info card is shared between 'A' and 'B'.
On the 'my account page' for 'B' there will be a view where all applications from 'A' are shown.
Inside of this application all 'A's info (from the info card) will get listed + the job info etc. In here 'B' can the accept this application or Reject. (automatically set to 'pending' first - radio button)
The same goes for 'A': On the 'my account page' for 'A' there will be a view where all 'A's personal applications are shown.
Inside of this application some of 'A's info (from the info card) will get listed + the job info and some info of 'B'.
Simplified: Post type 'Job' - Post type 'Application (created when applied) with info of 'A' + 'B' + Job' + accept/reject button.
An application can have 3 types of 'statuses' - Pending (automatically first), Accepted, Rejected.
- Im going to use toolset forms to register users and to update account info etc on the frontend (account page)
- A view filtered on logged in user's ID etc will be shown in the my account page
Questions:
- Is a 'application post type' the way to go here? Where every application is a new entry (post)?
- How can i get all the data from 'A's info card he/she clicks apply + Job info + 'B's info and then add it to the 'application post type'?
- Can toolset send out 2 emails when 'apply' is clicked? + When status is changed (buttons clicked)?
- How can i filter a view based on logged in user's ID?
- The apply button should be toolset forms? The accept/reject button aswel?
- Status will be a radio button on front end (toolset forms?)
All of this will be designed in Elementor + custom Html and Css.
Is there a similar example that we can see?
Airbnb is similar but with appartments haha
Hello,
There are lots of questions in this thread, I am trying to answer them one by one.
Q1) Is a 'application post type' the way to go here? Where every application is a new entry (post)?
If one job can connect multiple applications, I suggest you setup the application as a custom post type, and setup one-to-many relationship between job and applications
Q2) How can i get all the data from 'A's info card he/she clicks apply + Job info + 'B's info and then add it to the 'application post type'?
What is the "info card" you mentioned above? is it a custom post type?
Q3) Can toolset send out 2 emails when 'apply' is clicked? + When status is changed (buttons clicked)?
Toolset Forms can send multiple emails after user submit the form, please check our document:
https://toolset.com/course-lesson/send-notifications-when-someone-submits-the-form/
Q4) The apply button should be toolset forms? The accept/reject button aswel?
Yes, apply button should be a post form for creating new "application" post
The accept/reject button should be a post form for editing "application" post
https://toolset.com/course-lesson/front-end-forms-for-editing-content/
Q5) Status will be a radio button on front end (toolset forms?)
Yes, you can setup it as a custom radio field, see our document:
https://toolset.com/course-lesson/creating-custom-fields/
Hi Luo
Thank you for your answers!
Q2) The info card is all the data in the user's account: Name, Lastname, email, phone, ... . (gathered in the registration process + can be edited in the account page)
Thank you!
After users create the "application" post, the post author is current logged-in user, so in single "application" post, you can display the author's user fields with shortcodes: [wpv-post-author], for example:
[wpv-post-author format="meta" meta="nickname"]
More help:
https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#vf-154504
Display details for the author of the current post.
Hi Luo
Im sorry i didn't explain it very well:
The account (name, lastname, ...) from A data must be visible for B aswel on the application page, so is there a way to copy all the data from both A & B in de post type 'application'?
Thank you!
For the question:
so is there a way to copy all the data from both A & B in de post type 'application'?
It needs custom codes, for example, after user submit the post form for creating new 'application' post, you can use action hook cred_save_data to trigger a PHP function:
https://toolset.com/documentation/programmer-reference/cred-api/#cred_save_data
In this PHP function get A & B user meta field information, and save them into 'application' post
https://toolset.com/documentation/customizing-sites-using-php/post-relationships-api/#toolset_get_related_post
https://developer.wordpress.org/reference/functions/get_user_meta/
https://developer.wordpress.org/reference/functions/get_post_meta/
For your reference.