Hi

I modified the code in the checkout success tpl file to this.

<!--bof logoff-->
<?php if (!($_SESSION['COWOA'])) { ?>
<div id="checkoutSuccessLogoff">
<?php
if (isset($_SESSION['customer_guest_id'])) {
echo TEXT_CHECKOUT_LOGOFF_GUEST;
} elseif (isset($_SESSION['customer_id'])) {
echo TEXT_CHECKOUT_LOGOFF_CUSTOMER;
}
?>
<div class="buttonRow forward"><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo zen_image_button(BUTTON_IMAGE_LOG_OFF , BUTTON_LOG_OFF_ALT); ?></a></div>
</div>
<?php } ?>
<!--eof logoff-->

I think I have done this wrong though, as now the user does not get logged off properly when checking out without an account.

All I wanted to do was remove the log off button and the not display the TEXT_CHECKOUT_LOGOFF_CUSTOMER message when a customer is on the checkout success page after purchasing without an account.

I presume I have placed the line

<?php if (!($_SESSION['COWOA'])) { ?>

and

<?php } ?>

in the wrong place.

Could someone help me with where these should be placed to remove the log off button and the message when someone checks out without an account, but allows these to show if the user does have an account.

Thanks
Laurie