This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 14 replies, has 2 voices.

Last updated by Carlos Rojas 2 months, 1 week ago.

Assigned support staff: Carlos Rojas.

Author Posts
June 26, 2019 at 5:40 am

robertS-107

I am trying to: Have 4 agents available per language side to choose from when creating a real estate property

Link to a page where the issue can be seen: hidden link (see attached image)

I expected to see: Only the names with the _en at the end (English version of agents)

Instead, I got: (The English and French version of the same agents)

June 26, 2019 at 12:19 pm #4092439

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Montevideo (GMT-03:00)

Hello,
Thank you for contacting WPML support.

1.- I'm truly sorry but I don't understand the issue 🙁

Can you please elaborate a little more so I can better understand?

2.- Please provide the debug information of the site. In this link you will find the steps to follow: https://wpml.org/faq/provide-debug-information-faster-support/

Kind regards,
Carlos

June 27, 2019 at 3:23 am #4096247

robertS-107

So basically, this website is a Real Estate Site with 4 Agents (or Brokers if you wish).
I created all four and then created the French version of each Agent.
I put their names for the French side and their names followed by _en for the English side
(ex. Frank Bomba (french side) and Frank Bomba_en (english side))

The problem is that when I create a NEW property and I want to assign it to an Agent, I get a dropdown menu and I see all four english names and all four french names ... I only want to get the English version of the brokers on the dropdown.

Also, something else which is strange, when I select an english Agent and translate the page in Classic mode, it gives the same Agent on the French side regardless if that Agent has a translated version in French.

I hope this explains my issue a little better.

June 27, 2019 at 11:19 am #4099553

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Montevideo (GMT-03:00)

Hi there,
Thank you very much for your message.

This time I was able to understand the issue and to reproduce it.

I check in our Multilingual-Ready Themes list and theme + plugin used to build the real state logic are not present, which means that they haven't been validated as compatible by our compatibility team.
- https://wpml.org/documentation/theme-compatibility/
- https://wpml.org/documentation/plugins-compatibility/

In this case this seems to be a compatibility issue from the theme/plugin's authors so I kindly ask you to contact them and ask them for a solution. According to similar experiences this issue seems to be caused because the authors didn't used the filters in the code to show the agents list, so the system lists all agents in all languages instead of showing the agents in the current language.

Please let me know if you need further assistance and I will be more than happy to help.
Best regards,
Carlos

July 6, 2019 at 3:49 pm #4156061

robertS-107

Support,

I contacted the theme creators and they pretty much told me that I had to do the agent entering manually.

They told me that there was no compatibility issues according to them.

Basically, they do not wish to address the issue .... unfortunate because now my client can easily make a mistake went entering an agent because both languages are available on either language.

Not sure what else I can do at this point .. have any thoughts on this?

Any advice would be appreciated !!

thanks,

Frank

July 8, 2019 at 2:03 pm #4163275

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Montevideo (GMT-03:00)

Hi Frank,
I'm sorry to hear the answer you got from the theme authors.

In this case I created a test site with a fresh new WordPress installation and WPML plugins installed. I would like to ask you to reproduce the issue in this test site. This way I will be able to escalate this ticket to our compatibility team and it will be easier for them to find a solution.

You can access the test site by following this link: hidden link

Please only add basic information to reproduce the issue.

Could you tell me the result?
Regards,
Carlos

July 9, 2019 at 4:17 am #4167447

robertS-107

Carlos,

So I added the template in your sandbox link and I was able to recreate the issue.

In order to see it, click on Properties, click on edit of any property, go to the tab "Agents",
click on "Agent Information. (Select the agent below) " and the dropdown will show you the three Agents along with their translated versions from the French side. Seeing that you are on the English side, you should normally only have access to choosing between the three English versions of the agents.

By the way, thank you for looking into this issue further .. I really appreciate the support.

Let me know if yo need any more information from me.

Frank

July 9, 2019 at 11:07 am #4169945

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Montevideo (GMT-03:00)

Hi Frank,
Thank you very much for your message.

I was able to reproduce the issue in the test site. For this reason I have escalated this ticket to our compatibility team, where our compatibility specialists will take a deeper look at the issue and will try to isolate its cause.

I will get back to you as soon as I get an answer from them.

Thank you very much for your patience and understanding!
Best regards,
Carlos

July 11, 2019 at 8:55 pm #4193077

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Montevideo (GMT-03:00)

Hi Frank,

Please add the following code to the functions.php file within your theme's folder:

add_action( 'parse_query', function( $q ) {
    $q->query_vars['suppress_filters'] = false;
} );

This will solve the issue.

You can double check that in the test site the issue is solved by adding this solution.

Regards,
Carlos

July 17, 2019 at 9:35 pm #4233595

robertS-107

Carlos,

Thank you for your support. The code worked and eliminated the French version of the Agents on the English side but now I have a bigger issue related to the agents.

By putting this code the French Agents are no longer on the Englilsh side but the issue now is that when you assign an English Agent ..... you then put the Classic Translation of the property to 100 % .. The French side of the Property no longer has an Agent assigned. You have to manually put the French Agent on the French side of the property.

All my 67 properties on my actual website no longer are connected to Agents on the French Side. All the Agents are at 0 now.

How can I connect the English and French versions of the Agents so that when I choose an English Agent on a property and then update the translation on the property ... that the French version of the Agent has been selected autotmatically without doing it manually ?

One more question: You can put it in a New Topic if you wish but seeing that you have my Sandbox, you can test this too. Is it possible that when I save a Status on a Property let's say "Draft") that by putting the Classic Editor back to 100% that the French side is also in sync and set to Draft too ? ... In other words sync the STATUS of a property from English to French side

thanks,

Frank

July 18, 2019 at 10:55 am #4237803

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Montevideo (GMT-03:00)

Hi Frank,
Thank you for your message.

I have updated our compatibility specialists about this new issue.

Regarding your question about the sync of the posts I kindly ask you to open a new ticket and assign it directly to me.
Regards,
Carlos

July 19, 2019 at 11:03 am #4245923

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Montevideo (GMT-03:00)

Hi Frank,

We need the author's cooperation to make this plugin fully compatible, so it would be good if you can let him know about our GoGlobal program: https://wpml.org/documentation/theme-compatibility/go-global-program/

Regards,
Carlos

July 30, 2019 at 3:58 am #4304675

robertS-107

Carlos,

I sent the Beyot theme designers the paragraph and link you gave me ... is there a way of knowing if they have contacted WPML ?

thanks,
Frank

July 30, 2019 at 1:34 pm #4308035

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Montevideo (GMT-03:00)

Hi Frank,

We haven't get a reply so far from the authors.

Regards,
Carlos

August 5, 2019 at 11:59 am #4340359

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Montevideo (GMT-03:00)

Hi Frank,

Our compatibility specialists said that the only thing left to do is to try contacting the author directly to ask him to join go-global:
https://wpml.org/documentation/theme-compatibility/go-global-program/

A lot of the times authors will pay more attention to their paying customers than to us.

Regards,
Carlos