Checkout – How to Display Address on Order Review Page

checkoutpayment-methodsshipping-methods

We want to display the shipping and billing address and payment method details on the review page of the one page checkout. We use persistent checkout for this. I just want to show a summery of details what the user's selected or entered.

We currently have this:

Billing address:

<address><?php echo $this->getQuote()->getBillingAddress()->format('html') ?></address>

Shipping address:

<?php if(!$this->getQuote()->isVirtual()): ?>
<address><?php echo $this->getQuote()->getShippingAddress()->format('html') ?></address>

But this does only work if you refresh the page. The details do not load directly the first time. And I do not know how to display the payment method.

I'm also looking for the code to display the payment method.

Can anyone help me to display this instant on the review page?

Best Answer

I used this to show the information about the payment

$payment = Mage::getSingleton('checkout/session')->getQuote()->getPayment()->getMethodInstance()->getTitle();

This show me the title of the payment method. I don't know if is enough for what you want

Related Topic