• Resolved Lawson Barker

    (@lawsonbarker)


    Hello, the email sent from the “Send Message” form on the advert page is quite bland / lacking in information,
    1. It doesn’t auto-populate the subject line (needs to be the title of the ad)
    2. It doesn’t pass on the logged in users name or username (needs to be in the body of the email)
    3. It doesn’t pass on the users email address (needs to be in the body of the email)

    Is there any way to add these features?

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi, yes this is possible, you can pass all of this information to the email using adverts_contact_form_email filter.

    Please see https://github.com/simpliko/wpadverts-snippets/blob/master/contact-form-email/contact-form-email.php for more details.

    Thread Starter Lawson Barker

    (@lawsonbarker)

    Yes, I installed that last night, made no difference

    Thread Starter Lawson Barker

    (@lawsonbarker)

    Sorry, correction, it puts the location and price at the bottom of the email, and also changes the subject to the name of the add, but does not insert the buyer name

    Thread Starter Lawson Barker

    (@lawsonbarker)

    Tried to add this

    $current_user = wp_get_current_user();

    and this

    $mail[“message”] .= wp_get_current_user( $current_user->display_name ). “\r\n”;

    throws an error “Object of class WP_User could not be converted to string”

    Plugin Author Greg Winiarski

    (@gwin)

    It should be

    
    $mail["message"] .= wp_get_current_user()->display_name. "\r\n";
    

    Greetings
    I’m facing the same
    I downloaded the plugin and activated but don’t know what is the next step
    but I’m getting the location and price which I already as owner know
    I need to include the sender email and name in the email supposing he is not a user and just a visitor
    can you help?

    Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    to pickup the name and email from contact form and add it at the end of the message in the contact_form_email() function add

    
    $mail["message"] .= "Name: " . $form->get_value( "message_name" ) . "\r\n";
    $mail["message"] .= "Email: " . $form->get_value( "message_email" ) . "\r\n";
    

    Thank you soo much, that works well
    I have another two things
    1- in mobile view, add new ad, I can’t see the browse button to upload images
    2- I’m using rtl, and most of my issues is resolved searching your support, but only the form of add new ad still aligned to left, and also the category list widget

    your responses are highly appreciated

    Plugin Author Greg Winiarski

    (@gwin)

    1,2. can you send links to pages where you have these problems?

    Plugin Author Greg Winiarski

    (@gwin)

    1. on your page i cannot see gallery button neither in desktop or mobile view, this is because for some reason you have a code for Google Ads inserted inside the gallery, i do not know where it is coming from but you should be able to hide it by adding the code below in your Additional CSS panel

    
    .adverts-gallery .thnew-content-middle {
        display: none !important;
    }
    

    2. the gallery and description fields you should be able to right align by adding the code below in Additional CSS

    
    .adverts-form.adverts-form-aligned .adverts-control-group > div,
    .adverts-field-name-post_content label,
    .adverts-field-name-gallery label,
    .adverts-field-name-advert_category label {
        float: right !important;
    }
    .wpjb.adverts-widget.adverts-widget-categories .adverts-grid-row {
        text-align: right;
        float: right;
    }
    

    That works fine
    thanks for your time and disturbing you under old topic

    New requests (if any) will be as new topics

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Send Message form’ is closed to new replies.