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

Energy certificate data on detail pages #718

Closed fredericalpers closed 2 months ago

fredericalpers commented 8 months ago

Initiative

Improve the onOffice for WP-Websites plugin usability

Epic

Add energy certificate fields automatically to new detail page

User story

As a real estate agent operating within the European Union, I am obligated by law to provide specific energy certificate information for each property listing on my website. However, the onOffice for WP-Websites Plugin currently lacks the feature to automatically add the mandatory fields when setting up a new detail page. To ensure compliance with regulations and streamline the property listing process, I propose the automatic inclusion of these fields during the creation of a new detail page.

The absence of automatic inclusion for mandatory fields during the setup of a new detail page results in additional manual work fpr real estate agents and increases the risk of overlooking essential information required by EU regulations. To address this, the onOffice Plugin should automatically add those required fields upon setting up a new detail page.

Tasks

By automating the addition of mandatory fields for new detail pages, the onOffice for WP-Websites Plugin can significantly reduce workload for real estate agents, ensure compliance with EU regulations and enhance the efficiency of the property listing process.

Energy certificate mandatory fields

Details

| DE / Germany and rest of EU | |--------| | the type of certificate (energieausweistyp) | | the final energy rating of the property in kWh/m²a (endenergiebedarf and energieverbrauchskennwert) | | the (main) energy source for heating (energietraeger) | | the year of construction of the building (baujahr) | | the efficiency class of the property (energyClass) | | the level of CO2 emissions of the building for newly issued energy performance certificates after 01.05.2021 (co2ausstoss and co2_Emissionsklasse) |

| AT / Austria| |--------| | Heating requirement - HWB (ea_hwb_at) | | the final energy rating of the property in kWh/m²a (ea_hwb_klasse_at) | | the (main) energy source for heating (energietraeger) | | the year of construction of the building (baujahr) | | the efficiency class of the property (ea_fgee_klasse_at and ea_fgee_at)| | the level of CO2 emissions of the building for newly issued energy performance certificates after 01.05.2021 (co2ausstoss and co2_Emissionsklasse) |

| ITA / Italy| |--------| | the type of certificate (energieausweistyp) | | the final energy rating of the property in kWh/m²a for Residential properties and in kWh/m³a for Commercial properties (endenergiebedarf and energieverbrauchskennwert) | | the (main) energy source for heating (energietraeger) | | the year of construction of the building (baujahr) | | the efficiency class of the property (energyClass) | | the level of CO2 emissions of the building for newly issued energy performance certificates after 01.05.2021 (co2ausstoss and co2_Emissionsklasse) |

dai-eastgate commented 8 months ago

@fredericalpers Currently, I am using Settings "Site Language" of WordPress to determine the country for the user who uses the plugin. => Can automate the addition of mandatory fields for new detail pages for each country.

https://github.com/onOffice-Web-Org/oo-wp-plugin/assets/106214469/93aa092b-3906-4629-ba30-54a68ecc4c2d

Note: If the user uses multilingual plugins (ex: WPML, Polylang) => Settings "Site Language" of WordPress will be disabled. Do we need to cover this feature when users use multilingual plugins?

fredericalpers commented 8 months ago

@dai-eastgate please go ahead and implement it for the site language setting.

The various fields are only available anyway if onOffice enterprise is set to the respective language or if they are specifically activated within onOffice enterprise. E.G. HWB (ea_hwb_at) for Austria will only be available if onOffice enterprise is set to German (Austria) and not available when set to German (Germany) or Italian.

dai-eastgate commented 8 months ago

@fredericalpers I got it.

dai-eastgate commented 8 months ago

@fredericalpers I have implemented for the site language setting. Please watch my video demo and let me know your opinions. Thanks! https://files.fm/u/xhrhgjcbdj#/view/dz867dx3x3

fredericalpers commented 8 months ago

@dai-eastgate looks good to me! thank you :) is this ready to be labeled as in review?

dai-eastgate commented 8 months ago

@dai-eastgate looks good to me! thank you :) is this ready to be labeled as in review?

Yes, please help us to review.