Completed order email cutting short content
-
I needed to add some extra text content to the Completed Order email, so I copied the customer-completed-order.php template into my theme folder and added the text. I have installed the WooCommerce Email Test plugin and it shows the email looking great (when previewed in a browser) but when the actual email is received, half the text is missing.
Content of customer-completed-order.php included below; what am I doing wrong?
‘<?php
/**
* Customer completed order email
*
* This template can be overridden by copying it to yourtheme/woocommerce/emails/customer-completed-order.php.
*
* HOWEVER, on occasion WooCommerce will need to update template files and you
* (the theme developer) will need to copy the new files to your theme to
* maintain compatibility. We try to do this as little as possible, but it does
* happen. When this occurs the version of the template file will be bumped and
* the readme will list any important changes.
*
* @see https://docs.woocommerce.com/document/template-structure/
* @author WooThemes
* @package WooCommerce/Templates/Emails
* @version 2.5.0
*/if ( ! defined( ‘ABSPATH’ ) ) {
exit;
}/**
* @hooked WC_Emails::email_header() Output the email header
*/
do_action( ‘woocommerce_email_header’, $email_heading, $email ); ?><p><?php printf( __( “This message is to confirm your place on the Eighteen Percent Grey Beginners Practical Workshop! Your order details are shown at the bottom of this email, for reference.”, ‘woocommerce’ ), get_option( ‘blogname’ ) ); ?></p>
<p><?php printf( __( “The workshop starts at 10am at Siddington Village Hall, Ashton Road, Siddington, Cirencester, GL7 6HD. Please use the side door on the right-hand side of the building.”, ‘woocommerce’ ), get_option( ‘blogname’ ) ); ?></p>
<p><?php printf( __( “Please bring your camera, PC cable and the camera manual if you have one. If you have extra lenses or a tripod, you may also find these useful but they aren’t a necessity.”, ‘woocommerce’ ), get_option( ‘blogname’ ) ); ?></p>
<p><?php printf( __( “There is plenty of free parking available at the hall (please don’t park in front of the main doors) or there is an overflow car park in front of the garages just up the road on the left. There are no parking restrictions in the village but please consider the residents by parking courteously.”, ‘woocommerce’ ), get_option( ‘blogname’ ) ); ?></p>
<p><?php printf( __( “Tea and coffee is available from 9:45 and some light refreshments will be provided for you in the afternoon break. Please feel free to bring some sandwiches if you would like something more to eat.”, ‘woocommerce’ ), get_option( ‘blogname’ ) ); ?></p>
<p><?php printf( __( “We would also recommend you bring suitable outdoor clothes and footwear as we will be taking a photographic walk in the afternoon and we can’t guarantee the weather unfortunately!”, ‘woocommerce’ ), get_option( ‘blogname’ ) ); ?></p>
<p><?php printf( __( “We look forward to seeing you at the workshop!”, ‘woocommerce’ ), get_option( ‘blogname’ ) ); ?></p><?php
/**
* @hooked WC_Emails::order_details() Shows the order details table.
* @hooked WC_Structured_Data::generate_order_data() Generates structured data.
* @hooked WC_Structured_Data::output_structured_data() Outputs structured data.
* @since 2.5.0
*/
do_action( ‘woocommerce_email_order_details’, $order, $sent_to_admin, $plain_text, $email );/**
* @hooked WC_Emails::order_meta() Shows order meta data.
*/
do_action( ‘woocommerce_email_order_meta’, $order, $sent_to_admin, $plain_text, $email );/**
* @hooked WC_Emails::email_footer() Output the email footer
*/
do_action( ‘woocommerce_email_footer’, $email );’The page I need help with: [log in to see the link]
- The topic ‘Completed order email cutting short content’ is closed to new replies.