4 February, 2020 at 12:50 pm #46427
A client of mine bought who is using wp-pizza just bought ‘delivery by postcode’.
The plugin added the postcodes in the form but when you select a postcode the ‘fixed delivery charges’ do not change. I don’t know how to fix this.
The delivery now is fixed price but needs change depending on the selected postcode.
I added the postcodes, added the price of that postcode but when selected the delivery charges on the frontend don’t change.
Did i configure it the right way or did i forget an important step?4 February, 2020 at 12:52 pm #46462
without – at least – a link to the site (and better still, screenshots of your plugin settings too) i cannot really say anything4 February, 2020 at 3:04 pm #46464
You are right.
Delivery charges needs to be 4 when 5046AT is selected but it stays on 1,454 February, 2020 at 3:06 pm #46466
i need the actual url of the site please4 February, 2020 at 3:15 pm #46467
At this moment development is local. I can have it running tomorrow on a test server.4 February, 2020 at 3:20 pm #46468
(you should definitely check your browser console and make sure that your php sessions are working)5 February, 2020 at 10:08 am #464845 February, 2020 at 2:51 pm #46487
CHANGE THAT LOGIN NOW !!!!
YOU POSTED IT PUBLICLY . ANYONE CAN GUESS WHAT THE LOGIN LOCATION IS5 February, 2020 at 2:55 pm #46488
It’s changed!5 February, 2020 at 2:56 pm #46489
back to the issue at hand
a) please update your plugins (especially the main wppizza plugin – what you are using is almost a year old, even though i do not think this is the problem)
b)please enable debug like so : https://docs.wp-pizza.com/troubleshooting/5 February, 2020 at 3:09 pm #46493
I updated the wp-pizza to 3.10.8
and added this to wp-config (because it’s not a production site)
define( ‘WP_DEBUG’, true );
define(‘WP_DEBUG_DISPLAY’, true);5 February, 2020 at 3:16 pm #46494
It’s still not working and i see no meaningful errors in console or php 🙁
If there is anything more i can do, i’m glad to help5 February, 2020 at 3:27 pm #46495
>and added this to wp-config (because it’s not a production site)….
understood, but do *not* do this
wppizza (and many many other plugins) will use ajax requests.
wppizza in particular, uses php sessions as well
if your setup outputs *any* errors/warnings/notices anywhere, sessions will simply not work
i.e debug display ,must be off if you want to make sure it’s not a session issue (and to get meaningful error logs)5 February, 2020 at 3:31 pm #46496
I changed it to:
define(‘WP_DEBUG_DISPLAY’, false);5 February, 2020 at 3:33 pm #46497
and your issue is probably here
[05-Feb-2020 15:14:17 UTC] PHP Warning: session_start(): Cannot start session when headers already sent in ……./wp-content/plugins/wppizza-delivery-by-postcode/v3x.php on line 1603
i.e. you are outputting stuff in ajax requests (by another plugin) which will make sessions not work
…The each() function is deprecated. …
the plugin authors should of course fix this, but – as stated – simply do not output but log error messages to bypass these kind of problems5 February, 2020 at 3:37 pm #46498
Hmmm, how can i fix this?5 February, 2020 at 3:43 pm #46499
as stated. set the debug constants as in the troubleshooting link provided5 February, 2020 at 3:52 pm #46500
i have set the debug constants as stated in the troubleshooting link
define(‘WP_DEBUG_DISPLAY’, false);/*this should NEVER be true for production sites*/
What can i do to continue?5 February, 2020 at 4:09 pm #46501
Small update, when i change the theme to a default theme the plugin works.5 February, 2020 at 5:48 pm #46503
ok, then something in the theme is outputting content when it should not.
in 99.9 % of the cases this is because some file starts with
[something here]<?phpinstead of just
(i.e an additional space or linebreak, or any other character before the
– there should never be anything before the opening php )
i would suggest you check your functions.php (theme and/or child theme) first of all and in particular any modifications you have made yourself to any (child)theme files
- You must be logged in to reply to this topic.