Hello and my apologies for the last reply, my teammate has assigned this ticket to me while I was on my off days.
To better assist you with this, would you allow me temporary access to your website to see what you have done so far for the first steps? Your next reply will be private to let you share credentials safely. ** Make a database backup before sharing credentials. **
You did not actually pass the value to the relationship form for step 3. Use the value attribute, instead of the select_text. And we need to pass the entreprise ID to it. I suggested to use wpv-post-id shortcode, but that is wrong. We should use wpv-search-term shortcode to get the entreprise ID from the URL parameter.
You can also hide(display:none;), just like the email field before it:
Now messages will be correctly linked to the enterprise post in the one-to-many relationship, and we can use it in step 5.
I performed all the steps, but I still can't see the messages. I need to debug this further, and I need to switch the theme and disable plugins during my testing. Can you prepare a staging site and let me work on it? Or should I take a copy of your website and debug it locally?
I just want to let you know that I am still working on this in my local copy. WPML is adding complexity to the problem, but I'll get back to you as soon as I have something to share.
Jamal is on vacation. This is Minesh here and I'll take care of this ticket. Hope this is OK.
Can you please tell me what user I should use to login as User A and user B.
I checked on your site and I can see the One-to-Many post relationship is available: Fichas de empresas Mensajes directos
=> enlace oculto
I can see the "Contactar" bbutton on single post of "empresa", for example, with the following link where I can see you are passing the contact_id in the URL param.
=> enlace oculto
Once you clarify what user access details I should use as User A and User B, I will further investigate.
Okay, dont worry about Jamal's vacation.
I have not understood you.
Jamal was working about view on b2b page: enlace oculto
Users arrive to that form when clicking on contact button on enterprise profile
(ie: enlace oculto). Then, contact form will create a new page (on a Mensajes directos custom type form).
I am not able to view the messages created by external users (not registered users) with post form on the view of b2b page (enlace oculto). I created a view on the bottom of the page called 'Recibidos'. On that view, i want to show that pages created by users, but only on the users who created the enterprise page. (Author of enlace oculto only will see messages created with contact form to him).
4. User B fills the form on page: enlace oculto and a new page had created by form. (ie: enlace oculto) That page will show content filled by user B.
(Up to this point it's done)
5. User A will be able to see page created by User B because user A did create the page: enlace oculto. User A will be able to see the page created by user B on last view of B2B page (below Mensajes directos recibidos) (enlace oculto).
6. User A will see the page on a view and then he would reply message with a new form.
Tips: messages created by forms are using 'Mensajes directos' custom type.
contributor role does not have publish capabilities.
So, its better to have a Editor or Author role should be assigned to both User A and User B.
You first have to setup the correct structure.
I logged in as User B and visited the following post that is created by User A:
=> enlace oculto
Then, when I try to click on the button Contactar' button (Contact), I can see the blank page. I do not see any form to submit the message.
=> enlace oculto
Can you please make it working and make sure I should see the correct form that I should uses to submit the message. Lets move step by step.