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

Improvement of the address list functionality - Add User photo (2) #806

Open fredericalpers opened 2 months ago

fredericalpers commented 2 months ago

Improvement of the address list functionality - Add User photo (2)

Introduction

The current functionality of the onOffice for WP Websites plugin offers limited options for displaying employees, offices or locations on a real estate agent's website. In order to meet the needs of real estate agents and to enable a comprehensive display of employees, offices and locations, an extension of the functionality in the plugin is required.

User Story

Now that the functionality for individual detailed views of employees, offices and locations in Issue #805 has been added to the onOffice for WP-Websites plugin, an additional extension is to be implemented. This extension includes the implementation of an option to select and deselect the display of the contact person image using the user photo of the data record.

This allows real estate agents to further optimize and customize the presentation of their teams and locations on their website. This extension makes it possible to improve the customer experience and provide potential customers with even better information.

Requirements / Tasks

Design / Screenshots

userphoto

dai-eastgate commented 1 month ago
  • Implementation of the option to select and display the contact person image in the detailed view. The user photo must be used for this. See User Photo API.

@fredericalpers You mentioned: "Select and display the contact person image in the detailed view". While investigating, I found an issue: I'm not sure which field "contact person image" is being retrieved from => Is the contact person image taken from the User Image of the User selected at Address -> Administration-> Supervisor? image

fredericalpers commented 1 month ago

@dai-eastgate the userphoto will be loaded from "Extras > Settings > User". There you will have to chose the "Active user" which is not the API User. See the following screenshot as an example from my test account.

user

dai-eastgate commented 1 month ago

@fredericalpers I got it. Thanks!

dai-eastgate commented 1 month ago

@fredericalpers I have implemented backend logic for this issue. Here is video evidence:

https://github.com/onOffice-Web-Org/oo-wp-plugin/assets/106214469/45343b82-7f7e-4f7e-ac6e-cdbd3b0f721b

Please check and let me know your opinion. Thanks!

fredericalpers commented 1 month ago

@dai-eastgate thank you, looks good to me! I will update you guys on the other issue and the frontend design soon :)