So I'm trying to show some html code on my order confirmation page IF the products in the cart belong to a certain category. To clarify there are only two different categories and the user can only chose one of them, so all the products in the cart will be part of the same category.
I have tried this:
<?php $categoryId = 426; $quote = Mage::getSingleton('checkout/session')->getQuote(); ?> <?php if($quote->hasCategoryId($categoryId)): ?> <p>show text blah blah </p> <?php endif; ?>
But the text doesn't show even though all the products in the cart are from this category. Any ideas how to do this or what I did wrong?