<?php if(Mage::getSingleton('customer/session')->isLoggedIn()): ?>The above function should be added before the following piece of code
<?php if (count($_tierPrices) > 0): ?>Then add this code at the end.
<?php endif; ?>
This email address is being protected from spambots. You need JavaScript enabled to view it.