Title: Trouble with WPForms
Last modified: December 12, 2025

---

# Trouble with WPForms

 *  [1stsol](https://wordpress.org/support/users/1stsol/)
 * (@1stsol)
 * [6 months ago](https://wordpress.org/support/topic/trouble-with-wpforms/)
 * Hi,
   I have a problem with an WPForms formular an the output in the email. If 
   I deactivate your plugin, the output in the email is correct.I use the {order_summary}
   of wpforms.The Email shows “no products have been selected” (in german: Es sind
   keine Produkte ausgewählt). After that, the choosen products are listed. If I
   deactivate your plugin, the message will not shown in the email.Do you have an
   idea?[https://wordpress.org/support/topic/no-products-have-been-selected-instead-products-are-selected/#post-18753255](https://wordpress.org/support/topic/no-products-have-been-selected-instead-products-are-selected/#post-18753255)

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Thread Starter [1stsol](https://wordpress.org/support/users/1stsol/)
 * (@1stsol)
 * [5 months, 4 weeks ago](https://wordpress.org/support/topic/trouble-with-wpforms/#post-18755698)
 * Hi,
   I added some code to the function.php, generated by chatgpt.
 *     ```wp-block-code
       add_filter( 'wp_mail', function ( $args ) {    if ( isset( $args['message'] ) && strpos( $args['message'], 'Produkte ausgewählt' ) !== false ) {        $args['message'] = preg_replace(            '/<[^>]*>?\s*Es sind keine Produkte ausgewählt\.?\s*<\/[^>]*>/i',            '',            $args['message']        );    }    return $args;});
       ```
   
 * WP HTML Mail – Email Template Designer processes the email body before WPForms
   smart tags like `{order_summary}` are fully rendered, causing WPForms to fall
   back to the “no products selected” message even when products exist.
 *  Plugin Author [Hannes Etzelstorfer](https://wordpress.org/support/users/haet/)
 * (@haet)
 * [5 months, 4 weeks ago](https://wordpress.org/support/topic/trouble-with-wpforms/#post-18756117)
 * Hi [@1stsol](https://wordpress.org/support/users/1stsol/) 
   really strange behaviour…
   this message is not part of our plugin. Do you use any custom code related to
   your emails (except the snippet above)?Where does the term “product” come from?
   Do you use WooCommerce or any other Shop plugin?
 * best regards, Hannes
 *  Thread Starter [1stsol](https://wordpress.org/support/users/1stsol/)
 * (@1stsol)
 * [5 months, 4 weeks ago](https://wordpress.org/support/topic/trouble-with-wpforms/#post-18756142)
 * [@haet](https://wordpress.org/support/users/haet/) 
   I testet other E-Mail Template
   Plugins; the message don’t come.The term comes from WPForms – in the frontend
   only, if no articles are selected. It is just a form without any payment actions
   or something like that.
 *  Thread Starter [1stsol](https://wordpress.org/support/users/1stsol/)
 * (@1stsol)
 * [5 months, 4 weeks ago](https://wordpress.org/support/topic/trouble-with-wpforms/#post-18756214)
 * [@haet](https://wordpress.org/support/users/haet/) 
   I can give you access to 
   the dev environment. there you can test and see it 🙂
 *  Plugin Author [Hannes Etzelstorfer](https://wordpress.org/support/users/haet/)
 * (@haet)
 * [5 months, 4 weeks ago](https://wordpress.org/support/topic/trouble-with-wpforms/#post-18756534)
 * We have an extension for WP Forms. Please try ist and let me know the result:
   
   [https://drive.google.com/file/d/1WxaJym7jRh3A4Hph0-I6abN504gHysOs/view?usp=sharing](https://drive.google.com/file/d/1WxaJym7jRh3A4Hph0-I6abN504gHysOs/view?usp=sharing)
 *  Thread Starter [1stsol](https://wordpress.org/support/users/1stsol/)
 * (@1stsol)
 * [5 months, 4 weeks ago](https://wordpress.org/support/topic/trouble-with-wpforms/#post-18756562)
 * Hi [@haet](https://wordpress.org/support/users/haet/) 
   sorry – doesn’t work.The
   result – lot’s of more space between header and body.
 * ![](https://i0.wp.com/marlus.1st-sol.de/marlus_email.png?ssl=1)
 *  Thread Starter [1stsol](https://wordpress.org/support/users/1stsol/)
 * (@1stsol)
 * [5 months, 3 weeks ago](https://wordpress.org/support/topic/trouble-with-wpforms/#post-18761803)
 * [@haet](https://wordpress.org/support/users/haet/)
 * Do you have any other solutions?
 *  Plugin Support [Julian](https://wordpress.org/support/users/juliangk/)
 * (@juliangk)
 * [5 months, 3 weeks ago](https://wordpress.org/support/topic/trouble-with-wpforms/#post-18761857)
 * [@1stsol](https://wordpress.org/support/users/1stsol/) 
   What kind of shop system
   or plugin are you using?
 * Best regards
   Julian
 *  Thread Starter [1stsol](https://wordpress.org/support/users/1stsol/)
 * (@1stsol)
 * [5 months, 3 weeks ago](https://wordpress.org/support/topic/trouble-with-wpforms/#post-18761879)
 * Hi [@juliangk](https://wordpress.org/support/users/juliangk/) 
   in this case I
   use WPForms for the message.In this website is WooCommerce installed, also.
 *  Plugin Support [Julian](https://wordpress.org/support/users/juliangk/)
 * (@juliangk)
 * [5 months, 2 weeks ago](https://wordpress.org/support/topic/trouble-with-wpforms/page/2/#post-18765212)
 * [@1stsol](https://wordpress.org/support/users/1stsol/) 
   can you please email 
   us to support(at)codemiq.com and refer to this thread.best regardsJulian

Viewing 10 replies - 1 through 10 (of 10 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ftrouble-with-wpforms%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/wp-html-mail/assets/icon-256x256.png?rev=1730334)
 * [Email Template Designer - WP HTML Mail](https://wordpress.org/plugins/wp-html-mail/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-html-mail/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-html-mail/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-html-mail/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-html-mail/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-html-mail/reviews/)

 * 16 replies
 * 3 participants
 * Last reply from: [Julian](https://wordpress.org/support/users/juliangk/)
 * Last activity: [5 months, 2 weeks ago](https://wordpress.org/support/topic/trouble-with-wpforms/page/2/#post-18765212)
 * Status: not resolved