Documentation
WooCommerce Checkout Manager

Invoices

WooCommerce Checkout Manager is compatible with three of the most popular PDF invoices plugins for WooCommerce.

Notice: Only fields with price will be included.

I use other plugin

We currently don’t offer support for other PDF Invoice plugins for WooCommerce. If this is your case, contact the plugin support and share this code with them.

function get_wooccm_fields( $fields, $order ) {

	$billing = WOOCCM()->billing->get_fields();
	if ( count( $billing ) ) {
		foreach ( $billing as $field_id => $field ) {
			if ( ! in_array( $field['name'], WOOCCM()->billing->get_defaults(), true ) ) {
				$value = $order->get_meta( sprintf( '_%s', $field['key'] ), true );
				if ( $value ) {
					$fields[ $field['key'] ] = array(
						'label' => $field['label'],
						'value' => $value,
					);
				}
			}
		}
	}

	$shipping = WOOCCM()->shipping->get_fields();
	if ( count( $shipping ) ) {
		foreach ( $shipping as $field_id => $field ) {
			if ( ! in_array( $field['name'], WOOCCM()->shipping->get_defaults(), true ) ) {
				$value = $order->get_meta( sprintf( '_%s', $field['key'] ), true );
				if ( $value ) {
					$fields[ $field['key'] ] = array(
						'label' => $field['label'],
						'value' => $value,
					);
				}
			}
		}
	}

	$additional = WOOCCM()->additional->get_fields();
	if ( count( $additional ) ) {
		foreach ( $additional as $field_id => $field ) {
			if ( ! in_array( $field['name'], WOOCCM()->additional->get_defaults(), true ) ) {
				$value = $order->get_meta( sprintf( '_%s', $field['key'] ), true );
				if ( $value ) {
					$fields[ $field['key'] ] = array(
						'label' => $field['label'],
						'value' => $value,
					);
				}
			}
		}
	}

	return $fields;
}

Can’t find the anwser?

Our docs solve most issues, but sometimes you need a human. If you’re still stuck, we’re just a message away.

Looking for support?

Premium users can log in to their account for priority support and a response in under 6 business hours (Mon–Fri).

Free users can submit a support ticket and we’ll reply within 24 h.

Log into your account
Forgot your password?