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();
?>
| improve this answer | |
0

Another variant:

<?php

WC()->cart->get_cart();
| improve this answer | |

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.