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

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

If my answer was useful, please give "Kudos" to this post.
If my answer helps you to resolve the problem, click on "Accept as Solution".