If you’re running a WooCommerce store, you’ve probably noticed that the packing slips that come with your orders aren’t very customizable. Maybe you want to add your company logo, change the colors, or add some custom text. Luckily, there are a few ways to customize your packing slips in WooCommerce.
One way to customize your packing slips is to use a plugin. There are a few plugins that allow you to customize your packing slips, and they vary in terms of features and price. One plugin that we recommend is WooCommerce Packing Slips. This plugin is free and allows you to add your company logo, change the colors, and add custom text.
If you don’t want to use a plugin, you can also customize your packing slips by editing the template files. This is a bit more technical, but it’s not difficult to do. You can find the template files in the /wp-content/plugins/woocommerce/templates/
directory. The two files you need to edit are packing-slip.php
and email-order-items.php
. We recommend creating a child theme before editing these files so that your changes aren’t lost when you update WooCommerce.
Once you’ve found the template files, you can make any changes you want. For example, you can add your company logo by adding this code to the packing-slip.php
file:
<?php echo '<?php' ?>
if ( $order->has_status( 'shipped' ) ) {
$logo = get_option( 'woocommerce_email_header_image' );
if ( $logo ) {
echo '<img src="' . esc_url( $logo ) . '"
alt="' . get_bloginfo( 'name', 'display' ) . '" />';
} else {
echo get_bloginfo( 'name', 'display' );
}
}?>
You can also change the colors and add custom text by editing the CSS in the packing-slip.php
file. Just find the CSS that controls the color and font settings and make your changes.
Making these changes will require some knowledge of HTML and CSS, but if you’re not comfortable making these changes yourself, you can always hire a developer to help you out.
Conclusion:
In conclusion, there are a few ways that you can go about customizing your packing slip in WooCommerce. You can either use a plugin or edit the template files yourself. If you choose to edit the template files, we recommend creating a child theme first so that your changes aren’t lost when you update WooCommerce.