Feature request thread
-
Request by @boreas04:
Make a column for each variationRequest by @trebla:
– Complete shortcode table
– Possibility for multiple products in same table for shortcodesRequest by @toniem:
– Setting to hide partially refunded ordersRequest by @mmagnani:
– Column for custom fieldsDisplay Options for Front-End shortcode.
– ie. Firstname, Lastname, Amount, Product Variation, Avatar!Thanks for the suggestion! It’s in the works!
Great!!
Possible ETA?
Unfortunately not, september is a really busy month for me, maybe beginning of next month when things calm down.
ok, in the meantime – will you point us to the file that generates the list, perhaps we can add the code ourselves;)
Sure!
That file would be in /views/shortcode.php
You can refer to /views/table-customer-list.php for the woocommerce functions I am using in the backend.
Great,
We hacked it for our purposes.. it’s pretty ugly, but it works!if($wpcl_orders) {
$output .= ‘<table class=”ecvbackers”>’;
foreach($wpcl_orders->posts as $wpcl_order) {
$order = new WC_Order($wpcl_order->ID);
$billmail = $order->get_billing_email();
$output .= ‘<tr>’;
$output .= ‘<td class=”ecvavatar”>’ . get_avatar($billmail) . ‘</td>’;
$output .= ‘<td class=”ecvname”>’ . $order->get_billing_first_name() . ‘ ‘ . $order->get_billing_last_name() . ‘</td>’;//if($customer_atts[‘quantity’] == true) {
if (sizeof($order->get_items())>0) {
$singlecount = ”;
foreach($order->get_items() as $item) {
if( $item[‘product_id’] == $post_id ) {
$productcount[] = $item[‘qty’]; $singlecount+= $item[‘qty’];
}
foreach($item->get_meta_data() as $itemvariation) {
$ecvarkey = wc_attribute_label($itemvariation->key);
$ecvarname = wc_attribute_label($itemvariation->value);
//echo ‘‘ . wc_attribute_label($itemvariation->key) . ‘: ‘ . wc_attribute_label($itemvariation->value) . ‘<br />’;
}
}$items[‘order-qty’] = $singlecount;
//$output .= ‘<td class=”count”>’ . $singlecount . ‘</td>’;
}
//}
$output .= ‘<td class=”ecvperk”>’ . $ecvarkey . ‘: ‘ . $ecvarname . ‘</td>’;
$output .= ‘<td class=”ecvtotal”>’ . $order->get_formatted_order_total() . ‘</td>’;
$output .= ‘</tr>’;
}
$output .= ‘</table>’;
}That will do it! I’ll consider this when updating the shortcode, thank-you!
we cleaned it up a bit & added some if statements for additional customer_atts:
$customer_atts = shortcode_atts( array(
‘product’ => get_the_id(),
‘avatar’ => true,
‘perks’ => true,
‘amount’ => true,
‘quantity’ => false,
), $atts );Request by @mantebose:
Possibility to add the sum of products bought via shortcode
An option to see the total amount of ordered products, but only the ones visible after filtering by search phrase
- The topic ‘Feature request thread’ is closed to new replies.
(@kokomoweb)
6 years, 8 months ago
Please write all your feature requests here.