As described in the title of this question, I don't understand why Magento doesn't save the taxClassId information. Any idea?

$orders = Mage::getModel('sales/order')

foreach ($orders as $order) {
    $theItems = $order->getAllVisibleItems();
    foreach ($theItems as $product) {
        echo $product->getTaxClassId();



You may need to load the product model. E.g.:

$classId = Mage::getModel('catalog/product')

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.