This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Ajax search pro custom fields problem

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Ajax search pro custom fields problem

Viewing 9 posts - 16 through 24 (of 24 total)
  • Author
    Posts
  • #23045
    Anonymous
    Inactive

    I just got a respond from acf
    Maybe this will help

    Hi there,

    Thanks for the follow up.

    This is not an ACF issue, it is likely that when the field is created using the AJAX plugin a field reference is not created. This field reference is necessary to format the saved value in the database. I would suggest that you ask the plugin developer to pass the values through the update_field() function so that the references can be correctly created.
    https://www.advancedcustomfields.com/resources/update_field/

    Thanks, 
    Kenny

    #23046
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Thank you Kenny, that actually helped, I understand the issue now.

    They were right about using that function, it updates the fields and now the get_field() returns correctly. However the issue is not within this plugin either, as they mention that the reference is not created properly when the post is added to the database. If you use any custom AJAX plugin to add the posts (like they mentioned), that might have something missing there, so the references are not created.
    I have added a bypass to the code to update the field before parsing, now it seems to be returning the correct field values in every case. However please note that I cannot add this fix to the live code within the upcoming release. I recommend leaving the plugin with the currecnt release, and not updating soon to make sure the modification remains.

    The changes were made to the wp-content\plugins\ajax-search-pro\includes\classes\etc\class-asp_helpers.php file, I have made a copy of it here, in case it’s needed in the future.

    #23048
    Anonymous
    Inactive

    Hello again
    when i drag same custom field all the way to top and it works fine. The plugin has some issue with big from.

    #23058
    Anonymous
    Inactive

    Hello again,
    I gues it has some problems with big forms since it doesnt recognize any of the fields there. Any additional help would be great coz im stuck here. The plugin isnt functioning.

    #23063
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    #23066
    Anonymous
    Inactive

    If you go to http://www.searchcut.co.uk/cars, the first field has been added “Make” and it work, it shows them well but if you add something else there it does not work. For example price is added right now it doest show any effect at all. Does it has to be because the cars are to many added and it does not handle it well in the search.
    On the other pages it works fine because there hasent been that many search fields added to them besides pricr and category. Hopefully there is a solution.
    Thanks Armend

    #23076
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi Armend,

    The problem is due to modifications you did on the wp-content\plugins\ajax-search-pro\includes\views\asp.shortcode.custom_fields.php

    There is a variable $x_in that is incremented on several different occasions ($x_in++) with your modifications, however it is used on the server side to check the field names. It should be left as it is (only incremented once), otherwise the script is not able to verify the field names. I recommend using a different method there, maybe another variable, if you want to make such modification.

    #23094
    Anonymous
    Inactive

    I have disabled that particular variable despite that it didn’t worked.

    I keep it disable you can check it.

    Please fix the issue. I’m Stuck with my project because of the plugin problems that show up every second day for more the 2 weeks now.
    Thanks Armend

    #23098
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    The file is still modified, it does not match the original. These two lines are different:

    <fieldset class="asp_custom_f<?php echo in_array($item->asp_f_type, array('checkboxes', 'radio')) ? ' asp_sett_scroll' : ''; echo $x_in++; ?>" >

    and:

    <select class="<?php echo w_isset_def($item->asp_f_dropdown_search, 'asp_unchecked') == 'asp_checked' ? 'asp_gochosen' : 'asp_nochosen'; echo $x_in++;

    Please note that I cannot guarantee support for modified versions of the plugin. Changing core files may result in a plugin malfunction unfortunately. I recommend reverting back this file to the original, that should resolve the issue.

Viewing 9 posts - 16 through 24 (of 24 total)
  • You must be logged in to reply to this topic.