Forum Replies Created

Viewing 15 posts - 31 through 45 (of 70 total)
  • Author
    Posts
  • in reply to: autocomplete from mysql db #35763
    Icemanmx
    Participant

    Hello
    Just want to know if we have any progress on this one, is only this was is missing for my orden de trabajo to be complete?

    Best Regards
    Icemanmx

    in reply to: Multiply #35750
    Icemanmx
    Participant

    Thanks bud, function perfect…

    Best Regards
    Icemanmx

    in reply to: Buttons #35749
    Icemanmx
    Participant

    Thanks bud, that made the trick…

    Best Regards
    Icemanmx

    in reply to: autocomplete from mysql db #35722
    Icemanmx
    Participant

    Thanks alot… take your time, I am very grateful for your help.

    Regards
    Icemanmx

    in reply to: autocomplete from mysql db #35708
    Icemanmx
    Participant

    Hello again,
    maybe this plugin will work, but i have problem to exact put together the quform id and Unique ID, i need help with that if you can, i can also give some money for the help… I will understand if this is total outside your area to work with.
    I will attache the files i have so far for the autocomplete…

    Best Regards
    Icemanmx

    Attachments:
    You must be logged in to view attached files.
    in reply to: autocomplete from mysql db #35706
    Icemanmx
    Participant

    Hello
    I found this, is this something maybe i can use?

    To add autocomplete functionality to a Quform input field using jQuery and MySQL, you can follow these steps:
    
        Set up the database:
            Create a MySQL database and table to store the data you want to use for autocompletion.
            For this example, let's assume you have a table named "products" with a column named "name" containing the product names.
    
        Create a custom WordPress plugin:
            Create a new directory in the wp-content/plugins directory of your WordPress installation. For example, you can name it "autocomplete-plugin".
            Inside the "autocomplete-plugin" directory, create a new PHP file, e.g., "autocomplete.php", and add the following code:


    <?php
    /*
    Plugin Name: Autocomplete Plugin
    */

    function enqueue_autocomplete_scripts() {
    // Enqueue necessary scripts for autocomplete
    wp_enqueue_script('jquery-ui-autocomplete');
    }
    add_action('wp_enqueue_scripts', 'enqueue_autocomplete_scripts');

    function autocomplete_search_results() {
    global $wpdb;

    $term = $_GET['term'];

    // Prepare the SQL query
    $query = "SELECT name FROM ".$wpdb->prefix."products WHERE name LIKE '%".$term."%'";
    $results = $wpdb->get_col($query);

    // Format the results as JSON
    echo json_encode($results);
    exit;
    }
    add_action('wp_ajax_autocomplete_search_results', 'autocomplete_search_results');
    add_action('wp_ajax_nopriv_autocomplete_search_results', 'autocomplete_search_results');

    Activate the plugin:
    
        Log in to your WordPress admin dashboard.
        Go to the "Plugins" section.
        Find your "Autocomplete Plugin" and click the "Activate" button.
    
    Modify the Quform form:
    
        Edit the Quform form you want to add autocomplete to.
        Find the input field you want to enable autocomplete for.
        In the "Advanced" section of the field settings, set the "Custom element class" to something unique, e.g., "autocomplete-field".
    
    Create a custom template file:
    
        In your WordPress theme's directory, create a new PHP file, e.g., "quform-autocomplete-template.php".
        Add the following code to the template file:


    <script>
    jQuery(document).ready(function($) {
    $(".autocomplete-field").autocomplete({
    source: "<?php echo admin_url('admin-ajax.php'); ?>?action=autocomplete_search_results",
    minLength: 1
    });
    });
    </script>

    Edit the Quform form shortcode:
    
        Locate the shortcode for your Quform form in the content area of your WordPress page or post.
        Add the include parameter to the shortcode, pointing to the custom template file:

    [quform id="YOUR_FORM_ID" include="path/to/quform-autocomplete-template.php"]

        Replace "YOUR_FORM_ID" with the actual ID of your Quform.
    
        Save the changes to the template file and the Quform shortcode.
    
    Now, when you view the page or post containing the Quform, the input field with the "autocomplete-field" class will have autocomplete functionality. As the user types in the field, an AJAX request will be sent to the server to retrieve matching results from the "products" table. The results will be displayed as suggestions in the autocomplete dropdown.

    Can you check if i can use this, i don´t want a dropdown i just want to search on client textfield and that when right client show up i just choose it then all the others fields will be populatet…

    Or do you have a develooper for me? who can make this plugin for me?

    Best Regards
    Icemanmx

    Attachments:
    You must be logged in to view attached files.
    in reply to: Enable conditional recipients #35633
    Icemanmx
    Participant

    Hello
    Yes i think i got it now, thanks to show me how to do this… Thanks

    This forum you using here, where can i get an hold of it?

    Best Regards
    Icemanmx

    in reply to: Enable conditional recipients #35623
    Icemanmx
    Participant

    Hello, ok, so far so good, but it does not send to Recipient mail, To or Reply-To mail…
    Maybe it can´t when you have conditional recipients…!!!

    Best Regards
    Icemanmx

    Attachments:
    You must be logged in to view attached files.
    in reply to: Merge #35616
    Icemanmx
    Participant

    Hello again
    Just want to ask if Quform is PHP 8.0 compatible? My host will soon activate the php 8 and delete the PHP 7.4
    And also, the extra code i use in my mail template is good for PHP 8?

    Thanks in advance

    Icemanmx

    in reply to: Merge #35602
    Icemanmx
    Participant

    Hello Ally
    Thanks for your support, good as always… The funny stuff is that it is function on the old cotizar this if statement is like that, i never think about that i need to add one more <?php endif; ?> in the end.

    But a big thanks for this, now i can change to the new cotizar and i can sleep in the night… 😉

    Also i will put you back as subscriber on the page to the next time… 😉

    Best Regards
    Icemanmx

    in reply to: Merge #35592
    Icemanmx
    Participant

    I sent a link to renew your password for the site, you are admin now…
    https://hdapuertagrande.com.mx/hdapg is the login link and your email is support@themecatcher.net

    Best Regards
    Icemanmx

    in reply to: Merge #35590
    Icemanmx
    Participant

    Hello
    I did what you recommended me, but no luck…
    I even changed the name of the plugin folder and go away from the name cotizar…
    I will send you my plugin folder named qmailhdapg and all the files i was edeting, i don´t know if i missing something…
    The error i get when sending the form is Ajax error…
    I sending in the zip file also 5 images what showing the id from the form i am using.

    Best Regards
    Icemanmx

    Attachments:
    You must be logged in to view attached files.
    in reply to: Merge #35585
    Icemanmx
    Participant

    I get this error when trying to activate the plug in..

    ” Fatal error: Cannot redeclare cotizar_customize_email() (previously declared in /home/pg/public_html/wp-content/plugins/cotizar/cotizar.php:51) in /home/pg/public_html/wp-content/plugins/cotizar2/cotizar.php on line 13 ”

    Best Regards
    Icemanmx

    in reply to: Populate dropdown #29705
    Icemanmx
    Participant

    Thanks Ally
    This function perfect, 1000 thanks again for your support.

    Best Regards
    Icemanmx

    in reply to: Populate dropdown #29692
    Icemanmx
    Participant

    Please, anyone can help me to get it right?

    Best Regards
    Icemanmx

Viewing 15 posts - 31 through 45 (of 70 total)
Be inspired. © 2025 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy