This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Anzeige Anzahl an Kundenbestellungen in WC Bestelldetails | |
add_action( 'woocommerce_admin_order_data_after_order_details', 'get_specific_customer_orders', 10, 1 ); | |
function get_specific_customer_orders( $order ) { | |
$customer_orders = get_posts( array( | |
'numberposts' => -1, | |
'meta_key' => '_billing_email', | |
'meta_value' => $order->get_billing_email(), | |
'post_type' => 'shop_order', | |
'post_status' => array('wc-completed'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$page_name = 'create_order'; | |
require_once 'includes/config.php'; | |
require_once 'vendor/vendor/autoload.php'; | |
use BillbeeDe\BillbeeAPI\Model\Order; | |
use BillbeeDe\BillbeeAPI\Model\OrderItem; | |
use BillbeeDe\BillbeeAPI\Model\Product; | |
use BillbeeDe\BillbeeAPI\Model\Address; | |
use BillbeeDe\BillbeeAPI\Model\Customer; |