Hi Cristhian,
I am totally lost on this topic, could you help me?
Each user should only be able to assign their business in this view, the list of all businesses should not appear
I am totally lost on this topic, could you help me?
First, you must move the Relationship Form into the correct location. I've explained this already, but it has not yet been moved. I will try to explain again in very simple terms. The Relationship Form shortcode must be removed from the View of Bonos here: hidden link
Instead, it should be placed in the "No items found" section of the View of Comercios here: hidden link
Each user should only be able to assign their business in this view, the list of all businesses should not appear
If you want to limit the Comercios posts options shown in the Relationship Form, you can filter those options by post author, in the Relationship Form editor. You can set the Comercios field options to include only posts where the author is the same as the current User. See the screenshot here showing the location of that filter, "Options by any author" should be changed.
Great! thank so much im sorry for my problems with this ticket.
If there is a business already assigned, I still get the option to assign another. How can I restrict it?
Relation with this, is it possible that when a attacth a 'comprobante' and assign a 'comercio' status pass to used?
If there is a business already assigned, I still get the option to assign another. How can I restrict it?
It looks like the shortcode structure of this View's loop was broken. You had this:
...
<!-- wpv-loop-end -->
[/wpv-items-found]
<strong>[wpml-string context="wpv-views"] [wpv-no-items-found][cred-relationship-form form='seleccion-comercios-bonos' parent_item='$current']
[/wpml-string]</strong>
I have changed it for you. This is the correct way:
...
<!-- wpv-loop-end -->
[/wpv-items-found]
[wpv-no-items-found]<strong>[wpml-string context="wpv-views"][cred-relationship-form form='seleccion-comercios-bonos' parent_item='$current'][/wpml-string]</strong>[/wpv-no-items-found]
Relation with this, is it possible that when a attacth a 'comprobante' and assign a 'comercio' status pass to used?
I'm not sure what a comprobante is, or how it is attached to something. I'm not sure what status "used" means. What does that have to do with the relationship form here? I'm not clear.
In this view I also have another column called 'comprobante' (it is the possibility of attaching a file) and 'estado'.
I want to be able to relate these three fields:
when the 'comprobante' is uploaded and the 'comercio' assigned, the status must change from unused to used
It sounds like you want to change the Estados taxonomy term for the parent Bonos post when:
1. The custom field image is uploaded for that Bonos post.
AND
2. At least one child Comercios post is associated with that Bonos post.
I've created a new ticket for this, since it's a different, somewhat complex topic.
My issue is resolved now. Thank you!