• Resolved RICH65

    (@rich65)


    Hi all!
    I have this problem:
    When I select multiple items in the checkbox for a particular category, then the search result is 0.

    Example – Developer/Attributes:
    Attribute Name: Sample
    Search Input: Multi-Checkbox
    Parameters: a,b,c,d
    Data Entry: Free Text
    ==============================================
    Edit Property – General:
    Sample: a,b,d

    When I select one of the existing parameters (“a” or “b” or “d”) the result is displayed. When I select two or three of the existing parameters the result is zero.
    May be tested on: sage-reality.cz/komercni/

    Where could it be wrong?
    Thanks!
    RICH65

    https://www.ads-software.com/plugins/wp-property/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Maxim Peshkov

    (@maximpeshkov)

    Hello,

    Values separated by comma for Sample attribute will not work.
    Data Entry ‘Free text’ is being used ONLY for storing single values.

    Select Data Entry ‘Multi-Checkbox’ if you need to store more then one value for specific attribute. See: https://screencast.com/t/pzYtL8k4M

    So you will have similar multi checkbox list on Edit Property page: https://screencast.com/t/4Qa8FFQB6cz

    Regards.

    Thread Starter RICH65

    (@rich65)

    Hi Maxim!
    Thank you for answer. Search with Multi-Checkbox now works, but do not display the values (in property_stats overview) that were checked in the Multi-Checkbox.

    view-source page:

    <ul id="property_stats" class="property_stats overview_stats list">
                            <li class="property_typ wpp_stat_plain_list_typ ">
                  <span class="attribute">Typ<span class="wpp_colon">:</span></span>
                  <span class="value">&nbsp;</span>
                </li>

    template-functions.php:

    <ul class="overview_stats wpp_property_stats list">
                <?php foreach ( $gstats as $tag => $data ) : ?>
                  <?php
                  $label = $data[ 'label' ];
                  $value = $data[ 'value' ];
                  $alt = ( $alt == "alt" ) ? "" : "alt";
                  ?>
                  <li class="<?php echo $stats_prefix; ?>_<?php echo $tag; ?> wpp_stat_plain_list_<?php echo $tag; ?> <?php echo $alt; ?>">
                    <span class="attribute"><?php echo $label; ?>:</span>
                    <span class="value"><?php echo $value; ?>&nbsp;</span>
                  </li>
                <?php endforeach; ?>
                </ul>

    Perhaps it will be the parameter “value”.
    Can you help me with this problem?
    Thank you!
    RICH65

    Plugin Contributor Maxim Peshkov

    (@maximpeshkov)

    Ah, sorry, I just found the bug which prevented showing of Multi-Checkbox attributes on front end.

    We are going to launch urgent WP-Property release which contains the fix tomorrow. So the issue should be resolved for you after upgrade. I’ll keep you updated.

    Regards.

    Plugin Contributor Maxim Peshkov

    (@maximpeshkov)

    WP-Property 2.1.2 release is available for download.
    It should fix showing of Multi-Checkbox values on front end.

    Please, mark the ticket as resolved it if fixes your issue.

    Regards.

    Thread Starter RICH65

    (@rich65)

    Thank you very much!!!
    Everything works!!!
    Have a nice day!!!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Multi-checkbox search problem’ is closed to new replies.