WPPizza – A Restaurant Plugin for WordPress › Support › General Support › Adding Custom Information to Mail
- AuthorPosts
- 28 April, 2016 at 5:32 pm #17720
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!
28 April, 2016 at 6:01 pm #17722use 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 imagebottom 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.” )
28 April, 2016 at 6:06 pm #17723if you want to use the default template, use the filter
wppizza_filter_html_email_style to set the imageand 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
- AuthorPosts
- The topic ‘Adding Custom Information to Mail’ is closed to new replies.