Forum Replies Created
- AuthorPosts
- This reply has been marked as private.
>It’s probably easier for me
dunno how that’s easier, but whatever works for you
>Generating emails, is that just html
no. there is html of course, but a bunch of php too
(assuming we are talking about /templates/wppizza-order-email-html.php )use filters(ideally)
https://www.wp-pizza.com/topic/html-email-editing/
https://www.wp-pizza.com/topic/filteredit-header-of-html-emails/, or copy and edit
https://www.wp-pizza.com/topic/can-i-send-html-emails/from the same options table/data…(?)
(thought that’s obvious but I might misunderstand the question)>I mean, when the postcodes are setup in the admin system
ok.
not much to query though.
pretty much all options are in the options table in a serialised array.
i.e – in a wordpress way:
$wppizzaOptions=get_option(WPPIZZA_SLUG);
(ideally, assuming that that constant is available wherever you put your script)or just
$wppizzaOptions=get_option(‘wppizza’);
you’ll find it in $wppizzaOptions[‘order_form’] somewhere, depending on which field you used
or if you want to go really wild check this:
https://www.wp-pizza.com/topic/extending-the-plugin-with-a-class/
$this->pluginOptions in that class would return the same as $wppizzaOptions above
furthermore:
>I’m quite happy to query the wp_dbnothing to query if nothings been set anywhere. i.e postcodes only get captued once orders are submitted of course (by which time the above is pretty irrelevant, no ?)
>Sorry if I didn’t close any other open topics
no problem>but was curious as you are already checking the post code on the check out,
just set it up that way. read here under NOTES:
https://www.wp-pizza.com/downloads/wppizza-delivery-by-postcode/not sure why you’d want to restrict access like that in the first place though. as you would also restrict access for searchengines presumably …!
>What’s problem?
can’t tell.
to start off with though,
do you have a screenshot of your “wp-pizza -> Orders setting” and the “delivery options” settings in the post-zipcode extension ?essentially , use a short soundfile.
if you change the status , it should not play again (unless of course there’s another order that justifies this soundfile being played again)
again – it’s a sample code/codesnippet. it’s for you to make this work for your situation
you are playing a whole song ? are you insane (meaning that in the nicest possible way 🙂 ?
sounds like cacophony
then again, this might be interesting though…maybe there’s an artform to be discovered 😉in any case, you will have to set the settings (timeout etc) according to your soundfiles
the above is an example, it’s up to you to adjust
i would do the following to – maybe – narrow it down
use one of the wordpress smtp plugins to perhaps bypass your server and see if it sends then using some smtp settings
if that works, than it’s most definitely your server not sending the email
PS: if it shows up in the order history it – essentially means – no programming errors were encountered and the email was – programmatically speaking – sent .
after that , it’s the servers job to actually send it
do the orders show up in your order history ?
nothing dramatic there – something that could be looked at if you are bored one day (it’s in the theme you are using – clearly)
>But I work with contact forms and there are no problems with the mails
depends how they are set up….might be going through some third party mail server via smtp.. dunno , cant tell from here
again, enable debug and let m know what the log says (ideally use phpmailer to get better error messages)
>I am able to edit php files.
good
>I have no debug.log in wp-content. Do I have to create it on my own and upload it, or what should i do?
add the debug declarations as mentioned above and the log will be created for you (unless you have some REALLY restrictive permissions – unlikely)
>Okay do you have any link, or idea where i can find good tip
ehem , google.com perhaps ?
it is – most likely y- our server not sending emails full stop. as i have no idea about your server settings / setup I cannot even begin to guess.
i can assure you the plugin itself sends emails . but the server has to actually send them out>I have only filled in the email address in wppizza configuration… Should I do something else to make it work?
yes, you have to make sure your server is capable/enabled to send emails
if you don’t know how to edit php files, get your server administrator (or whoever installed wordpress or at least someone who knows the tiniest bit of php ) to do this for you
i already did:
add
define(‘WP_DEBUG’, true);
define(‘WP_DEBUG_LOG’, true);
define(‘WP_DEBUG_DISPLAY’, false);to your wp-config.php
and do an order
then check debug.log in wp-content and check what it says
and what does your debug.log say ?
in the meantime, you could use a positive indent (i.e 9999px instead of -9999px) , but it will stretch the email to full width in google (albeit “normal” email clients seem to be happy)
in any case, the tr/td filer i was talking about above is probably the best solution anyway, but i need some sleep first
- AuthorPosts