• Resolved matt-thomas-photography

    (@mattthomas-photography)


    Why since V7.0.0 have you added this to all customer emails when a new order has been processed

    “Process your orders on the go. Get the app”

    Wasn’t there till the latest update! So looks like it’s been injected into the shop emails from a function. I’d rather not use Jetpack and slow down the site so please let me know where to remove this

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter matt-thomas-photography

    (@mattthomas-photography)

    Just been having a look and it’s related to this new file

    woocommerce/templates/emails/email-mobile-messaging.php

    Looking on the GitHub is something new

    https://github.com/woocommerce/woocommerce/pull/34717

    How can this be removed

    Plugin Author Corey McKrill

    (@coreymckrill)

    I think you could unhook the function that adds that with a PHP code snippet:

    /**
     * Disable messages about the mobile apps in WooCommerce emails.
     * https://wordpress.org/support/topic/remove-process-your-orders-on-the-go-get-the-app/
     */
    function mtp_disable_mobile_messaging( $mailer ) {
        remove_action( 'woocommerce_email_footer', array( $mailer()->emails['WC_Email_New_Order'], 'mobile_messaging' ), 9 );
    }
    add_action( 'woocommerce_email', 'mtp_disable_mobile_messaging' );
    Thread Starter matt-thomas-photography

    (@mattthomas-photography)

    Nope doesn’t work just have an error message when trying to use that code

    Just very very poor service of Woo forcing that on stores. Should be a way to turn it off not have it appear with a UTM tracking link behind it for a campaign especially when this is going to be for everyone who doesn’t have Jetpack installed (personally no need for the plug-in)

    Plugin Author Corey McKrill

    (@coreymckrill)

    Shoot, sorry, there was a typo in the code snippet. This one should work:

    /**
     * Disable messages about the mobile apps in WooCommerce emails.
     * https://wordpress.org/support/topic/remove-process-your-orders-on-the-go-get-the-app/
     */
    function mtp_disable_mobile_messaging( $mailer ) {
        remove_action( 'woocommerce_email_footer', array( $mailer->emails['WC_Email_New_Order'], 'mobile_messaging' ), 9 );
    }
    add_action( 'woocommerce_email', 'mtp_disable_mobile_messaging' );

    (Just remove the () after $mailer.)

    Thread Starter matt-thomas-photography

    (@mattthomas-photography)

    @coreymckrill that one above seems to work. Thank you

    I’m just more concerned about the reasoning for this being added with no explanation or quick way to remove without function code or copying to the child theme of the site

    Hi @mattthomas-photography — the link was added to merchant-facing emails, not customer emails; we had a bug during development that was fixed before release where the link showed up in customer emails as well.

    The reason it was added is pretty simple — the mobile app is a key part of managing a Woo store for many merchants, and we’ve seen and heard a ton of feedback that more merchants would use it if they even knew it existed. This felt like a great contextual place to make sure they know about it, and get started easily.

    Thread Starter matt-thomas-photography

    (@mattthomas-photography)

    @beaulebens I know it’s only on merchant emails as that was the first thing I checked to make sure the customer didn’t see this as well!! I’ve spent time designing a custom email for my site and then seeing this just “appear” was extremely frustrating and disappointing from a user perspective

    I know about the jetpack and Woo app however for my store it was my choice to not install to not have one feature of Jetpack enabled and bloat the rest of the site. Also the fact it’ll be appear on EVERY new email again and again. Then what about the fact in the UTM tracking code you are pulling the URL of each site that has clicked the link, what are you doing with the analytics after?

    Having something within the WordPress admin would be better rather than on the emails personally!! Especially when it can’t be turned off without coding or adding the file to your sites child theme
    @coreymckrill

    Plugin Support Ilia .a11n

    (@iliadio)

    I will now mark this thread as solved, since the snippet recommended above should remove the message.

    @prmda Community members or one of our support engineers will get back to you on the separate thread you opened.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Remove “ Process your orders on the go. Get the app”’ is closed to new replies.