- Edited
"Problems displaying properties with JA Megafilter"
The m2 field is also repeated as well as removing the "/" and the avatar of the user is not displayed
It’s been several days and no response. what is happening? can you at least answer if they are working on fixing the error?
- Edited
The error seems to be that if custom fields like bathrooms or rooms have a value of 0, they are not displayed. Ultimately, in the override file of the plugin plg_jamegafilter_content -> default.php , I had to use the following code
if (jQuery(this).find(".ct21").length == 0) {
// Si dentro del elemento actual (por ejemplo, "this") existe al menos un elemento con la clase ".ct3"
if (jQuery(this).find(".ct3").length > 0) {
// Se inserta el siguiente HTML inmediatamente después de cada elemento con clase ".ct3"
jQuery(this).find(".ct3").after(
'<div class="row ct21 r-bathrooms r-class">' +
'<div class="col-md-6"><?php echo Text::_('TPL_BATHROOMS') ;?></div>' +
'<div class="col-md-6">0</div>' +
'</div>' +
'<div class="row ct2 r-bedrooms r-class">' +
'<div class="col-md-6"><?php echo Text::_('TPL_BEDROOMS') ;?></div>' +
'<div class="col-md-6">0</div>' +
'</div>'
);
}
}
though I don’t consider it ideal since the data should still be visible even if the value is 0. I need more time to understand how Dust.js works, as I don’t yet grasp how to retrieve field names and values to at least detect whether custom fields like bathrooms and rooms are set to 0, ensuring they are displayed regardless. I hope you can help me with this issue, as the client is unhappy with the delay in delivering their website. Additionally, I have not been able to resolve the issue of why the user’s avatar is not visible