• Resolved loopforever

    (@loopforever)


    Hi,
    Is it possible to get item total with get item meta function?
    I searched for an example for this but couldn’t find it. I am trying to get the following data. But I have to use item id for this.

    I can get the data I want as below.

    foreach ($order->get_items() as $item_id => $item  ):
    $order->get_item_total( $item);
    endforeach;
    • This topic was modified 3 years, 2 months ago by loopforever.
    • This topic was modified 3 years, 2 months ago by loopforever.
  • The topic ‘Get item total with get_item_meta’ is closed to new replies.