cancel
Showing results for 
Search instead for 
Did you mean: 

display block only on guest checkout

display block only on guest checkout

Hi,

 

I want to display a simple text block ONLY on the guest checkout page. Is this possible? if yes, please do share.

 

thanks

bijal

1 REPLY 1

Re: display block only on guest checkout

Hi @fishvish,



Yes, that is possible. The easiest thing to do is to check if the customer is logged-in (since you are looking to display a block for guests only).


You can do that by using the following code:

<?php 
    if(!Mage::getSingleton('customer/session')->isLoggedIn()){
        //not logged in
    }
?>

 

 

Best regards.

Gabriel

Welcome to the Magento Forums. Remember to introduce yourself and read the Magento Forums Guidelines.