Popup contact form - by Darja - on WordPress WooCommerce support

This topic has 4 replies, 3 voices, and was last updated 6 years, 8 months ago ago by Olga Barlow

  • Avatar: Darja
    Darja
    Participant
    March 27, 2019 at 10:06

    Hello,

    We would like to add the contact button that when clicked would have a popup with a contact form on product pages. Is there a possibility to do that?

    Thank you for the support

    Please, contact administrator
    for this information.
    3 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 27, 2019 at 10:30

    Hello,

    You can use a hook in function.php of child-theme to add the button https://businessbloomer.com/woocommerce-visual-hook-guide-single-product-page/
    For example, add a button that calls this “Popup content” http://prntscr.com/n3j5pq
    http://prntscr.com/n3j8ze

    add_action( 'woocommerce_share', 'contact_us_custom_action', 5 );
     
    function contact_us_custom_action() {
        echo '<div class="custom-contact-popup"><a href="#etheme-popup-holder" class="etheme-popup">Contact us</a></div>';
    }

    custom CSS code –

    .custom-contact-popup {
        margin-bottom: 8px;
    }
    .custom-contact-popup a {
        background-color:  green;
        padding: 5px 10px;
        color:  white;
    }

    Or you can try to use an additional plugin (we do not provide support for 3rd party plugins).

    Regards

    Avatar: Darja
    Darja
    Participant
    March 27, 2019 at 12:16

    Hello,

    It worked perfectly, thank you for your support.

    Avatar: Olga Barlow
    Olga Barlow
    Participant
    March 27, 2019 at 12:30

    You are welcome!

    Regards

  • Viewing 4 results - 1 through 4 (of 4 total)

The issue related to '‘Popup contact form’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.