Hi @bbceg,
here is my list of fixes:
filename: wc-customer-source.php
// line 333:
$source = get_post_meta( $order->get_id(), 'wc_customer_source_checkout_field', true );
// line 334:
$other = get_post_meta( $order->get_id(), 'wc_customer_source_checkout_other_field', true );
and I needed to add a div in line 337, because if I edit the users address in the order it looks crapy, so put this in row 337
<div class="clear"></div>
filename: wccs-source-report-table.php
// line 153:
$other = get_post_meta( $order->get_id(), 'wc_customer_source_checkout_other_field', true );
// line 160:
'customer_name' => $order->get_billing_first_name() . ' ' . $order->get_billing_last_name(),
filename: wccs-admin-export.php
// line 31-38:
if( ( array_key_exists('date[ssd]', $_POST) && $_POST['date[ssd]'] ) ) {
$ssd = $_POST['date[ssd]'];
$StartDate = strtotime($ssd);
}
if( ( array_key_exists('date[eed]', $_POST) && $_POST['date[eed]'] ) ) {
$eed = $_POST['date[eed]'];
$EndDate = strtotime($eed);
}
// line 68-76:
$order_id = $order->get_id();
$order_status = $order->get_status();
$cust_name = $order->get_billing_first_name() . ' ' . $order->get_billing_last_name();
$customer_source = get_post_meta( $order->get_id(), 'wc_customer_source_checkout_field', true );
$other = get_post_meta( $order->get_id(), 'wc_customer_source_checkout_other_field', true );
$customer_source .= ( $customer_source == 'other' && $other ) ? ' - ' . $other : '';
$ordercreated = $order->get_date_created();
So please confirm, that your list is the same as mine ??
-
This reply was modified 4 years, 8 months ago by Karesz. Reason: code