• Resolved trebla

    (@trebla)


    Hi,
    i have noticed that there is a non sense in this plugin or maybe something i did not understand.
    The plugin suppose to give us “Product Customer List” and we find this list under each product.
    First of all each line of products bought not showing the item price but the total order.
    I had a customer who bought on the same order :
    1 x product A = 100$ + 1 x product B=150$ . => total order: 250$

    when I export a list of each product, i find on each line : 250$
    wich is wrong, it supposed to be :
    on list product A = 100$
    on list product b = 150$

    Can you explain me or solve the problem?

    Im my point of view, we just need to add option in settings: product price
    Best regards

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • 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

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Item price on product’ is closed to new replies.