Support

Search results for ""

Sorry, no results found. Perhaps you would like to search the documentation?
All Topics
Arran Fraser

WooCommerce Bookings

I used Admin Columns Pro to configure the Bookings screen in WordPress, and the features in WordPress are helpful, but the Export button creates an empty spreadsheet. With DEBUG on, the speardsheet cells are populated with Notice’s about undefined variables and empty $id’s, etc.

3 years, 8 months ago
David Mosterd
Developer

Hi Arran,

When you configure your columns you can choose which columns you want to come along when you export your data. It’s the ‘arrow-down’ icon. If you toggle those and try again, your sheet should no longer be empty.

Hope that works for you. Let us know ok?

Cheers!

3 years, 8 months ago
Arran Fraser

David,

Thanks for the reply, this made me very hopeful, but toggling all the Export: options to No, Save, back to Yes, Save… actually didn’t change anything.

Any other ideas?

3 years, 8 months ago
David Mosterd
Developer

Can you share some of these errors? That way we might be able to pinpoint the exact error. And you say the “Bookings” screen. Is that a particular plugin or custom post type?

3 years, 8 months ago
Arran Fraser

It is the Woocommerce Bookings plugin

3 years, 8 months ago
Arran Fraser

Trying to get property ‘ID’ of non-object in (…) /plugins/woocommerce-bookings/includes/admin/class-wc-bookings-cpt.php on line 218

3 years, 8 months ago
Arran Fraser

The referenced line is new WC_Booking( $post->ID )

/**
  * Define our custom columns shown in admin.
  *
  * @param  string $column
  * @global WC_Booking $booking
  */
  public function custom_columns( $column ) {
  global $post, $booking;

  if ( ! is_a( $booking, 'WC_Booking' ) || $booking->get_id() !== $post->ID ) {
          $booking = new WC_Booking( $post->ID );
  }
3 years, 8 months ago
Arran Fraser

The post type wc_booking is defined in a class WC_Bookings_CPT

3 years, 8 months ago

You must be logged in to reply to this topic.