Hide the time slot from the current time

  • Home
  • Topics
  • Hide the time slot from the current time
  • Support OnlineSat-Thu / 9:30am - 5:30pm (GMT +6)
  • Your Time Our Time

Support Home Support Home FoodBook Hide the time slot from the current time

Viewing 7 posts - 16 through 22 (of 22 total)
  • Author
    Posts
  • #10693

    Dear Guillaume,

    We are sorry to say that we didn’t find any issue like this with our plugin. Moreover, you can also see there is no support topic related to your issue.

    Maybe, the issue raised for your customization. Could you please check the issue by using our plugin without customization?

    Best Regards,
    ThemeLooks Support Team

    #10695
    Fyzex
    Blocked

    We already saw this problem when we first installed your plugin without customization.

    The problem is that we can not remove our current website understand that it would not be pro … We can not activate the license in localhost to perform tests so we are stuck ….

    On your demo the problem is also present …: /

    I will still try to see if one of my customizations could have interfered with this bug I will keep you informed

    • This reply was modified 2 years, 11 months ago by Fyzex.
    #10697
    Fyzex
    Blocked

    After a few tests nothing by removing bits of custom code nothing changes …

    However, I noticed this in your code:
    GetCurrentHout
    Shouldn’t it be GetCurrentHour instead?

    After I don’t know enough, it’s just a guess. What do you think ?

    // Round formatted time
    $getCurrentHout = $getDateTime->format(‘h’);
    $getCurrentMeridiem = $getDateTime->format(‘a’);
    $getMinute = $getDateTime->format(‘i’) < 30 ? ’30’ : ’00’;
    $getCurrentTime = “$getCurrentHout:$getMinute$getCurrentMeridiem”;

    #10699
    Fyzex
    Blocked

    Hello team,

    After a lot of time spent we obviously found a solution to our plugins by changing a value manually in your plugin.

    Line 160 – class-date-time-map.php

    $ addMinutes = 0;

    Change to:

    $ addMinutes = 60;

    That’s all we will test today with our customers to see if it works πŸ™‚

    We keep you informed if you wish.

    Thank you,

    Team Sultan Kebab Crest

    #10701

    Dear Guillaume,

    Thanks for your cooperation. Please keep informing us. We will also investigate the issue based on your provided information. If needed we will provide an update of our plugin. You will get notified via email when the plugin update will available to download.

    Best Regards,
    ThemeLooks Support Team

    #10751
    Fyzex
    Blocked

    Hello Team,

    As promised, I will give you feedback on our modifications made.

    class-date-time-map.php start line 119

    // Round formatted time
        $getCurrentHout = $getDateTime->format('h');
        $getCurrentMeridiem = $getDateTime->format('a');
        $getMinute = $getDateTime->format('i') < 60 ? '15' : '00';
        $getCurrentTime = "$getCurrentHout:$getMinute$getCurrentMeridiem";
    
        // Check start time
        $setStartTime = $getCurrentTime;
        if( strtotime($shopOpeningTime) > strtotime($getCurrentTime) ) {
          $setStartTime = $shopOpeningTime;
        }
    
        if( !empty( $selectedDate ) ) {
    
          $currentDate  = strtotime( $getDateTime->format('d-m-Y') );
          $selectedDate = strtotime( $selectedDate );
    
          if( $selectedDate > $currentDate ) {
            $setStartTime = $shopOpeningTime;
          }
    
        }
    
        // value init 
        $startTime   = $setStartTime;
        $endTime     = !empty( $shopClosingTime ) ? $shopClosingTime : '';
        $MinutesDeff = !empty( $timeSlot[1] ) ? $timeSlot[1] : '15';
    
        // Get start time to end time different
        $startTimeStr = strtotime( $startTime );
        $endTimeStr   = strtotime( $endTime );
        $deff         = $endTimeStr - $startTimeStr;
        $totalHour    = date('h', $deff );
    
        if( $MinutesDeff > 60 ) {
          $loopTime = $totalHour / $timeSlot[0];
          $loopTime  = round( $loopTime );
        } else {
          $loopTime = $totalHour * $timeSlot[0];
        }
    
        //
        $addMinutes  = 60;
        $newTime     = '';
        //

    We have also added the possibility of choosing the time slot every 15min
    delivertimebranch.php start line 94

            $this->selectbox(
              [
                'title'     => esc_html__( 'Delivery Time Slot', 'foodbook' ),
                'name'      => 'delivery-time-slot',
                'options'   => [
                  '4,15'    => esc_html__( '15min', 'foodbook' ), 
                  '2,30'    => esc_html__( '30min', 'foodbook' ), 
                  '1,60'    => esc_html__( '60min', 'foodbook' ),
                  '2,120'   => esc_html__( '120min', 'foodbook' ),
                  '3,180'   => esc_html__( '180min', 'foodbook' )
                ]
              ]
            );

    We are currently in the process of further simplifying our site for our customers. πŸ™‚

    We have also completely revised the responsive and design of the product content, the shopping cart …

    The only thing that scares me is when you go to update FoodBook, given the number of changes I made I will probably speak Chinese LOL

    I hope this will help you.
    I won’t hide from you that I had never touched php or javascript before buying FoodBook and frankly, now I love it!
    Your plugins are really well designed and the comentary spaces in the code are super well described. Which allows me to understand more easily. Well done to you and your team!
    It will be with great pleasure if I can help you improve your plugins πŸ™‚

    And sorry for my English which is very bad x)

    Thansk u,

    Team Sultan Kebab – and me Guillaume

    #10757

    Dear Guillaume,

    We already fixed the time slot issue and updated the plugin on Codecanyon. You will get notified via email when the plugin update will available to download.

    Best Regards,
    ThemeLooks Support Team

Viewing 7 posts - 16 through 22 (of 22 total)
  • You must be logged in to reply to this topic.
happy hour