{"id":81571,"date":"2015-05-27T22:44:32","date_gmt":"2015-05-27T20:44:32","guid":{"rendered":"https:\/\/nl.wordpress.org\/support\/topic\/tekst-e-mail-aanpassen-bij-bestelling-woocommerce\/"},"modified":"2016-08-05T02:11:32","modified_gmt":"2016-08-05T02:11:32","slug":"tekst-e-mail-aanpassen-bij-bestelling-woocommerce","status":"closed","type":"topic","link":"https:\/\/nl.wordpress.org\/support\/topic\/tekst-e-mail-aanpassen-bij-bestelling-woocommerce\/","title":{"rendered":"Tekst e-mail aanpassen bij bestelling Woocommerce"},"content":{"rendered":"<p>Hallo,<\/p>\n<p>Ik ben bezig met de bouw van een webshop dmv woocommerce met het Kidshop Template. http:\/\/www.yithemes.com\/live\/?theme=kidshop<\/p>\n<p>Nu wil ik de mails die verzonden worden naar de klant wijzigen van u naar je. Wanneer ik dit probeer zie ik alleen maar css code staan ipv tekst. Waar kan ik de opmaak van de mail wijzigen?<\/p>\n<p>In het PHP bestand zie ik dit staan&#8230;<br \/>\nWaar ik de tekst kan wijzigen, geen idee. Tips?<br \/>\nBedankt!<\/p>\n<p>?&gt;<\/p>\n<p>&lt;?php do_action( &#8216;woocommerce_email_header&#8217;, $email_heading ); ?&gt;<\/p>\n<p>&lt;p&gt;&lt;?php printf( __( &#8216;You have received an order from %s. The order is as follows:&#8217;, &#8216;woocommerce&#8217; ), $order-&gt;billing_first_name . &#8216; &#8216; . $order-&gt;billing_last_name ); ?&gt;&lt;\/p&gt;<\/p>\n<p>&lt;?php do_action( &#8216;woocommerce_email_before_order_table&#8217;, $order, true, false ); ?&gt;<\/p>\n<p>&lt;h2&gt;<a>id . &#8216;&amp;action=edit&#8217; ); ?&gt;&#8221;&gt;&lt;?php printf( __( &#8216;Order #%s&#8217;, &#8216;woocommerce&#8217;), $order-&gt;get_order_number() ); ?&gt;<\/a> (&lt;?php printf( &#8216;&lt;time datetime=&#8221;%s&#8221;&gt;%s&lt;\/time&gt;&#8217;, date_i18n( &#8216;c&#8217;, strtotime( $order-&gt;order_date ) ), date_i18n( wc_date_format(), strtotime( $order-&gt;order_date ) ) ); ?&gt;)&lt;\/h2&gt;<\/p>\n<p>&lt;table cellspacing=&#8221;0&#8243; cellpadding=&#8221;6&#8243; style=&#8221;width: 100%; border: 1px solid #eee;&#8221; border=&#8221;1&#8243; bordercolor=&#8221;#eee&#8221;&gt;<br \/>\n\t&lt;thead&gt;<br \/>\n\t\t&lt;tr&gt;<br \/>\n\t\t\t&lt;th scope=&#8221;col&#8221; style=&#8221;text-align:left; border: 1px solid #eee;&#8221;&gt;&lt;?php _e( &#8216;Product&#8217;, &#8216;woocommerce&#8217; ); ?&gt;&lt;\/th&gt;<br \/>\n\t\t\t&lt;th scope=&#8221;col&#8221; style=&#8221;text-align:left; border: 1px solid #eee;&#8221;&gt;&lt;?php _e( &#8216;Quantity&#8217;, &#8216;woocommerce&#8217; ); ?&gt;&lt;\/th&gt;<br \/>\n\t\t\t&lt;th scope=&#8221;col&#8221; style=&#8221;text-align:left; border: 1px solid #eee;&#8221;&gt;&lt;?php _e( &#8216;Price&#8217;, &#8216;woocommerce&#8217; ); ?&gt;&lt;\/th&gt;<br \/>\n\t\t&lt;\/tr&gt;<br \/>\n\t&lt;\/thead&gt;<br \/>\n\t&lt;tbody&gt;<br \/>\n\t\t&lt;?php echo $order-&gt;email_order_items_table( false, true ); ?&gt;<br \/>\n\t&lt;\/tbody&gt;<br \/>\n\t&lt;tfoot&gt;<br \/>\n\t\t&lt;?php<br \/>\n\t\t\tif ( $totals = $order-&gt;get_order_item_totals() ) {<br \/>\n\t\t\t\t$i = 0;<br \/>\n\t\t\t\tforeach ( $totals as $total ) {<br \/>\n\t\t\t\t\t$i++;<br \/>\n\t\t\t\t\t?&gt;&lt;tr&gt;<br \/>\n\t\t\t\t\t\t&lt;th scope=&#8221;row&#8221; colspan=&#8221;2&#8243; style=&#8221;text-align:left; border: 1px solid #eee; &lt;?php if ( $i == 1 ) echo &#8216;border-top-width: 4px;&#8217;; ?&gt;&#8221;&gt;&lt;?php echo $total[&#8216;label&#8217;]; ?&gt;&lt;\/th&gt;<br \/>\n\t\t\t\t\t\t&lt;td style=&#8221;text-align:left; border: 1px solid #eee; &lt;?php if ( $i == 1 ) echo &#8216;border-top-width: 4px;&#8217;; ?&gt;&#8221;&gt;&lt;?php echo $total[&#8216;value&#8217;]; ?&gt;&lt;\/td&gt;<br \/>\n\t\t\t\t\t&lt;\/tr&gt;&lt;?php<br \/>\n\t\t\t\t}<br \/>\n\t\t\t}<br \/>\n\t\t?&gt;<br \/>\n\t&lt;\/tfoot&gt;<br \/>\n&lt;\/table&gt;<\/p>\n<p>&lt;?php do_action( &#8216;woocommerce_email_after_order_table&#8217;, $order, true, false ); ?&gt;<\/p>\n<p>&lt;?php do_action( &#8216;woocommerce_email_order_meta&#8217;, $order, true, false ); ?&gt;<\/p>\n<p>&lt;?php do_action( &#8216;woocommerce_email_customer_details&#8217;, $order, $sent_to_admin, $plain_text ); ?&gt;<\/p>\n<p>&lt;?php do_action( &#8216;woocommerce_email_footer&#8217; ); ?&gt;<\/p>\n","protected":false},"template":"","class_list":["post-81571","topic","type-topic","status-closed","hentry","topic-tag-email","topic-tag-woocommerce"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/nl.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/81571","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nl.wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/nl.wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/nl.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/81571\/revisions"}],"wp:attachment":[{"href":"https:\/\/nl.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=81571"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}