Support » Plugin: WooCommerce » Multiple Variant text in mail

  • Resolved amc11

    (@amc11)


    Hi,

    Im finding so much information within the order mail for
    products name two attributes are displayed.

    Is it possible to remove them?

    Thanks!

    • This topic was modified 1 year, 8 months ago by amc11.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Phil

    (@fullysupportedphil)

    Automattic Happiness Engineer

    I’m not sure what you mean by this. Are you able to share a screenshot showing what you are describing, please?

    Thread Starter amc11

    (@amc11)

    Well its simple under Product in the New Order email.
    It first says the title for bought product, then a “-” and then
    the attribute for picked variant, after that a break and
    then it says, in Swedish “Vara: attribute name”.

    I want to remove the part “Vara: xxxxxx”.

    • This reply was modified 1 year, 8 months ago by amc11.
    Phil

    (@fullysupportedphil)

    Automattic Happiness Engineer

    It sounds like this might be the Admin order confirmation that you are looking at, though the Vara: attribute name still is different.

    It could be that your theme or another plugin on your site is altering that formatting a bit. This is what it looks like by default:

    Admin order confirmation: https://d.pr/i/a4xnN8
    Customer order confirmation: https://d.pr/i/0FArgm

    In any case, regardless of what is changing the formating. If you want to adjust this, you’d have to edit your email template. You can either manually alter the code yourself if you are comfortable with that. Or you would need to find a third-party plugin that lets you design/edit your email templates.

    If you want to edit the code yourself, you can go to WooCommerce > Settings > Emails. On this page you’ll see all your email templates. Click on one to manage it and at the bottom of the page you’ll see the option to copy the template over to your theme. Do this, then navigate to that file and edit it in the way that you want.

    We have an article on our site about this process here:
    https://woocommerce.com/posts/how-to-customize-emails-in-woocommerce/

    As well, you can find the more technical guide here:
    https://docs.woocommerce.com/document/automated-follow-up-emails-docs/custom-email-templates/

    Thread Starter amc11

    (@amc11)

    Thanks for the amazing response!

    I went for css. I fixed it with the below code.

    function bbloomer_add_css_to_emails( $css, $email ) { 
       $css .= '
          .wc-item-meta { display:none; }
       ';
       return $css;
    }
    add_filter( 'woocommerce_email_styles', 'bbloomer_add_css_to_emails', 9999, 2 );
    • This reply was modified 1 year, 8 months ago by amc11.
    • This reply was modified 1 year, 8 months ago by amc11.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Multiple Variant text in mail’ is closed to new replies.