Viewing 15 replies - 1 through 15 (of 44 total)
  • Plugin Author Kokomo

    (@kokomoweb)

    Request by @boreas04:
    Make a column for each variation

    Plugin Author Kokomo

    (@kokomoweb)

    Request by @trebla:
    – Complete shortcode table
    – Possibility for multiple products in same table for shortcodes

    Plugin Author Kokomo

    (@kokomoweb)

    Request by @toniem:
    – Setting to hide partially refunded orders

    Plugin Author Kokomo

    (@kokomoweb)

    Request by @mmagnani:
    – Column for custom fields

    Display Options for Front-End shortcode.
    – ie. Firstname, Lastname, Amount, Product Variation, Avatar!

    Plugin Author Kokomo

    (@kokomoweb)

    Thanks for the suggestion! It’s in the works!

    Great!!

    Possible ETA?

    Plugin Author Kokomo

    (@kokomoweb)

    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;)

    Plugin Author Kokomo

    (@kokomoweb)

    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>’;
    }

    Plugin Author Kokomo

    (@kokomoweb)

    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 );

    Plugin Author Kokomo

    (@kokomoweb)

    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

Viewing 15 replies - 1 through 15 (of 44 total)
  • The topic ‘Feature request thread’ is closed to new replies.