+ Reply to Thread
Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Issue in Compare Listings plugin

  1. #11
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,179
    Hello,

    I need some example where the values are empty

  2. #12
    Master
    Join Date
    Apr 2021
    Location
    USA
    Posts
    262
    Quote Originally Posted by Rudi View Post
    Hello,

    I need some example where the values are empty
    Yes Rudi please let me repeat the issue first. When add a few listings, for example 5, to comparison table and check. Lets say these listing have around 6 fields: price, bedroom, bathroom, state, city, zipcode
    The system will check the first listing, if the first listing has empty price and empty bathroom, other 4 listing have these info. then comparison will show fields as following order.

    Bedroom
    State
    City
    Zipcode
    Price
    Bathroom

    Which is awkward. But this method has good practice which remove entirely any field that have EMPTY value on all 5 listings. If >= 1 of the listing have value, then field is visible.

    With your code, the order stay as we put them which is great:

    Price
    Bedroom
    Bathroom
    State
    City
    Zipcode

    But I have two extra fields:
    1. Term of service with Yes as Default
    2. And another field from customization, where user check the box to hide address.
    These fields show up on the comparison table now. (

    Is there anyway I can exclude these 2 fields from comparison table using listing field key?

  3. #13
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,179
    Yes, you can exclude the fields you need via this file plugins/compare/rlCompare.class.php

    in this code block:
    PHP Code:
    Only registered members can view the code
    add your field keys with a comma

  4. #14
    Master
    Join Date
    Apr 2021
    Location
    USA
    Posts
    262
    Quote Originally Posted by Rudi View Post
    Yes, you can exclude the fields you need via this file plugins/compare/rlCompare.class.php

    in this code block:
    PHP Code:
    Only registered members can view the code
    add your field keys with a comma
    Thank you Rudi, it worked. Excellent support as always.

+ Reply to Thread