WPPizza – A Restaurant Plugin for WordPress › Support › Add-Ons › Extensions › Delivery By Post/Zipcode › Support › fixed delivery charges not updating
- AuthorPosts
- 4 February, 2020 at 12:50 pm #46427
Hi Guys,
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 #46462without – at least – a link to the site (and better still, screenshots of your plugin settings too) i cannot really say anything
4 February, 2020 at 3:04 pm #46464You are right.
Delivery settings
Delivery by postcode settings
Frontend that doesn’t change when postcode is selectedDelivery charges needs to be 4 when 5046AT is selected but it stays on 1,45
4 February, 2020 at 3:06 pm #46466i need the actual url of the site please
4 February, 2020 at 3:15 pm #46467At this moment development is local. I can have it running tomorrow on a test server.
4 February, 2020 at 3:20 pm #46468ok
(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 #46487CHANGE THAT LOGIN NOW !!!!
YOU POSTED IT PUBLICLY . ANYONE CAN GUESS WHAT THE LOGIN LOCATION IS5 February, 2020 at 2:55 pm #46488It’s changed!
5 February, 2020 at 2:56 pm #46489back 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 #46493I 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_LOG’, true);
define(‘WP_DEBUG_DISPLAY’, true);5 February, 2020 at 3:16 pm #46494It’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 thiswppizza (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 worki.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 #46496Ok!
I changed it to:define(‘WP_DEBUG’, true);
define(‘WP_DEBUG_LOG’, true);
define(‘WP_DEBUG_DISPLAY’, false);5 February, 2020 at 3:33 pm #46497and 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
such as
…The each() function is deprecated. …
etc etcthe plugin authors should of course fix this, but – as stated – simply do not output but log error messages to bypass these kind of problems
5 February, 2020 at 3:37 pm #46498Hmmm, how can i fix this?
5 February, 2020 at 3:43 pm #46499>..fix this..
as stated. set the debug constants as in the troubleshooting link provided5 February, 2020 at 3:52 pm #46500i have set the debug constants as stated in the troubleshooting link
like this:
define(‘WP_DEBUG’, true);
define(‘WP_DEBUG_LOG’, true);
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 #46501Small update, when i change the theme to a default theme the plugin works.
5 February, 2020 at 5:48 pm #46503ok, 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]<?php
instead of just<?php
(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
- AuthorPosts
- The topic ‘fixed delivery charges not updating’ is closed to new replies.