Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is experiencing issues where specific price options (like 2000€, 5000€, etc.) appear on the EN landing page but not on the translated DE, FR, IT pages in a site using the Houzez theme, the issue might be related to JavaScript handling in the theme.
Solution:
We recommend trying the following steps after ensuring you have a full site backup:
1) Navigate to the

wp-content/themes/houzez/js

folder.
2) Open the

custom.js

file for editing.
3) Locate line 1963.
4) Update the JavaScript function from:

var property_status_changed = function(prop_status, $form) { 
     
    if( prop_status == for_rent ) { 
        $form.find('.prices-for-all').addClass('hide');
        $form.find('.prices-for-all select').attr('disabled','disabled');
        $form.find('.prices-only-for-rent').removeClass('hide');
        $form.find('.prices-only-for-rent select').removeAttr('disabled','disabled');
        $form.find('.prices-only-for-rent select').selectpicker('refresh');
    } else {  
        $form.find('.prices-only-for-rent').addClass('hide');
        $form.find('.prices-only-for-rent select').attr('disabled','disabled');
        $form.find('.prices-for-all').removeClass('hide');
        $form.find('.prices-for-all select').removeAttr('disabled','disabled');
        $form.find('.prices-for-all select').selectpicker('refresh');
    }
}

To:

var property_status_changed = function (prop_status, $form) {
    if (prop_status === 'for-rent') { // Ensure comparison is with correct value
        $form.find('.prices-for-all').addClass('hide');
        $form.find('.prices-for-all select').prop('disabled', true);
        $form.find('.prices-only-for-rent').removeClass('hide');
        $form.find('.prices-only-for-rent select').prop('disabled', false).selectpicker('refresh');
    } else {
        $form.find('.prices-only-for-rent').addClass('hide');
        $form.find('.prices-only-for-rent select').prop('disabled', true);
        $form.find('.prices-for-all').removeClass('hide');
        $form.find('.prices-for-all select').prop('disabled', false).selectpicker('refresh');
    }
};

5) Clear all types of caches.

If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your specific case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket.

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.

Tagged: 

This topic contains 26 replies, has 3 voices.

Last updated by markusP-25 14 hours, 34 minutes ago.

Assisted by: Bigul.

Author Posts
October 3, 2024 at 3:49 pm #16251143

markusP-25

I have found another bug in the meantime. If you are already working "locally" on my case, can you please look at this error?

Situation: it works on the EN landing page (montecarloresidences.com) but not on the translated pages: DE FR IT

If you click "FOR RENT" and "Price max" on the EN landing page, the amounts I entered appear, such as 2000€, 5000€, etc.

Problem: These amounts do not appear on the DE FR IT page.

I was able to set these amounts on Houzez here: Houzez Theme Options - Searches - Settings - Maximum Prices List for Rent Only

I tried to edit something on the DE landing page (in elementor) and save it. But no success. I think this error has always existed but I have only seen it now.

Thanks for your support!

16245067-maxpricerent.png
October 3, 2024 at 4:00 pm #16251251

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

Welcome to the WPML support forum. I will do my best to help you to resolve the issue.

I will debug it further with the main ticket and get back to you as early as possible. Please wait.

--
Thanks!

Bigul

October 6, 2024 at 8:54 am #16257640

markusP-25

ok, thanks I'll wait for further instructions.

October 7, 2024 at 3:06 pm #16262408

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

Sorry for the late response due to the weekend. As a part of troubleshooting and escalation to our compatibility team developer, I have tried to reproduce the issue in a Sandbox site (a fresh installation) on our staging site because it will help to speed up the debugging process.

hidden link (Login URL to the sandbox site)

Unfortunately, the Houzez theme is asking for the registration key in the sandbox site. Therefore one request. Can you please check with the theme author if they can provide a license key (temporary) for the test site?

Thank you for your kind understanding.

--
Thanks!

Bigul

October 8, 2024 at 3:52 pm #16266643

markusP-25

Hi!
Ok, I just got Houzez feedback. You should use my existing code. It works for Sandbox and my live site will not be affected, says Houzez.

October 8, 2024 at 3:53 pm #16266646

markusP-25

I forgot. Is this conversation private? Because of the purchase code?

October 8, 2024 at 5:13 pm #16266909

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

Thank you for the updates. We have a request. Please visit the sandbox site by clicking this URL - hidden link

Then register the license key and create a test post. After that check if the bugs can be reproducible or not.

--
Thanks!

Bigul

October 9, 2024 at 7:39 pm #16272237

markusP-25

Hi Bigul!
OK, all done.
1) Alt text doesn't work.
2) However the error with the "max rent price" hasn't come up again. But the same process doesn't work on my live site.

Thanks!

October 10, 2024 at 3:06 pm #16276024

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

Thank you very much for configuring the sandbox site and reproducing the issue. I will consult about with our team for an expert opinion on this and get back to you as soon as possible. Please wait.

--
Thanks!

Bigul

October 10, 2024 at 4:30 pm #16276461

markusP-25

About issue: max rent price
I am sure you tried that too. I translated it in the string translation (screenshot enclosed), but it's not displayed correctly in the frontend.

maxprice.png
October 14, 2024 at 3:58 pm #16287126

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

Sorry for the late response becuase of the holidays. We trying the possible workarounds in this case and get back to you as soon as possible. Please wait.

--
Thanks!

Bigul

October 23, 2024 at 10:04 am #16321191

markusP-25

Because of this problem. This is something that only affects my site. Sandbox works for you. Idea: can we change the translations (amounts) directly in my php files? Because I won't change these amounts again, that would be a solution for me. But you would have to tell me where and how exactly I can change/enter that.
Thanks for your support - I appreciate it!

October 23, 2024 at 11:16 am #16321428

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

Thank you for the updates. We noticed a glitch in the search box widget. It only shows the customized price in English after we choose the For Sale tab. Please check the following screencast for more details.

hidden link

This may be related and we are looking for the possible workarounds in this case. Please wait.

--
Thanks!

Bigul

October 23, 2024 at 2:52 pm #16322474

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

Please check the following source code. Some how the customized prices are hidden on the site.

        <div
            class="elementor-field-group elementor-column form-group elementor-field-group-95f133a elementor-col-20 elementor-md-50 elementor-sm-100">
            <label for="form-field-95f133a" class="elementor-field-label elementor-screen-only">Price max</label>
            <div class="prices-for-all elementor-field elementor-select-wrapper">
                <select data-size="5" name="max-price" id="form-field-95f133a" data-live-search="true"
                    data-live-search-normalize="true"
                    class="selectpicker bs-select-hidden houzez-field-textual form-control elementor-size-md">
                    <option value="">Price max</option>
                    <option value="any">Any</option>
                    <option value="1000000">1.000.000€</option>
                    <option value="3000000">3.000.000€</option>
                    <option value="5000000">5.000.000€</option>
                    <option value="10000000">10.000.000€</option>
                    <option value="20000000">20.000.000€</option>
                    <option value="50000000">50.000.000€</option>
                    <option value="100000000">100.000.000€</option>
                    <option value="200000000">200.000.000€</option>
                    <option value="250000000">250.000.000€</option>
                </select><!-- selectpicker -->
            </div><!-- form-group -->

            <div class="hide prices-only-for-rent elementor-field elementor-select-wrapper">
                <select data-size="5" name="max-price" id="form-field-95f133a" data-live-search="true"
                    data-live-search-normalize="true"
                    class="selectpicker bs-select-hidden houzez-field-textual form-control elementor-size-md">
                    <option value="">Price max</option>
                    <option value="any">Any</option>
                    <option value="2000">2.000€</option>
                    <option value="5000">5.000€</option>
                    <option value="7000">7.000€</option>
                    <option value="10000">10.000€</option>
                    <option value="15000">15.000€</option>
                    <option value="20000">20.000€</option>
                    <option value="50000">50.000€</option>
                    <option value="100000">100.000€</option>
                    <option value="150000">150.000€</option>
                    <option value="200000">200.000€</option>
                    <option value="300000">300.000€</option>
                </select><!-- selectpicker -->
            </div><!-- form-group -->

So we have a request. Please deactivate all WPML plugins after a site backup and check it is showing the expected results (without clicking the *For Sale* tab).

--
Thanks!

Bigul

October 23, 2024 at 3:33 pm #16322643

markusP-25

Just a quick question. Should I copy the code somewhere? In a php file? Or just deactivate WPML plugins after a backup? And then activate WPML plugins again?