• At the woocommerce order form page, one can only edit the total price and quantity of the item ordered. I need the unit price of the item to be editable. For that I have edited the order-details-item.php but it didn’t seem to help me edit the unit price of the item at the orders page.

    // thats the code from order-details-item.php
    echo apply_filters( ‘woocommerce_order_item_name’, $is_visible ? sprintf( ‘%s‘, get_permalink( $item[‘product_id’] ), $item[‘name’] ) : $item[‘name’], $item, $is_visible );
    // adding a filter here doesn’t help.. and still only order quantity is editable
    echo apply_filters( ‘woocommerce_order_item_quantity_html’, ‘ <strong class=”product-quantity”>’ . sprintf( ‘× %s’, $item[‘qty’] ) . ”, $item );
    do_action( ‘woocommerce_order_item_meta_start’, $item_id, $item, $order );
    $order->display_item_meta( $item );
    $order->display_item_downloads( $item );

    https://www.ads-software.com/plugins/woocommerce/

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Need to make the product price editable in woocommerce order page’ is closed to new replies.