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.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 7:00 – 15:00 | 7:00 – 15:00 | 7:00 – 15:00 | 7:00 – 15:00 | 7:00 – 15:00 | - |
- | - | - | - | - | - | - |
Supporter timezone: Pacific/Easter (GMT-06:00)
Tagged: Compatibility
This topic contains 0 replies, has 1 voice.
Last updated by arnaudh-8 1 day, 20 hours ago.
Assisted by: Ilyes.
Author | Posts |
---|---|
April 8, 2025 at 1:35 am #16906587 | |
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, |
April 8, 2025 at 4:33 pm #16910428 | |
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 |
April 9, 2025 at 8:47 pm #16915958 | |
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 Let me know if you still need my assistance, Best, |
April 10, 2025 at 10:34 pm #16920564 | |
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. |
April 11, 2025 at 12:54 am #16920677 | |
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, |
April 11, 2025 at 1:04 am #16920679 | |
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!! |
April 11, 2025 at 1:21 am #16920698 | |
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, |
April 11, 2025 at 2:35 am #16920747 | |
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. |
April 11, 2025 at 1:34 pm #16922932 | |
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, |
April 11, 2025 at 10:40 pm #16924749 | |
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, |
April 12, 2025 at 11:12 am #16925180 | |
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! |