• after applying the following changes, this plugin is permitting to pickup orders a week in the future, also if I configure it 1 or 2 days in advance, thsi is a bug:

    ITALIAN LANGUAGE

    /public_html/spesagodina.it/web/wp-content/plugins/woocommerce-local-pickup-time-select/public/class-local-pickup-time.php
    riga 328:                     $day_name = ( $i === 0 ) ? 'Oggi alle ore' : $current_day_name;
    riga 350         echo '<div id="local-pickup-time-select"><h2>' . __( 'Orario di ritiro', $this->plugin_slug ) . '</h2>';
    riga 355             'label'         => __( 'Orario di ritiro', $this->plugin_slug ),
    riga 374          $woocommerce->add_error( __( 'Per piacere seleziona orario di ritiro.', $this->plugin_slug ) );
    riga 392         $keys['Orario del ritiro'] = '_local_pickup_time_select';
    
    /public_html/spesagodina.it/web/wp-content/plugins/woocommerce-local-pickup-time-select/admin/class-local-pickup-time-admin.php
    riga             echo '<p><strong>' . __( 'Orario del ritiro:', $this->plugin_slug ) . '</strong> ' . $order_meta['_local_pickup_time_select'][0] . '</p>';

    24 HOURS TIME

    /public_html/spesagodina.it/web/wp-content/ plugins/woocommerce-local-pickup-time-select/public/class-local-pickup-time.php
    change line 289 through 299:
    Old
    $today_name = strtolower( date( 'l' ) );
    $today_date = date( 'm/d/Y' );
    
    // Create an empty array for our dates
    $pickup_options = array();
    
    // Loop through all days ahead and add the pickup time options to the array
    for ( $i = 0; $i < 7; $i++ ) {
    
    // Get the date of current iteration
    $current_day_name = date( 'l', strtotime( "+$i days" ) );
    New
    $today_name = strtolower( date_i18n( 'l' ) );
    $today_date = date( 'm/d/Y' );
    
    // Create an empty array for our dates
    $pickup_options = array();
    
    // Loop through all days ahead and add the pickup time options to the array
    for ( $i = 0; $i < 7; $i++ ) {
    
    // Get the date of current iteration
    $current_day_name = date_i18n( 'l', strtotime( "+$i days" ) );

    https://wordpress.org/plugins/woocommerce-local-pickup-time-select/

  • The topic ‘bug: pickup to a week in the future’ is closed to new replies.