fixed delivery charges not updating

Viewing 20 posts - 1 through 20 (of 21 total)
  • Author
    Posts
  • #46427
    woutervanerp
    Participant

      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?

      #46462
      Olly
      Admin & Mod

        without – at least – a link to the site (and better still, screenshots of your plugin settings too) i cannot really say anything

        #46464
        woutervanerp
        Participant

          You are right.

          Delivery settings
          Delivery by postcode settings
          Frontend that doesn’t change when postcode is selected

          Delivery charges needs to be 4 when 5046AT is selected but it stays on 1,45

          #46466
          Olly
          Admin & Mod

            i need the actual url of the site please

            #46467
            woutervanerp
            Participant

              At this moment development is local. I can have it running tomorrow on a test server.

              #46468
              Olly
              Admin & Mod

                ok
                (you should definitely check your browser console and make sure that your php sessions are working)

                #46484
                woutervanerp
                Participant

                  Test location

                  The login is:

                  [redacted by admin]
                  [redacted by admin]

                  #46487
                  Olly
                  Admin & Mod

                    CHANGE THAT LOGIN NOW !!!!
                    YOU POSTED IT PUBLICLY . ANYONE CAN GUESS WHAT THE LOGIN LOCATION IS

                    #46488
                    woutervanerp
                    Participant

                      It’s changed!

                      #46489
                      Olly
                      Admin & Mod

                        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/

                        #46493
                        woutervanerp
                        Participant

                          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_LOG’, true);
                          define(‘WP_DEBUG_DISPLAY’, true);

                          #46494
                          woutervanerp
                          Participant

                            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 help

                            #46495
                            Olly
                            Admin & Mod

                              >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)

                              #46496
                              woutervanerp
                              Participant

                                Ok!
                                I changed it to:

                                define(‘WP_DEBUG’, true);
                                define(‘WP_DEBUG_LOG’, true);
                                define(‘WP_DEBUG_DISPLAY’, false);

                                #46497
                                Olly
                                Admin & Mod

                                  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
                                  such as
                                  …The each() function is deprecated. …
                                  etc etc

                                  the plugin authors should of course fix this, but – as stated – simply do not output but log error messages to bypass these kind of problems

                                  #46498
                                  woutervanerp
                                  Participant

                                    Hmmm, how can i fix this?

                                    #46499
                                    Olly
                                    Admin & Mod

                                      >..fix this..
                                      as stated. set the debug constants as in the troubleshooting link provided

                                      #46500
                                      woutervanerp
                                      Participant

                                        i 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?

                                        #46501
                                        woutervanerp
                                        Participant

                                          Small update, when i change the theme to a default theme the plugin works.

                                          #46503
                                          Olly
                                          Admin & Mod

                                            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]<?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

                                          Viewing 20 posts - 1 through 20 (of 21 total)
                                          • The topic ‘fixed delivery charges not updating’ is closed to new replies.