1

How we can get the complete cart details from the order id in woocommerce including the totals and subtotals etc.

1

Try this:

<?php
    global $woocommerce;
    $items = $woocommerce->cart->get_cart();
?>
0

Another variant:

<?php

WC()->cart->get_cart();

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.