Forum Replies Created
-
AuthorPosts
-
after a bit more digging:
the problem is , that something in your setup/theme/plugins is blocking the script that comes with the plugin
wppizza-preorder/js/scripts.cacheon.jsfrom loadingSo they are loading their own(old) jquery alongside the WP jquery in no conflict mode.
Though in principle that’s ok i guess, in my book that’s still a ridiculously stupid idea.In any event, I just downloaded and installed their blank/default theme and the text shows up just fine, so I can only guess it’s some customisation or some other plugins that cause the issue,
So I would suggest to do the following to narrow it down.
a) disable all other plugins and see if it works then and re-enable one by one to see which one causes the problem
b) try a default theme (2016 for example) and see if it works there – maybe there are some customisations in the theme somewhere…good point.
at the moment the used coupon code is only displayed/used when using the default templates for print and/or email.
I’ll have to do something in the coupons plugin to enable that when using any other templates too.Might take a couple of days or so though….
>I assume the older jquery is a leftover from or loaded by another plugin.
looks to me more like it’s your theme, but i cannot tell .>How do I remove it or prevent it from loading?
remove the plugin that loads it or get it fixed by the plugin developer and if it’s the theme remove it / fix it therejust having had a quick look.
your theme loads an additional (and old) version of jquery alongside the version that comes with WP.that’s never a good idea in any case, and I suspect your problem lies there
(doing that will most likely also cause many other issues now or in the future)
ok.
i’ll check in out in more detail tomorrow.(kind of late here)for whoever is interested:
http://stackoverflow.com/questions/24907191/aol-rejecting-email-sent-via-php-mail-error-5-2-1>The problem was that AOL does not accept mails that are not send from an AOL account but have a reply to an AOL account in their header.
i am highly suspicious of that statement.
” AOL does not accept mails that are not send from an AOL account” …..really ? AOL only sends to itself ?
although I do not know your setup – and might of course be completely wrong – my guess would be your from address is not set up to be from your server and/or does not exists (that big red DMARC notice unless you turned it off)
but then again, maybe AOL are really that dumb these days..
>I just ereased these line in wppizza.send-emails.inc.php and it works
and you will never be able to upgrade/update again.
this (editing corefiles) is definitely the wrong way to do things and it cannot possible be right to not allowing a reply to address…..anyway, just my 2 cents. you can do as you wish of course
>Is that the same one you’re talking about?
yes.
> I’ve worked with filters and such before, just never with WP Pizza,
this has nothing to do with wppizza . filters work the same everywhere. wppizza or not.>and I’m not finding any documentation that helps me do what I’m trying to do
I gave you all you need.
the subject line is made up of three parts. all of which are filterable . (and the parameters passed to the filter in the file i mentioned near the beginning of this topic should be self-explanatory)i must admit, I do not know what more info it is you are looking for really.
i think you need to learn how wordpress filters work.
you do not unset filters. you use filters (and their related functions) to change things as required based on the arguments passedyou use filters to change what they return.
the subject line is made out of 3 parts (as mentioned) filterable by those 3 filtersThis reply has been marked as private.there’s no inbuilt way as such, but if you want, you could use the hidden input elements that have the class
wppizza_order_transaction_idand add classes that display your icon (via jQuery I would have thought) where the value of that hidden element has “COD” in it – or something along these lines anywayyou cannot.
although it was originally like this (many versions ago) it would mean that – if the user accidentally chooses the wrong postcode he would not be able to change it until he goes to the order page. therefore the “OK” button is mandatory/exists>But plugin still show old user post code 1000
unless you are caching the order page, this is simply not possible.
but once you have set it/changed it , the session is set and it will keep whatever you have done previously. i.e your session data takes precedence over the profile data once it is set
add the email address to the subject line (in wppizza->ordrer form ) which adds the email to the “prefix”, and then just empty/unset the other two
there are 3 filters that work in conjunction (for details look at those inc/wppizza.send-emails.inc.php)
wppizza_filter_email_subject_prefix
wppizza_filter_email_subject
wppizza_filter_email_subject_suffixyou will probably want to filter by template id ($tpl_id)
this will be much more streamlined and less convoluted (like everything really) in v3.x when it comes out. for the moment, it is what it is
>Thanks Olly, I’ll give debugging a shot and will let you know.
you should also disable all other plugins/customisations.for other questions/problems, please start a new topic
PS: make sure you enable debug like so
https://support.wp-pizza.com/topic/how-to-enable-debug-in-wordpress/ -
AuthorPosts