Find Answers and Get Support › Forums › Gwangi – PRO Multi-Purpose Membership, Social Network & BuddyPress Community Theme › Compatible Plugins › BP Profile Search › Price x profile field
- This topic has 5 replies, 2 voices, and was last updated 6 years, 3 months ago by
Themosaurus.
-
AuthorPosts
-
alexParticipant@abourne
- 81 Topics
- 259 Posts
Do you have suggestions on how to use a price field $00.00 for example. Not as a ‘range’ or as a ‘decimal’ but a field which utilises the number pad and not the standard qwerty keyboard on devices.
Small request, but have been wondering about it 🙂
November 4, 2018 at 09:56 #3280@themosaurus- 1 Topics
- 1675 Posts
Hi @abourne,
As BP Profile Search uses the type selected for your XProfile field to create its search filters, it seems best to use the “Number” field type. It will allow you to create a BP Profile Search filter with a “ranging from… to…” type of mechanism. Usually, it’s the way price values are used on e-commmerce website or on freelancer hiring websites.
To display your price field as a currency, you could consider using one of the following jQuery plugin to format your input values:
https://github.com/igorescobar/jQuery-Mask-Plugin
https://github.com/RobinHerbots/InputmaskIn the event that you wish to write a jQuery snippet for your website, please use the following code template:
function gwangi_custom_jquery_script() { ?> <script type="text/javascript"> (function($) { // Paste jQuery code here... })(jQuery); </script> <?php } add_action( 'wp_footer', 'gwangi_custom_jquery_script', 1000 );
You can add your code snippet using Code Snippets (https://wordpress.org/plugins/code-snippets/), like you did previously.
It should do the trick. ?
Regards,
November 6, 2018 at 17:50 #3357alexParticipant@abourne- 81 Topics
- 259 Posts
Applied your ‘range’ solution.
No text input appears on home search text fields when being entered.
It is set to ‘range’. When enter text, nothing shows. But when press search button, it applies the filter.
Why does no text appear when typing, but result as an applied filter?
Is it cause no members have a set price range within the subject entered price? Or is something else broken.
Please help.
November 15, 2018 at 13:24 #3530@themosaurus- 1 Topics
- 1675 Posts
Hi @abourne,
If we’re not mistaken, the Range controls from BP Profile Search are simple text fields that will receive user inputs. BP Profile Search is not building its controls by selecting the price values registered by your members.
Maybe, an option that you’ve been missing exists. It’s best to ask to the plugin author for further help.
Otherwise, changing the way these controls are built will require custom development if you wish to enhance user experience.
Regards,
November 17, 2018 at 13:57 #3614@themosaurus- 1 Topics
- 1675 Posts
OK, seems fine that way too. ?
Yours,
November 20, 2018 at 17:28 #3677 -
AuthorPosts
The topic ‘Price x profile field’ is closed to new replies.