onOffice-Web-Org / oo-wp-plugin

onOffice for WP-Websites
https://wp-plugin.onoffice.com
GNU General Public License v3.0
9 stars 9 forks source link

Files are not loaded on property detail page #799

Closed fredericalpers closed 2 months ago

fredericalpers commented 5 months ago

Files are not loaded on property detail page

Introduction

In version 4.18 of the onOffice for WP-Websites plugin, a bug has occurred that causes certain files not to be loaded when the [oo_estate units="units" view="detail"] shortcode is used.

Steps for replication:

  1. Install version 4.18 or 4.18.1 of the onOffice for WP-Websites plugin.
  2. Save units shortcode e.g. [oo_estate units="units" view="detail"] in a page.
  3. Open the detail page of a property.

Expected behavior: The files like onoffice_detailview-js, slick.js and slick.ss should be loaded to support the functionality of the onOffice plugin.

Observed behavior: The mentioned files are not loaded, which leads to an incorrect display of the slick slider.

User Story

As a real estate agent using the onOffice for WP Websites plugin, I expect all relevant files to load properly when I use the units shortcode to display units as well.

This is important for my website to function correctly and for potential clients to have a smooth experience when searching for properties and units. Failure to load these files can result in an incorrect display, which in turn affects customer confidence in my website and service.

By fixing the bug, the impaired function of the onOffice for WP website should be restored. This will result in a better user experience and a professional presentation for potential customers.

Requirements / Tasks

dai-eastgate commented 5 months ago
  • Analysis of the code to identify the cause of the bug.

@fredericalpers The bug was caused by the necessary scripts for the unit detail not being loaded. I have fixed it and this is demo video: https://files.fm/f/mfxgkumzqy