Post Code and WinOrder – missing options / values

WPPizza – A Restaurant Plugin for WordPress Support Add-Ons Extensions Delivery By Post/Zipcode Support Post Code and WinOrder – missing options / values

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #71288
    Thomas Ulbricht
    Participant

      Hello Olly,

      i have a problem with the “Delivery By Post/ZipCode” Plugin and WInOrder. I know that you don’t know WinOrder and thats why I contacted them first regarding the Problem. But we noticed it may be “the fault” of your plugin.

      Ok, so what is happening: There is a json file that is generated which transferes all values to the WinOrder System. And sometimes it works and sometimes it don’t regarding the values of wppizza_dbp.

      I have a json data which is incorrect … it says:

      “wppizza_dbp”: {
      “label”: “Postleitzahl & Ort:”,
      “value”: “5”,
      “type”: “select”,
      “indexed”: true,
      “class_ident”: “wppizza_dbp”,
      “required_attribute”: “required=\”required\””,
      “required_class”: “class=\”wppizza-label-required\””,
      “omit_if_optional”: false,
      “options”: [
      {
      “value”: “34117 – Wesertor”,
      “label”: “34117 – Wesertor”
      },
      {
      “value”: “34123 – Unterneustadt”,
      “label”: “34123 – Unterneustadt”
      }
      ],
      “placeholder”: “”,
      “autocomplete”: “”,
      “html”: “”
      },

      and in this case just a number is trasnfered to the system.

      Next order I have here it is correct:

      “wppizza_dbp”: {
      “label”: “Postleitzahl & Ort:”,
      “value”: “1”,
      “type”: “select”,
      “indexed”: true,
      “class_ident”: “wppizza_dbp”,
      “required_attribute”: “required=\”required\””,
      “required_class”: “class=\”wppizza-label-required\””,
      “omit_if_optional”: false,
      “options”: {
      “0”: {
      “value”: “34117 Wesertor”,
      “label”: “34117 Wesertor”
      },
      “1”: {
      “value”: “34123 Unterneustadt”,
      “label”: “34123 Unterneustadt
      }
      },
      “placeholder”: “”,
      “autocomplete”: “”,
      “html”: “”
      },

      and in this case the correct value is transfered.

      So the WInOrder Ssupport says it must be something server side because if sometimes the values are transfered and sometimes not there is little they can do … and thats why am contacting you now.

      (I hope you see and understand what I mean).
      I think it is a sort of “caching problem” – but no cache plugin or anything is running and as far as I can reproduce it works when i switch the post code value (we do it via dropdown) on the cart page. then the page reloads and the right value is transfered….

      I send you a screenshot of the plugin settings … maybe that can help too: https://ibb.co/XkzzXHKR

      Thanks so much for your help and I am looking forwar d to hear from you.

      Greertings
      Thomas

      #71289
      Olly
      Admin & Mod

        First of all, I know nothing about winorder other than that it exists .
        That aside (for the moment anyway)
        – what is generating that json ? Where does it come from ?
        – are both examples you are giving above from the same url with the same software rnning (wppizza plugin versions , wordpress, php etc) and were generated around the same time (as in : within a week of each other or so) ?

        >I think it is a sort of “caching problem”
        I very much doubt that

        The problem is (most likely) that your first example does not have the options indexed properly but again that depends on what is producing it / where that json data comes from

        #71290
        Olly
        Admin & Mod

          furthermore , your first json has “value”: “5”,
          not only is there generally no corresponding index in options , there is also no corresponding option with an index of 5 in your second json data (but that could be because it’s from a different system /site . I cannot know)

          in other words, the ‘value’ must be present in the ‘options'(index)

          #71291
          Thomas Ulbricht
          Participant

            Hello Olly,

            Thanks for your reply. Yeah it is from the same Page… The Orders have been placed one hour apart.

            Yeah I shortened the data… Thats why it says 5 and there are just two values… I wanted to make it more clear. Sorry for that confussion…

            #71292
            Olly
            Admin & Mod

              ok, that clears that up.
              than the question is, what generates that json (I am quite sure it’s not wppizza though I could perhaps be wrong) ?

              #71293
              Olly
              Admin & Mod

                and – out of curiosity – did the available options change ? (i.e the list of postcodes selectable )

                #71295
                Thomas Ulbricht
                Participant

                  Yeah… I changed the available Postcodes one time… Could this caused it? But the error appeared over a longer period of time and on more than one testorder…

                  Hmmm the Jason file could be Created by the Winorder WPpizza Plugin.

                  But the “missing Postcode and City” did even miss in the Ordermail…. When it happened.

                  Can this be caused by the changes of
                  Postcodes too?

                  IF this can happen when the Data is changed… What should / can I do to prevent this?

                  #71296
                  Olly
                  Admin & Mod

                    >Could this caused it?
                    that’s the wrong way to look at it as it happens.

                    Your change of postcodes actually fixed the error of the way the json is generated
                    (without actual access to your setup it’s admittedly just an educated guess though but I’m 99% sure)

                    >Hmmm the Jason file could be Created by the Winorder WPpizza Plugin.
                    That’s very much likely and the problem is that it’s wrong the way it is generated and not accounting for / ignoring indexes

                    >So the WInOrder Ssupport says it must be something server side
                    If my suspicions are correct than “Yes” in so far that it’s server side, but it’s still their issue

                    In other words. Your update /change of the postcodes fixed the symptoms but not the cause and it will happen again unless the json generated accounts for indexes correctly

                    #71297
                    Thomas Ulbricht
                    Participant

                      But if it works and the Postcodes won’t change again… You think it will be fine?

                      #71298
                      Olly
                      Admin & Mod

                        I cannot answer that as I know nothing about winorder
                        All I do know is that options needs to be indexed

                      Viewing 10 posts - 1 through 10 (of 10 total)
                      • You must be logged in to reply to this topic.