 Ilyes
Supporter
Languages:
English (English )
French (Français )
Arabic (العربية )
Timezone:
Pacific/Easter (GMT-06:00)
|
Hello Arnaud,
For the agent issue, we have a workaround that I could implement on your site upon your confirmation :
1- Set the translation preference of the custom field fave_agents to COPY
Both properties will have the EN agent ID linked to them.
2. Get the correct agent profile on the property page:
Open wp-content\themes\houzez\framework\functions\property_functions.php
Look for line 3566
Replace:
$agent_id = intval( $agent );
With:
$agent_id = intval( $agent );
// WPML Workaround for compsupp-7949
$agent_id = apply_filters( 'wpml_object_id', $agent_id, 'houzez_agent', TRUE );
$agent_mobile = get_post_meta( $agent_id, 'fave_agent_mobile', true );
Look for line 3672
Replace:
$agent_id = intval( $agent_id );
With:
$agent_id = intval( $agent_id );
// WPML Workaround for compsupp-7949
$agent_id = apply_filters( 'wpml_object_id', $agent_id, 'houzez_agent', TRUE );
3. Get properties listed on the agent profile:
Open wp-content\themes\houzez\framework\classes\Houzez_Query.php
Look for the loop_agent_properties function, line 810
Replace:
$agent_id = get_the_ID();
With:
$agent_id = get_the_ID();
// WPML Workaround for compsupp-7949
$default_lang = apply_filters('wpml_default_language', NULL );
$agent_id = apply_filters( 'wpml_object_id', $agent_id, 'houzez_agent', TRUE, $default_lang );
And keep in mind that we are working on a permanent solution that doesn't require a change in the code, but will take a bit longer to develop,
Let me know if I could apply these changes,
Best,
|
 arnaudh-8
|
Hello Ilyes,
Thank you for your response and the hard work! As I am not a developper, I don't feel confortable changing the code on my website (I don't understand the ins and outs, so it looks risky to me).
I would rather wait for a permanent solution (modification directly made into Houzez theme or WPML plugin). To the best of my knowledge, this seem to be a preferable solution.
Questions:
I was able to assign agents for the french version manually, by editing the french property. I understand this was not the best solution as I am not supposed to edit the french translated page directly (I was told to proceed this way by Waqas, the founder of Houzez theme). Why is this no longer possible?
I believe the best solution, ultimately, would be to automatically assign the same agent to the translated french property than the english property (main language), if that makes sense? Is this the permanent solution you are working on? How long would it take to fix this permanently?
Thank you in advance for your help.
Arnaud
|
 Ilyes
Supporter
Languages:
English (English )
French (Français )
Arabic (العربية )
Timezone:
Pacific/Easter (GMT-06:00)
|
Hey Arnaud,
The code that I shared is actually the code that is supposed to be added to Houzez to make this work, we sent a copy to Waqas so they add it to their theme, so it is safe to implement,
To make it even more appealing, I have tested it locally on a copy of your site and it worked well, so if you want me to apply it for you, pelase share the access again,
If you still want to wait for an "official" update, then it could take from weeks to months depending on Waqas' schedule and planning,
And if you still want to assign the agent manually in french, then simply remove the edit I did under WPML > Settings > Custom Fields translation by changing the fields
fave_agent_display_option and fave_agents to "Translate",
Let me know if you still need my assistance,
Best,
|
 arnaudh-8
|
Hi Ilyes,
I just noticed that a part of my contact page in french was not translated into french. I feel like at some point it was translated into french, but not sure 100% (I hope it's not reverting again...).
I don't know how to translate this. Could you please help me on that?
Here is the link to the page: hidden link
Attached you can see the text I am talking about.
Thank you for your assistance.
|
 Ilyes
Supporter
Languages:
English (English )
French (Français )
Arabic (العربية )
Timezone:
Pacific/Easter (GMT-06:00)
|
Hello,
I have translated the form text : hidden link
This was not translated before, it was part of the Houzez form widget that we registered before for a different form (but we missed these field as it wasn't used on the other form)
I did the necessary changes to register it and added it to the list of correction Houzez have to apply,
For the Agent issue, you are right, if Houzez creates the next update without this code and without applying any fix, then this code would be deleted,
Then in that case, if you think you can wait, let's wait for Houzez to apply the code officially,
And in the meantime, apply the agent manually,
I hope that made it clearer, let me know how you would like to proceed,
|
 arnaudh-8
|
Hi Ilyes,
Ok, everything is well noted regarding the translation in the contact form, and thank you for translating the missing part!
Regarding the agent assignment issue, I think it's better if I wait for Houzez to resolve the issue permanently. Do you think it could help if I open a ticket with Houzez, asking for Waqas to review this?
I wish I could apply the agent manually on the french version, by editing the french version page, like I was doing before, but it's no longer possible. Any tips on how I could do that?
Thank you again for your precious help!!
|
 Ilyes
Supporter
Languages:
English (English )
French (Français )
Arabic (العربية )
Timezone:
Pacific/Easter (GMT-06:00)
|
Hey,
I've just changed that, you should be able to assign the agent manually, let me know if that worked,
|
 arnaudh-8
|
I can now see the agent (myself) in the drop menu from the french property and select it, however, when I hit save and refresh the property, the agent assigned (Arnaud Homburger) disappears. (It's not holding the assigned agent). As a result, I can't see the last 4 properties I created in the "À propos page". Do you know how I can proceed to assign "Arnaud Homburger" to the last 4 french properties? Thank you for your assistance.
|
 Ilyes
Supporter
Languages:
English (English )
French (Français )
Arabic (العربية )
Timezone:
Pacific/Easter (GMT-06:00)
|
This time it doesn't seem to be houzez related as I cannot edit any part of the properties, I think something changed with the URL settings and I'm debugging this locally : hidden link
I will get back to you once I found the cause,
|
 Ilyes
Supporter
Languages:
English (English )
French (Français )
Arabic (العربية )
Timezone:
Pacific/Easter (GMT-06:00)
|
I had to escalate this one unfortunately, and it only happens with Houzez properties, so it is related to houzez at the end,
The issue is also happening locally, but not on a new installation, that means something changed in the configuration since our last debug, I mad sure to cancel all the edits I did, so I suspect something else changed (update or other configuration change)
I will get back to you as soon as I get a solution, thanks for the patience again,
|
 arnaudh-8
|
Hi Ilyes,
I am not getting this messages on my end => hidden link
Looking forward to the possibility of being able to assign french properties to an agent (Arnaud Homburger; myself in this case).
Thank you for your assistance!
|
 Ilyes
Supporter
Languages:
English (English )
French (Français )
Arabic (العربية )
Timezone:
Pacific/Easter (GMT-06:00)
|
You should see that message when you edit the French property, assign the agent and then Save,
You will notice that the Saving is not going through, hence why the agent cannot be saved,
I'm working with our 2nd tier right now to find the cause, I will get back to you soon,
|
 arnaudh-8
|
Ok. I don't see that message when I follow the these steps, but yes, the assigned agent can't be saved on the french properties (I understand this is the source of our problem).
I will be patiently waiting for the resolution of this ticket.
Thank you,
Arnaud
|
 Ilyes
Supporter
Languages:
English (English )
French (Français )
Arabic (العربية )
Timezone:
Pacific/Easter (GMT-06:00)
|
Thanks again for your patience and professionalism :), Working with you has been seamless!
And another update, we are planning a big retest for houzez soon, we filed all your reports along with ones from other users and we will be working with Waqas on this,
|
 arnaudh-8
|
Hello Ilyes,
I am happy to hear than more improvements for the compatibility between Houzez & WPML are on the way!
Looking forward to the improvements so that all the french properties can show on my "À propos" french page.
Thank you and have a beautiful day.
Arnaud
|