Viewing 11 replies - 1 through 11 (of 11 total)
  • Hi @aldodager, in your product email templates, there is a line of code that should look something like this

    $order->email_order_items_table();

    Replace it with this

    $order->email_order_items_table(true, true);

    if you want to show SKU for all.

    You should follow this documentation to override the email templates in right way.

    Thread Starter aldodager

    (@aldodager)

    Terry. Thank you for replying. Right now the code looks like this:

    <?php echo $order->email_order_items_table( false, true ); ?>

    I’ll change it to your recommendation:

    $order->email_order_items_table(true, true);

    Will reply as soon as I do some testing.

    Thank you again!

    Thread Starter aldodager

    (@aldodager)

    It worked like a charm. Thank you very much Terry!

    After upgrading WooCommerce from 2.4.12 to 2.5 this no longer works for me. Yesterday my order notifications to the admin included the SKU in parenthesis next to the product name, today is doesn’t. Any suggestions?

    Thread Starter aldodager

    (@aldodager)

    Maybe (and just maybe) the code is not there anymore. Sometimes when you update a plugin, the changes you did on the code are lost and replaced by the new files.

    I hadn’t made any code changes. In 2.4.12 the default is to append the SKU in parenthesis, in 2.5 it’s not. I’d love to find out how to revert to the “old” way in case I’d want to upgrade to 2.5 again.

    Jen

    (@brightestspark)

    Hello there – the SKU is indeed missing from the admin new order emails in wc 2.5. It was there in 2.4 and all versions previously. We rely on this to pack our orders. Whose bright idea was it to remove it? And how do we re-add it?

    We have no email template overrides or email plugins or customisations, just native WC settings.

    I would also support any updates as to how to add the SKU in with our product details – this is extremely important for my clients as they use the SKU to match quickly with our warehouse distribution systems.

    Previously we had a customised template, which now no longer works as the Woocommerce 2.5 update has overwritten it.

    I fixed this mess.
    For those of you who have updated, ftp into your site and find this file here
    /wp-content/plugins/woocommerce/templates/emails/email-order-details.php

    Half way down or so find: ‘show_sku’ => false,

    Change to true, and enjoy the rest of your lives.
    ??

    Annnnnd one day later. Woocommerce plugin update 5.2.1
    “Fix – Show SKU in admin emails.”

    I am on 5.2.1 and the SKU still isn’t showing up. I tried what you suggested dannyhack, and its not working. Any ideas?

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Add SKU on New order email’ is closed to new replies.