• Great plugin! Hopefully can offer more options on email setting such as:
    – Allow visitor message to admin for approval first, instead of message to agents directly, whenever they’re on single-property detail page.
    – Can enable or disable the message function.

    Thx!

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author rameez_iqbal

    (@rameez_iqbal)

    Hi, Thanks for suggestions. We will consider this also in next release.

    For now you can use following action hooks to customize or disable emails.

    • rem_new_agent_register
    • rem_new_agent_approved
    • rem_new_agent_rejected

    Regards

    Thread Starter becalvin

    (@becalvin)

    Would you please advise how to use the hooks?

    Many thx!

    Plugin Author rameez_iqbal

    (@rameez_iqbal)

    Following url will help you on this
    https://docs.presscustomizr.com/article/26-wordpress-actions-filters-and-hooks-a-guide-for-non-developers

    For quick understanding, following code will send an email to specific address when an agent is registered (Paste following code in functions.php file of the theme)

    add_action( 'rem_new_agent_register' , 'send_email_admin_when_agent_registered', 10 , 1 );
    function send_email_admin_when_agent_registered( $new_agent ) {
     wp_mail( '[email protected]', 'Email Subject', 'Email Message');
    }

    on above example code, $new_agent is an array that contains all the information related to that registered user. You can use that info also.

    Regards

    Thread Starter becalvin

    (@becalvin)

    Thx!

    Just in case my point is not clear and would like to clarify.

    Over the single property web-page detail, there is a contact form on right side which enable visitor to message to agent in case he want to…. That’s the place I’d prefer message also cc to admin, or even direct to admin as backend for approval first. Or even allow admin to show or not show the message form.

    But anyway, think your hooks is the meanwhile solution. Anyway, I’m happy to have your next release soon. ^^

    Thread Starter becalvin

    (@becalvin)

    So, could you also suggest the code for me to paste in function.php? Given I’d rather the message composed by visitor on single property page will direct to admin, instead to agent…

    Thx!

    • This reply was modified 7 years, 6 months ago by becalvin.
    • This reply was modified 7 years, 6 months ago by becalvin.
    • This reply was modified 7 years, 6 months ago by becalvin.
    • This reply was modified 7 years, 6 months ago by becalvin.
    Plugin Author rameez_iqbal

    (@rameez_iqbal)

    Hi, In plugin.class.php file of the plugin, on line 443, change following code
    $agent_email = $agent_info->user_email;
    into
    $agent_email = '[email protected]';

    I hope it will work.

    Regards

    Thread Starter becalvin

    (@becalvin)

    Super thamks! Will try it later.

    Can this be formatted to send to agent and also copy the admin?

    Plugin Author rameez_iqbal

    (@rameez_iqbal)

    Hi, I’m working on it.

    Will be available hopefully in two days.

    Regards

    I tried changing the email address as you said above and the entire plug in deactivated, I reactivated it right after? I did it twice?

    Plugin Author rameez_iqbal

    (@rameez_iqbal)

    Yes, you have to activate it again.

    Maybe I was doing something wrong?
    It would not let me re-activate it when I changed the email setting as you described?
    I will wait until you figure out how to cc the admin also. Let me know when that is ready. Thanks for all you help.

    $agent_email = ‘[email protected]’; — I am confused since I am not that techie.
    Should be be exactly as you wrote it above with the quotes ‘ or the actual email of the admin with or without the ‘ (quotes) ?

    Plugin Author rameez_iqbal

    (@rameez_iqbal)

    Maybe there is some php error, I’m releasing new version tomorrow and it will have this feature also.

    Thanks for your patience.

    Great! Will
    It also require a phone # ?

    Has the new version come out yet where I can have the agent emailed cc’d to the admin email also? Will it also REQUIRE a phone number to be included?

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘More options on email setting?’ is closed to new replies.