diff --git a/inc/template-hook-functions.php b/inc/template-hook-functions.php
index 8425c4f4..56bf6d48 100755
--- a/inc/template-hook-functions.php
+++ b/inc/template-hook-functions.php
@@ -219,7 +219,13 @@ add_action( 'opalestate_single_property_preview', 'opalestate_property_preview',
function opalestate_property_request_viewing_button( $islink = false ) {
$class = $islink ? 'btn-link' : 'btn btn-primary';
- echo '
' . esc_html__( 'Request Viewing', 'opalestate-pro' ) . '
';
@@ -254,6 +260,10 @@ add_action( 'opalestate_single_property_layout', 'opalestate_single_property_lay
* Forms
*/
function opalestate_property_request_view_form() {
+ if ( ! is_user_logged_in() ) {
+ return;
+ }
+
if ( ! is_single_property() ) {
return;
}
diff --git a/inc/vendors/opalmembership/membership.php b/inc/vendors/opalmembership/membership.php
index 5796386b..e64fa2d4 100755
--- a/inc/vendors/opalmembership/membership.php
+++ b/inc/vendors/opalmembership/membership.php
@@ -89,7 +89,7 @@ class OpalEstate_Membership {
add_action( 'opalmembership_dashboard_container_before', [ __CLASS__, 'check_membership_validation_message' ] );
// included logic functions
- require_once( 'free-package.php' );
+ // require_once( 'free-package.php' );
require_once( 'functions.php' );
add_action( 'opalmembership_current_package_summary_after', [ __CLASS__, 'render_membership_summary' ], 10, 2 );