Skip to content

Commit

Permalink
Added appoval date to the approved exhibit export
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalman2112 committed Sep 3, 2018
1 parent e88c16f commit 8e01f78
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions templates/csv-exhibit-checkin.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
//print_r($exhibits_array);

echo 'exhibit-id,exhibit-year,exhibit-name,maker-id,maker-name,maker-last-name,maker-first-name,maker-email,maker-phone,';
echo 'location-floor,location-area,load-in,helper-qty,agreement-status,seller-fee-status,chase-score' . "\r\n";
echo 'location-floor,location-area,load-in,helper-qty,agreement-status,seller-fee-status,chase-score,approval-date' . "\r\n";


foreach ($exhibits_array as $exhibit) {
Expand Down Expand Up @@ -142,6 +142,9 @@
if (!$helpercount) $score++; //add 1 for no helpers
//print_r($helpers);

$approvaldateunix = get_post_meta($exhibit->ID, "wpcf-approval-status-date", true);
$approvaldate= date('Y-m-d', $approvaldateunix);

echo $exhibit->ID; //exhibit id
echo ',';
echo $exhibityear;
Expand Down Expand Up @@ -195,7 +198,10 @@
echo '"';
echo ',';
echo $score;

echo ',';
echo '"';
echo $approvaldate;
echo '"';

echo "\r\n";
}//end for each exhibit
Expand Down

0 comments on commit 8e01f78

Please sign in to comment.