Plugin Author
Kokomo
(@kokomoweb)
HI @trebla,
this is indeed just showing the order total and not the product detail. Unfortunately I don’t think it would work if I put the product price, since there could be more than one variation per order.
Thread Starter
trebla
(@trebla)
Hi,
The point would be to reflect the price on each line…
I have tried to add some code, to get the result:
/admin/wpcl-settings.php
$settings_wpcl[] = array(
‘name’ => __( ‘Order product column’, ‘wc-product-customer-list’ ),
‘id’ => ‘wpcl_order_product’,
‘default’ => ‘no’,
‘type’ => ‘checkbox’,
‘css’ => ‘min-width:300px;’,
‘desc’ => __( ‘Enable order product column’, ‘wc-product-customer-list’ ),
);
and in /view/table-customer-list.php
‘wpcl_order_product’ => array(
‘default_value’ => ‘no’,
‘column_pretty_name’ => __( ‘Order product’, ‘wc-product-customer-list’ ),
),
This way, I can get the result I wanted… but infortunately, it breaks the table look and has removed all the functions to export/csv/pdf, etc…
Can you give any help for that ?
Best regards
Thread Starter
trebla
(@trebla)
Sorry, i also have added in /view/table-customer-list.php :
if ( isset( $columns[‘wpcl_order_product’] ) ) {
$current_row[‘wpcl_order_product’] = $order->get_formatted_line_subtotal( $item );
}
Plugin Author
Kokomo
(@kokomoweb)
Hi @trebla,
the reason it broke the table is because you only added the heading of the table and did not put the actual content, which breaks the row count and therefore gives a javascript error and therefore you lose all the buttons, etc…
Plugin Author
Kokomo
(@kokomoweb)
Thanks for the info, i’ll take a quick look this week to see what your code does and if it makes sense i’ll add it to the plugin
Thread Starter
trebla
(@trebla)
Hi,
First of all: Great Support…
I’m not sure, my code is the best to get exact information wanted wich is the price displayed on each line in the cart, but maybe good beguining.
I’ll appreciate as quick as possible…
By advance, thanks a lot for your help
Best regards
Thread Starter
trebla
(@trebla)
Hi Kokomo,
Any suggestion for my problem… or amelioration that can be done?
Best regards