Skip Navigation

[Resolved] Convert meters to feet in search form

This support ticket is created 4 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 6 replies, has 2 voices.

Last updated by Shane 4 years, 9 months ago.

Assisted by: Shane.

Author
Posts
#1720835
toolset1.PNG
toolset2.png

Tell us what you are trying to do?

I'm trying to create a dropdown search field that finds yachts based on their length. Their length is an integer that represents meters and I want to return all boats that have a length between 2 values. My first problem is that whenever I enter custom values for the dropdown, the custom values are not showing up at all. My second issue is that I also want to add in functionality to the search to convert between meters and feet. How would I go about doing that?

What is the link to your site?

Currently on a staging website

#1721149

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jorge,

Thank you for getting in touch.
My first problem is that whenever I enter custom values for the dropdown, the custom values are not showing up at all.

This I would need to log into your website so that I can have a look to check and see what the issue is. I've enabled the private fields for your next response.

My second issue is that I also want to add in functionality to the search to convert between meters and feet. How would I go about doing that?

I wouldn't be able to assist with this one as this would require a complete custom solution in order to achieve.

Thanks,
Shane

#1722133

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jorge,

Thank you for the credentials.

I see that some of your plugins are outdated.

Can you update the toolset plugins to their latest versions and then check the page again to see if the items load up.

If they don't temporarily disable all the non-toolset plugins and check again.

Once you've done this please let me know and we can take it from there.

Thanks,
Shane

#1723055

I tried both solutions and they didn't work, the problem still persists

#1723143

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jorge,

In order to not make any changes on your live site I will like to grab a copy of the site where I can test it safely here in a controlled environment to identify the issue.

Please let me know if I can go ahead and install the duplicator plugin to grab the copy.

Thanks,
Shane

#1723979

Yes you can install it

#1725767

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Screenshot 2020-08-03 at 9.44.28 AM.png
Screenshot 2020-08-03 at 9.43.31 AM.png

Hi Jorge,

I found the issue. The reason why you are having this problem is because you have this option enabled.

In my copy I disabled it on the Archive view by clicking on the view itself and scrolling to the Custom Search Settings. See Screenshot

You are using manually entered values for the fields and as such they won't exactly match what is stored in the database, hence the fields showing up blank.

I've also tested the search and it works fine with this setting disabled.

Thanks,
Shane