Adding Custom Information to Mail

WPPizza – A Restaurant Plugin for WordPress Support General Support Adding Custom Information to Mail

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #17720
    emre
    Participant

      Hello, I need some help to customize the Ordermail sent to customer.
      I want to add in the top centered with my logo my company name.
      Also I want to add custom contact information on the bottom of the mail.
      Can someone do me a snippet or something else that i can include to my file?

      On the top with “Pizzeria Agusto” and bottom “Thank you for your order by Agusto. Contact us under 99999” Thank you!

      #17722
      Olly
      Admin & Mod

        use wppizza -> templates to add/use a drag and drop template, setting it to html format.

        logo: open the css section of that template and you’ll find site details -> table . the textbox underneath will have
        padding:30px;text-align:center;background-color:#21759B;color:#FFFFFF;
        in it by default. add your css background url declaration there to add your image

        bottom of the mail: just go to localisation and add / adjust the footer text (it’s labelled ” Order Email: Text you would like to display at the end of emails after everything else.” )

        #17723
        Olly
        Admin & Mod

          if you want to use the default template, use the filter
          wppizza_filter_html_email_style to set the image

          and set
          $htmlEmailStyle['mailHeaderBackgroundImage']

          to something like

          background:url('http://www.domain.com/logo.png') 10px 10px no-repeat;

          so – in full :

          
          add_filter('wppizza_filter_html_email_style', 'my_prefix_email_style');
          function my_prefix_email_style($htmlEmailStyle){
          $htmlEmailStyle['mailHeaderBackgroundImage'] = "background:url('http://www.domain.com/logo.png') 10px 10px no-repeat;";
          return $htmlEmailStyle;
          }
          

          see also: https://www.wp-pizza.com/topic/html-email-editing/

          footer text as above

        Viewing 3 posts - 1 through 3 (of 3 total)
        • The topic ‘Adding Custom Information to Mail’ is closed to new replies.