Forum Replies Created
- AuthorPosts
-
ok, that’s because you are using (I assume ?!) a gmail/googlemail, hotmail or yahoo address
none of these understand plaintext properly (not my fault – they used to , but not anymore. not the last time i checked anyway).
for instance plaintext is not displayed in those using monospaced fonts unless you jump through many hoops and it would ask too much of the average user to set this up. therefore plaintext email would look like a right old messtherefore the plugin forces html with the “pre” tags to make this legible. you will find that not using a gmail/hotmail/yahoo address will give you proper plaintext
alternatively there is also a filter that checks for those email addresses you could use to unset this behaviour for gmail
like so/* not tested as such but should work */ add_filter('wppizza_email_plaintext_to_webmail_domains', 'my_filter'); function my_filter($email_domains){ unset($email_domains[0]);//where 0 = @gmail. | 1 = @googlemail. | 2 = @outlook | 3 = @yahoo.| 4 =@hotmail. return $email_domains }
but if you send plaintext emails to customers that have gmail accounts and use that filter, they would get the same mess
sorry, but this will not be done, as the possible permutations are endless and make any sensible formatting that takes account of all of those permutations nigh on impossible
it actually also says so in the help screen of the admin opening times page under the “closed” tab
and in the docs https://docs.wp-pizza.com/shortcodes/?section=openingtimesthough I agree that it might be helpful to display this info in a few more places perhaps somewhere
did you “verify that the domain or address is defined for this server.”
test smtp emails simply use the default wp_mail from address (something like [email protected])
whereas “live” emails so to speak use the settings in wppizza->settings ->emailsi guess i should probably change this to be used for test emails too at some point.
as it is what it is at the moment, have you tried doing a test email with an actual test order ?PS: when you test it, it does not even use any saved parameters but directly what you have typed into the formfields
and also (just checking) are you using another SMTP plugin by any chance ?
have you used/run the test there (i assume we are talking about the smtp settings section in the wppizza plugin) ?
what does the output give you ?sorry, but I do not understand what ‘show closed times at opening times’ is supposed to do …
what exact html are you getting ?
sounds more like it’s not set to use SMTP in the first place (i can assure you the password does get saved)
a) you dont need any of the require(WPPIZZA_PATH.’classes/class.wppizza.order.php’); etc
this is wppizza v2 stuff
please see https://docs.wp-pizza.com/developers/?section=action-wppizza_on_order_execute
all details are in the $order_details parameters
b) i cannot tell you what else you need for your goodcom printer to work. i have no knowledge about it. you will have to refer to the manufacturer information(of course, if someone else reads this, has knowledge about it and wants to chime in, please go ahead)
may i draw your attention to the “closed times” and the help screen in wppizza->opening times
i can assure you, what’s private there is irrelevant . (essentially it says configure the printer following the user manual, to pull orders in “php mode””
its the original post that has the instructions
that said, that’s also based on wppizza v2 in v3 this would have to be based on this
https://docs.wp-pizza.com/developers/?section=action-wppizza_on_order_executetypically you would do this kind of thing with css/css-mediaqueries
but I suppose you could run some kind of device detection script and the filter the style variable using this filterhttps://docs.wp-pizza.com/developers/?section=filter-wppizza_filter_options
accordingly
in other words: you need to translate the plugin using the po files
works the same as here
https://docs.wp-pizza.com/faqs/?section=wppizza-in-other-languagesexcept it’s the subdirectory of the add ingredients plugin (obviously) and the po file you need to create is
wppizza_addingredients-de_DE.po reespectively>which file should I change
none
you should look at the shortcode attributes – especially the elements attribute
https://docs.wp-pizza.com/shortcodes/?section=by-categorylook at your console
Failed to load http://cp23.www1.dk/~peppesp/wp-admin/admin-ajax.php: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://www.peppes-pizza.dk’ is therefore not allowed access.
already doable with these filters / functions
https://docs.wp-pizza.com/developers/?section=filter-wppizza_filter_options
https://docs.wp-pizza.com/developers/?section=global-wppizza-functions
i.e somethimg along these linesadd_filter('wppizza_filter_options', 'my_prefix_my_options'); function my_prefix_my_options($wppizza_options){ /* on pickup , set your other closing times as you wish, below closes shop everyday at 9PM except on sunday where it will close at 8:30 */ if(wppizza_is_pickup()){ $wppizza_options['openingtimes']['opening_times_standard'][0]['close'] = '20:30';//sun $wppizza_options['openingtimes']['opening_times_standard'][1]['close'] = '21:00';//mon $wppizza_options['openingtimes']['opening_times_standard'][2]['close'] = '21:00';//tue $wppizza_options['openingtimes']['opening_times_standard'][3]['close'] = '21:00';//wed $wppizza_options['openingtimes']['opening_times_standard'][4]['close'] = '21:00';//thu $wppizza_options['openingtimes']['opening_times_standard'][5]['close'] = '21:00';//fri $wppizza_options['openingtimes']['opening_times_standard'][6]['close'] = '21:00';//sat } return $wppizza_options; }
not tested as such but should work
wppizza->templates
because you must also enable them in wppizza->templates
your problem is here :
PHP Fatal error: Uncaught Error: Call to undefined function mb_internal_encoding()
you must enable/install mbstring in your php (and unless you updated from a v2.x version of wppizza, or you moved things to a new host as it is, or you upgraded php without also enabling the same php extensions that were enabled in the previous php version (which seems to be the case here from what i can see) , you really should have received an error/warning to that effect)
you should ask you host to enable/install it
- AuthorPosts