Q1) Please elaborate the questions with more details:
How do you setup the post type "Order"? With Types plugin or Woocommerce plugin?
[Me] Yes the types plugin.
How do you define the "user has confirmed the Order", is it a custom field?
[Me] I don't currently. The order is created as published. I'd prefer draft then confirm later to publish and then send notifications.
I need detail steps to duplicate same problem, test it in my localhost, thanks
Q2) You can display the same post in different layouts, for example the post URL is:
hidden link
You can setup the URL parameter "layout_id" to the layout's ID, for example:
hidden link
It will be able to use layout 123 to display the post "test-1"
[Me] This works great, many thanks.
Q3) Are you using many-to-many relationship between post type "Order" and "Person", if the post type "Order Person" is the intermediate post type , you can setup a CRED form for editing the "Order Person" post, there you can change it's parent "Order" post and parent "Person" post
[Me] Yes, I am using it as the intermiediate or joining post to link order and person however it also holds a few extra fields itself and therefore has its own post form too. What I really need is the ability to know for which Order I cam currently looking at and then it to be automatically chosen in the drop down. So, the flow is as follows:
Customer says I need to add a new person to Order xyz.
User will find the order in the system and then choose to add Person to order.
They enter basic details about the person and submit.
- This creates a new Person record.
They then enter details about the persons role in the order.
- This is the order person record and has a drop down for person and for order. Neither are set and I'd like them both to be preselected since I started at the order and I have just created a person. Normally you can use session variables or wondering whether some cookie + javascript could help here.
They submit and are redirected back to the order which now shows the additional party.
Hopefully this helps clarify.