{"id":2848,"date":"2023-01-09T20:52:22","date_gmt":"2023-01-09T19:52:22","guid":{"rendered":"https:\/\/nelkodev.com\/?p=2848"},"modified":"2024-06-03T17:26:20","modified_gmt":"2024-06-03T16:26:20","slug":"auto-imprimir-al-recibir-un-nuevo-pedido-con-woocommerce","status":"publish","type":"post","link":"https:\/\/nelkodev.com\/en\/blog\/auto-print-when-receiving-a-new-order-with-woocommerce\/","title":{"rendered":"Auto print on receipt of a new order with Woocommerce"},"content":{"rendered":"<p>Hello, on more than one occasion I have come across this question from many customers or users who have an online shop with <strong>Woocommerce<\/strong> and for some reason at some point they have seen the need to respond to the client from the email they receive from <strong>Woocommerce<\/strong> when a new order has been created.<\/p>\n<p>By default when <strong>Woocommerce<\/strong> sends the email to the store administrator when a new order has been placed, the response email if we use the reply function of our email client, is usually the same as the administrator <strong>Woocommerce<\/strong> (in this case the same address as the administrator or wordpress@yourdomain.com).<\/p>\n<p>This makes it impossible to respond to the client from the email itself, and it is necessary to access our intranet. <strong>Woocommerce<\/strong>, access the order and respond from the notifications section or from the customer&#039;s email address that appears in the order.<\/p>\n<p>If you have not yet thought about what this function can be used for, I give you several examples:<\/p>\n<ol>\n<li>You are a company that manages emails from a <strong>CRM<\/strong> and you want to respond to the client from your own <strong>CRM<\/strong> (you can&#039;t do it, because you don&#039;t have the client&#039;s email in the same email, you have to access <strong>Woocommerce<\/strong> or to the order panel of the <strong>CRM<\/strong> to access your email).<\/li>\n<li>You have a type of business that, out of habit, usually responds to emails from your mobile phone, and since you usually use the reply button on your email client, in this case you cannot do so either because once again you do not have the customer&#039;s email since <strong>Woocommerce<\/strong> does not provide it to you in this email.<\/li>\n<li>Do you have a type of business, for example a <strong>fast food<\/strong> o <strong>restaurant<\/strong> and you want to configure an auto-reply system in your email client to be able to automatically reply to the customer when you have received a new order, with a <strong>e-mail<\/strong> for example: your order has been sent to the kitchen.<\/li>\n<\/ol>\n<p>In none of the previous options you can use the answer option, since <strong>Woocommerce<\/strong> By default, it does not send you the customer email as a response option in the new order email.<\/p>\n<p>That&#039;s why I have created a small plugin that works just by having it installed and activated, this plugin allows you without having to configure anything that <strong>Woocommerce<\/strong>, send you the customer&#039;s email as a response option in the new order email, this way you can respond from your <strong>CRM<\/strong>, email client or create auto-responder functions with filters when you receive emails about new orders <strong>Woocommerce<\/strong>.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_80 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #ffffff;color:#ffffff\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #ffffff;color:#ffffff\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewbox=\"0 0 24 24\" version=\"1.2\" baseprofile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/nelkodev.com\/en\/blog\/auto-print-when-receiving-a-new-order-with-woocommerce\/#Un_ejemplo_de_uso_real\" >An example of real use:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/nelkodev.com\/en\/blog\/auto-print-when-receiving-a-new-order-with-woocommerce\/#%C2%BFQue_necesitaba_el_cliente_exactamente\" >What exactly did the client need?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/nelkodev.com\/en\/blog\/auto-print-when-receiving-a-new-order-with-woocommerce\/#%C2%BFQue_se_hizo_para_solucionar_los_problemas\" >What was done to solve the problems?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/nelkodev.com\/en\/blog\/auto-print-when-receiving-a-new-order-with-woocommerce\/#Cosas_a_tener_en_cuenta\" >Things to keep in mind<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/nelkodev.com\/en\/blog\/auto-print-when-receiving-a-new-order-with-woocommerce\/#Conclusion_final\" >Final conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Un_ejemplo_de_uso_real\"><\/span>An example of real use:<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>In a client&#039;s cafeterias, a <strong>Woocommerce<\/strong> as an online store so that its customers can place orders for their <strong>pizzas, hamburgers, sandwiches<\/strong>, etc. and be able to send them to your home or for customers to pick them up at the store like Tele Pizza or any other store of this type.<\/p>\n<p>As there are several cafeterias from which orders are received but <strong>Woocommerce<\/strong> It does not allow you to create substores or filters for which cafeteria to send the email to depending on the options chosen by the client, it was decided to use the email client as an alternative thanks to many useful functions that were needed in the <strong>POS<\/strong> of the cafeterias.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%C2%BFQue_necesitaba_el_cliente_exactamente\"><\/span>What exactly did the client need?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ol>\n<li>Being able to receive the new order email in the corresponding email account that you used in all the <strong>POS<\/strong> and your own cell phone to be able to <strong>monitor<\/strong> orders at all times.<\/li>\n<li>That orders could be printed when received through the printer <strong>TICKET<\/strong> from the coffee shop.<\/li>\n<li><strong>That when the TICKET was printed, an automatic email could be sent to the customer indicating that their order was being prepared (don&#039;t forget that the orders were to prepare orders for food at home or for local pickup)<\/strong><\/li>\n<\/ol>\n<h2><span class=\"ez-toc-section\" id=\"%C2%BFQue_se_hizo_para_solucionar_los_problemas\"><\/span>What was done to solve the problems?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ol>\n<li>I chose to install the email client <a href=\"https:\/\/www.thunderbird.net\/es-ES\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Mozilla Thunderbird<\/a>, since the use of email was a priority and <a href=\"https:\/\/www.thunderbird.net\/es-ES\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Thunderbird<\/a> allows us to use extra functions to use in the cafeteria equipment (since <strong>Woocommerce<\/strong> It is on an Online server and does not have access to the computer, so it cannot interact with operating system functions).<\/li>\n<li>The complete one was installed <a href=\"https:\/\/addons.thunderbird.net\/es\/thunderbird\/addon\/filtaquilla\/?src=search\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Filtaquilla<\/a> for <a href=\"https:\/\/www.thunderbird.net\/es-ES\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Thunderbird<\/a>, this plugin allows us to use special filtering functions such as sending an email to print automatically, running a computer program, even playing an alert sound when an email is received.<\/li>\n<li>The plugin is installed <a href=\"https:\/\/addons.thunderbird.net\/es\/thunderbird\/addon\/printingtools\/?src=search\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">PrintingTools<\/a> of <a href=\"https:\/\/www.thunderbird.net\/es-ES\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Thunderbird<\/a> to be able to make settings in the way you print <a href=\"https:\/\/www.thunderbird.net\/es-ES\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Thunderbird<\/a>, such as the list of printers not appearing, this way we can print directly without dialogue or human interaction (remember that this entire process has to be carried out automatically).<\/li>\n<li>The filter configuration was made that allows <a href=\"https:\/\/www.thunderbird.net\/es-ES\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Thunderbird<\/a> to select emails with the subject \u201c<strong>new order<\/strong>\u201c, and that the content of the emails had texts related to the methods of sending <strong>Woocommerce<\/strong>, in this case the shipping methods were: <strong>Pick up at XXX cafeteria, Pick up at OOO cafeteria, Home Service<\/strong>.<\/li>\n<li>Configurations and previews of the emails were also carried out before being printed to make test prints and see that everything worked well.<\/li>\n<li>The new order email was set to Text Only in the email settings. <strong>Woocommerce<\/strong>, since printers <strong>TICKET<\/strong> They usually have problems printing colors, images or even tables, it is best to print texts.<\/li>\n<li>An email template was configured to be able to respond to the client automatically once the email was sent. <strong>TICKET<\/strong> to the printer, this is configured in the same filter options, looking like this:<br \/>\n<strong>=&gt; The subject contains \u201cnew order\u201d =&gt; The body of the message contains \u201ccoffee shop\u201d, \u201cpick up\u201d, \u201ccoffee shop name\u201d =&gt; print email =&gt; reply to the customer using the template we had previously created with the message \u201c Your order is being prepared right now, in 40 minutes we will be at your house.\u201d<\/strong><\/li>\n<li><em>He created the <strong>plugin<\/strong> for <strong>Woocommerce<\/strong> that allows you to send the customer&#039;s email as a reply option in the email to be able to use the automatic reply option in the filters <a href=\"https:\/\/www.thunderbird.net\/es-ES\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Thunderbird<\/a>.<\/em><\/li>\n<\/ol>\n<h2><span class=\"ez-toc-section\" id=\"Cosas_a_tener_en_cuenta\"><\/span>Things to keep in mind<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The printers <strong>TICKET<\/strong> On many computers they are usually configured with the <strong>drivers<\/strong> generic <strong>Windows<\/strong>, as<strong> Generic \/ Text Only,<\/strong> but for what <a href=\"https:\/\/www.thunderbird.net\/es-ES\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Thunderbird<\/a> can print without problems, it is necessary to install the printers <strong>TICKET<\/strong> with his <strong>drivers<\/strong> original so you can create the correct print formats for the correct paper size, as well as enable all printer options.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Conclusion_final\"><\/span>Final conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The choice to use <a href=\"https:\/\/www.thunderbird.net\/es-ES\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Thunderbird<\/a> as an email client was due to its additional plugins, since they allow you to use special functions within the computer, including running other programs or <strong>script<\/strong> that can be created (imagination is power).<\/p>\n<p>Surely the system can be created or carried out in another way, but since it was required to use email as the main part of usability and control, other systems, perhaps more complex such as a <strong>plugins<\/strong> of <strong>websocket<\/strong> to communicate with cafeteria teams or similar things.<\/p>","protected":false},"excerpt":{"rendered":"<p>Hello, on more than one occasion I have come across this question from many clients or users who have an online store with Woocommerce and for some reason at some point they have found themselves in the need to respond to the client from the email they receive from Woocommerce when a product has been created [\u2026]<\/p>","protected":false},"author":1,"featured_media":19387,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[420,26],"tags":[348,205,90,346,349,347,350,197,102],"class_list":["post-2848","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","category-wordpress","tag-auto","tag-blog","tag-con","tag-imprimir","tag-nuevo","tag-pedido","tag-recibir","tag-woocommerce","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/nelkodev.com\/en\/wp-json\/wp\/v2\/posts\/2848","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nelkodev.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nelkodev.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nelkodev.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nelkodev.com\/en\/wp-json\/wp\/v2\/comments?post=2848"}],"version-history":[{"count":0,"href":"https:\/\/nelkodev.com\/en\/wp-json\/wp\/v2\/posts\/2848\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nelkodev.com\/en\/wp-json\/wp\/v2\/media\/19387"}],"wp:attachment":[{"href":"https:\/\/nelkodev.com\/en\/wp-json\/wp\/v2\/media?parent=2848"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nelkodev.com\/en\/wp-json\/wp\/v2\/categories?post=2848"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nelkodev.com\/en\/wp-json\/wp\/v2\/tags?post=2848"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}