• Resolved jksastrology

    (@jksastrology)


    Hello,

    I am getting this notice on my customers order when they receive the email after checkout:

    Notice: Undefined index: time_stamp in /home/jksastro/public_html/wp-content/plugins/woocommerce-checkout-manager/includes/classes/main.php on line 204

    Can anyone tell me what this notice means?

    Kind regards,

    Jamie

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter jksastrology

    (@jksastrology)

    This is the bit of code that the notice above is referring to.

    Line 204 contains if ( $options[‘checkness’][‘time_stamp’] == true ) .

    My checkout form does make use of time zones. It displays a number relative to GMT timezone for whatever country the customer is from. The time zone part (which is custom made by a developer I am no longer in contact with) fails to work on my website checkout form since moving host, which is the main issue I am having. I was wondering if this code may be the source of the issue?

    if ( !empty($options['checkness']['set_timezone']) ) {
                        date_default_timezone_set(''.$options['checkness']['set_timezone'].'');
                    }
    
                    $date = ( !empty($options['checkness']['twenty_hour'])) ? date("G:i T (P").' GMT)' : date("g:i a");
    if ( $options['checkness']['time_stamp'] == true ) {
                        echo '<p><strong>'.$options['checkness']['time_stamp_title'].':</strong> ' . $date . '</p>';
                    }
    
    if ( $order->payment_method_title && $options['checkness']['payment_method_t'] == true ) {
                        echo '<p><strong>'.$options['checkness']['payment_method_d'].':</strong> ' . $order->payment_method_title . '</p>';
                    }
    
    if ( $order->shipping_method_title && ($options['checkness']['shipping_method_t'] == true)) {
                        echo '<p><strong>'.$options['checkness']['shipping_method_d'].':</strong> ' . $order->shipping_method_title . '</p>';

    Kind regards,

    Jamie

    • This reply was modified 4 years, 9 months ago by jksastrology.
    • This reply was modified 4 years, 9 months ago by jksastrology.
    Plugin Author quadlayers

    (@quadlayers)

    hello
    you’re running a very old and unsupported version of the plugin
    please update to 4.9.7
    kind regards

    Thread Starter jksastrology

    (@jksastrology)

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Notice: Undefined Index: Time Stamp. What is it?’ is closed to new replies.