Closed in-between times don’t work.

WPPizza – A Restaurant Plugin for WordPress Support General Support Closed in-between times don’t work.

Viewing 7 posts - 21 through 27 (of 27 total)
  • Author
    Posts
  • #61923
    Olly
    Admin & Mod
      This reply has been marked as private.
      #61924
      Umut
      Participant
        This reply has been marked as private.
        #61930
        Olly
        Admin & Mod

          I dont know what you are seeing but this looks all fine to me.
          It’s Wednesday 11:47 (your timezone) / timezone set
          :your shop is set to be open from 7:00 to 22:15 but closed between 10:30 and 17:00 so as of current time, your shop is closed and ai can only (pre)order for 17:00 onwards, which is what the widget is doing …..
          cannot see the issue really. What am I missing here ?

          #61931
          Umut
          Participant

            Hello Olly,

            It’s Wednesday 12:30 PM (my time zone).
            The shop is open from 7:00 AM to 10:15 PM.
            However, it is closed between 10:30 AM and 5:00 PM.
            In this case, the shop should be closed, and a warning message should appear indicating that the shop is closed but pre-orders are allowed.

            Explanation 1:
            In the shopping cart, a warning message should appear: “We are currently closed. However, you can pre-order.
            The problem is that the text is not displayed because it does not recognize that the shop is closed between 10:30 AM and 5:00 PM.

            Explanation 2:
            If I place a pre-order between 10:30 AM and 5:00 PM, I can proceed to the checkout page.
            However, the text “Currently closed. Please select a time during our opening hours” is missing on the checkout page.
            This text usually appears above the delivery date in the order form.
            It is not displayed because the plugin does not recognize that the shop is closed between 10:30 AM and 5:00 PM.

            The main problem is that the shop continues to appear as open between 10:30 AM and 5:00 PM instead of closed.
            For me, the option “As soon as possible” is still displayed for the delivery date and time, even though the shop is closed.
            It should display the delivery date and time for pre-orders, which can be chosen by the customer.

            After these explanations, do you think everything is running smoothly, and there are no issues?

            Should I create a guide with images for you to properly check the problem?

            Best regards, and thank you very much for all your efforts.
            Umut

            #61932
            Olly
            Admin & Mod

              Ok, so the widget is actually doing (i .e you cannot order for outside opening hours) what it’s supposed to be doing but the display of the text / info is somewhat misleading (I agree with you there)
              I have had a bit of a dig around and the issue is actually in the main wppizza plugin. There is a sanity check in there which is somewhat too strict (aka wrong) which needs to be changed/updated. To make sure this is actually the culprit can you do the following please in your install to verify this is indeed the fix for this (I assume here you are confident to change a line of code, if not , let me know):

              in [site-path]/wp-content/plugins/wppizza/includes/global.static.functions.inc.php
              on approx line 1106 you will find
              continue 2;
              change this to just
              continue ;
              and save the file. let me know if this addresses the issue you are seeing

              #61933
              Umut
              Participant

                You are truly a resourceful person.
                I changed the “continue 2;” command in the “global.static.functions.inc.php” file to simply “continue ;” and it worked.

                I agree, hopefully this issue won’t occur again in the next update.

                #61934
                Olly
                Admin & Mod

                  I just updated the plugin to 3.17.4 with the actual fix (it’s different to what’s above as that was just a simple bypass to the issue)
                  but I am quite certain this will now be fine . Naturally if there are still issues, let me know. I can only fix things I know about

                Viewing 7 posts - 21 through 27 (of 27 total)
                • The topic ‘Closed in-between times don’t work.’ is closed to new replies.