Price x profile field

This topic contains 5 replies, has 2 voices, and was last updated by  themosaurus 4 weeks ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #3280

    alex
    Participant
    • 187 Posts
    @abourne

    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 πŸ™‚

    #3357

    themosaurus
    Keymaster
    • 1250 Posts
    @themosaurus

    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/Inputmask

    In 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,

    #3530

    alex
    Participant
    • 187 Posts
    @abourne

    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.

    #3614

    themosaurus
    Keymaster
    • 1250 Posts
    @themosaurus

    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,

    #3624

    alex
    Participant
    • 187 Posts
    @abourne

    Thanks, makes perfect sense. Will just use as adv serch filter and not home page filter.

    #3677

    themosaurus
    Keymaster
    • 1250 Posts
    @themosaurus

    OK, seems fine that way too. πŸ™‚

    Yours,

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Price x profile field’ is closed to new replies.