Hello,
Why the "Posted" field doesn't appear in Comparison Table?
See attached pic.
I hope to have an answer this time... :-(
Hello,
Why the "Posted" field doesn't appear in Comparison Table?
See attached pic.
I hope to have an answer this time... :-(
Hello Antonello,
You need to change some code in file: ftp://classes>>rlListings.class.php find method: getListingDetails
find code:
and replace to:PHP Code:
Only registered members can view the code.
save and check again.PHP Code:
Only registered members can view the code.
Last edited by Viktor; May 15, 2023 at 11:26 AM.
Viktor,
Flynax technical department,
Best wishes.
Perfect, now it's ok! Thank you Viktor
Hello, reagarding comparison plugin I notice that if a field is empty then that field is push to the bottom. That is not intuitive because we expect some listing does not have full info.
For example I arrange a house for rent as
Price
Bedroom
Bathroom
Description
State
City
Address
Zipcode
If for some reason the 1st listing does not have price, or bathroom input. The price and bathroom fields are dropped to the bottom. So when you look at the comparison table you will see
Bedroom
Description
State
City
Address
Zipcode
Price
Bathroom
Looks very awkward isn't it? Is there anyway I can have the listing order unchanged regardless of the data is input or not?
Thank you
Hello,
Make sure that the compared listings have the same listing form otherwise, the fields order will be adapted to the last listing form
Hi Rudi, yes listings are in the same category so the same listing form. You can test this on Flynax demo
https://realty.demoflynax.com/compar...gent-test.html
Very easy login to Flynax agent account, then go here:
https://realty.demoflynax.com/proper...stal-property/
Try adding the top 3 listing in comparison table:
The Ultra Modern Dune Road Residence
Beautiful Jelenovac Residence
Spectacular Modern Luxury Residence
You will see in the comparison table the description field is on top. Now try go to listing: The Ultra Modern Dune Road Residence and remove its' description. Check the comparison again. The description field will be drop to the bottom.
This is similar to my example above, if one listing in my comparison table is missing price, then all of the sudden the price field is drop to the bottom of the comparison table. Very awkward
If you arrange fields in order like
price
bedroom
bathroom
D
E
F
G
If a listing in comparison table is missing price and bathroom info then all listing in the comparison table is rearrange as:
bathroom
D
E
F
G
price
bedroom
bathroom info on top, then other info then price and bedroom at the bottom. Not so good don't you think
Last edited by Tim Copper; May 18, 2023 at 07:15 AM.
Hi Rudi,
Did you have time to look into this issue?
Thank you
Hello Tim,
You need to modify this file: includes > classes > rlListings.class.php > public function getListingDetails
find and replace this line below:
with:PHP Code:
Only registered members can view the code.
PHP Code:
Only registered members can view the code.
[QUOTE=Rudi;37892]Hello Tim,
You need to modify this file: includes > classes > rlListings.class.php > public function getListingDetails
find and replace this line below:
with:PHP Code:
Only registered members can view the code.
/QUOTE]PHP Code:
Only registered members can view the code.
Hi Rudi,
Thank you, I will forward this to my tech guys.
[QUOTE=Rudi;37892]Hello Tim,
You need to modify this file: includes > classes > rlListings.class.php > public function getListingDetails
find and replace this line below:
with:PHP Code:
Only registered members can view the code.
/QUOTE]PHP Code:
Only registered members can view the code.
Hi Rudi, your code worked great. Almost perfect, there is only one draw back. The code did indeed show fields in order from top to bottom, but it also show fields with EMPTY value. Is there anyway we can still have this code show only fields with value, and in order from top to bottom?
Here is the code
foreach ($form as $gKey => &$group) {
if ($group['Fields']) {
foreach ($group['Fields'] as $fKey => &$value) {
if (!empty($value)) {
// if (!empty($value) && (!empty($listing[$value['Key']]) || $value['Type'] == 'bool')) {
$form[$gKey]['Fields'][$fKey]['source'] = explode(',', $listing[$value['Key']]);
$form[$gKey]['Fields'][$fKey]['value'] = $rlCommon->adaptValue(
$value,
$listing[$value['Key']],
'listing',
$listing['ID'],
true,
false,
false,
false,
$listing['Account_ID'],
'listing_form',
$listing['Listing_type']
);