Woocheckout Editor Error on Submit

Hi,

I get an error on Checkout using WooCheckout Editor Extension. I had added two text fields on Extra fields for user to enter. It records the fields when sending the email but after I place my order, it shows two errors for these two fields.

Warning: Illegal string offset 'label' in /home3/smgcscho/public_html/wp-content/plugins/tco-woo-checkout-editor/includes/tco_woo_checkout.woo.hooks.php on line 266
Warning: Illegal string offset 'label' in /home3/smgcscho/public_html/wp-content/plugins/tco-woo-checkout-editor/includes/tco_woo_checkout.woo.hooks.php on line 266

Any help is appreciated.

Something is wrong with the display of the extra fields added. Need a fix?
To get rid of the error - I commented out the code to display the added custom fields but they are still recorded in the database and included in emails sent out -

static function other_info_table($order){
        // $fields = Tco_Woo_Functions::order_fields( 'other' );

		// // build template content
		// $content = array();
		// foreach ( $fields as $key => $field ) {
		// 	// check if value exists for order
		// 	$value = get_post_meta( $order->id, $key, true );
        //     $content[$key] = array(
        //         'label' => $field['label'],
        //         'value' => $value
        //     );
		// }

		// if( empty( $content ) ) {
		// 	return;
		// }

		// wc_get_template( 'other-fields.php', array( 'fields' => $content ), '', TCOW_PLUGIN_DIR . '/templates/' );
    }

Hi there,

Thanks for writing in.

It could be the data being pulled is empty, would you mind providing your admin and FTP login credentials in the secure note? Please don’t forget the site’s URL too :slight_smile:

Thanks!

The data is not empty as this is available in the emails being sent and in WooCommerce orders table.

Hi There,

Please do give us site URL and credentials using a secure note so we can double check before we can forward this to our developer for investigation. We need to get as much details as possible. Thank you.

Just want to say, I’ve had the exact same problem.

Commenting out has worked but it’s not ideal.

1 Like

Hi There,

I already forwarded this issue for investigation. We will let you know once we have an update. Thank you for understanding.

1 Like

Has this been resolved in the recent maintenance release? 2.0.1

Hi @TallblokeUK,

Thanks for writing around! They’ve been addressed in the latest maintenance release of Woo Checkout Editor see here https://theme.co/changelog/#woo-checkout-editor-2-0-1 please update your theme and plugins / extensions to the latest version.

Let us know how this goes!