Support » Plugin: WooCommerce » Change postion of WooCommerce quantity position in admin email

  • Resolved surdusvacca


    Hi all,

    I have created a site with wordpress for my friend who owns a restaurant.
    For online ordering, I use WooCommerce.

    Everything has went fine for a couple of months, but now he wants to have something changed because the kitchen is making too many mistakes because of how the order is printed.

    I have done it like this:

    – The restaurant has a pc running with outlook installed

    – An Epson Thermal printer connected to router and prints automatically what customers is ordering because of outlook rule for auto printing

    – Admin email is changed to PLAIN text, which makes it look nice on a thermal printer

    And here is my question..
    I want to change the position of how many things a customer is ordering, you know, the quantity.

    As it is right now, the first you see is:

    Name of the product, and then X quantity.
    I need: Quantity X name of the product.

    Because the ‘X’ is pretty much at the end of the line, kitchen staff does not always see if a customer orders 2 times a pizza instead of 1.

    Basically I need to move ‘X’ before name of the product so it looks like fx:

    3 x 14 Hawaii = 200 DKK

    I have uploaded a picture to imgur to show you what it looks like now:

    I hope you understand what I mean..

    All the best

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support kellymetal


    Hi there Surdusvacca,

    This would be possible by overriding the /woocommerce/templates/emails/plain/email-order-items.php file and changing the order that the parts of the line are printed.

    From line 33, you could change from

    echo apply_filters( 'woocommerce_order_item_name', $item->get_name(), $item, false );
    if ( $show_sku && $sku ) {
    	echo ' (#' . $sku . ')';
    echo ' X ' . apply_filters( 'woocommerce_email_order_item_quantity', $item->get_quantity(), $item );


    echo apply_filters( 'woocommerce_email_order_item_quantity', $item->get_quantity(), $item ) . ' X ';
    echo apply_filters( 'woocommerce_order_item_name', $item->get_name(), $item, false );
    if ( $show_sku && $sku ) {
    	echo ' (#' . $sku . ')';

    Basically changing from item_name X quantity to quantity X item_name.

    We have information about overriding template files via child themes here:

    I hope that helps!

    Plugin Support Jess L


    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.