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/' );
}