diff --git a/assets/js/frontend/property.js b/assets/js/frontend/property.js
index 5b0e895c..a5c19f05 100755
--- a/assets/js/frontend/property.js
+++ b/assets/js/frontend/property.js
@@ -120,7 +120,6 @@ window.opalestate_messages = function() {
function make_ajax ( data, _this ) {
$( '.opalestate-message-notify', _this ).remove();
var action = $( _this ).data('action')? $( _this ).data('action') : 'send_email_contact';
- console.log(action)
toggle_submit_button( _this );
$.ajax({
type : 'POST',
diff --git a/changelog.txt b/changelog.txt
index 737b2caf..4f7f20c9 100755
--- a/changelog.txt
+++ b/changelog.txt
@@ -1,3 +1,6 @@
+= 1.3.4 - 2020-02-21 =
+* Fixes - Enquire email & Contact email
+
= 1.3.3 - 2020-02-20 =
* Added - Required login to show Author box
* Added - Search field settings.
diff --git a/inc/class-opalestate-email.php b/inc/class-opalestate-email.php
index 1580b695..ac0c9572 100755
--- a/inc/class-opalestate-email.php
+++ b/inc/class-opalestate-email.php
@@ -73,6 +73,7 @@ class Opalestate_Emails {
*/
public static function send_notifycation( $content ) {
$mail = new OpalEstate_Send_Email_Notification();
+ $mail->set_type( $content );
$mail->set_args( $content );
$return = self::send_mail_now( $mail );
@@ -191,6 +192,51 @@ class Opalestate_Emails {
* render setting email fields with default values
*/
public static function setting_email_fields( $fields ) {
+ $enquire_list_tags = '
+
Use the following tags to automatically add property information to the emails. Tags labeled with an asterisk (*) can be used in the email subject as well.
+
+
+ {receive_name} Name of the agent who made the property
+
+
+
+ {property_name} Name of the property
+
+
+
+ {property_link} Link of the property
+
+
+
+ {property_edit_link} Link for editing of the property (admin)
+
+
+
+ {name} Name of the user who contact via email form
+
+
+
+ {email} Email of the user who contact via email form
+
+
+
+ {phone} Phone number of who sent via form
+
+
+
+ {message} Message content of who sent via form
+
+
+
+ {site_link} A link to this website
+
+
+
+ {current_time} Current date and time
+
+
+
';
+ $enquire_list_tags = apply_filters( 'opalestate_email_enquire_tags', $enquire_list_tags );
$contact_list_tags = '
Use the following tags to automatically add property information to the emails. Tags labeled with an asterisk (*) can be used in the email subject as well.
@@ -198,10 +244,6 @@ class Opalestate_Emails {
{receive_name} Name of the agent who made the property
-
-
- {property_link} Link of the property
-
';
+ $contact_list_tags = apply_filters( 'opalestate_email_contact_tags', $contact_list_tags );
$review_list_tags = '
Use the following tags to automatically add property information to the emails. Tags labeled with an asterisk (*) can be used in the email subject as well.
@@ -231,10 +278,18 @@ class Opalestate_Emails {
{receive_name} Name of the agent who made the property
+
+
+ {property_name} Name of the property
+
{property_link} Link of the property
+
+
+ {property_edit_link} Link for editing of the property (admin)
+
{name} Name of the user who contact via email form
@@ -244,12 +299,16 @@ class Opalestate_Emails {
{email} Email of the user who contact via email form
+
+ {schedule_date} Schedule date
+
+
{schedule_time} Schedule time
- {schedule_date} Schedule date
+ {phone} Phone number of who sent via form
@@ -265,12 +324,13 @@ class Opalestate_Emails {
';
+ $review_list_tags = apply_filters( 'opalestate_email_review_tags', $review_list_tags );
$list_tags = '
Use the following tags to automatically add property information to the emails. Tags labeled with an asterisk (*) can be used in the email subject as well.
- {property_name} Email of the user who made the property
+ {property_name} Name of the property
@@ -286,17 +346,13 @@ class Opalestate_Emails {
- {submitted_date} Email of the user who made the property
+ {submitted_date} Submitted date
- {user_name} * Name of the user who made the property
+ {user_name} Name of the user who made the property
-
- {date} * Date and time of the property
-
-
{site_name} The name of this website
@@ -304,7 +360,7 @@ class Opalestate_Emails {
{site_link} A link to this website
- {current_time} Current date and time
+ {current_time} Current date and time when email sent
';
$list_tags = apply_filters( 'opalestate_email_tags', $list_tags );
@@ -318,7 +374,7 @@ class Opalestate_Emails {
[
'name' => esc_html__( 'Email Settings', 'opalestate-pro' ),
'desc' => '