Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4324208
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T09:06:05+00:00 2026-05-21T09:06:05+00:00

The client wants the checkout process to look like discrete pages for each step

  • 0

The client wants the checkout process to look like discrete pages for each step (login/register, billing, shipping, etc.), so I’ve modified the template to look like that and everything works fine. However, now they want to display the cart contents with every step.

I presume I would be able to use the shopping cart sidebar module, but I can’t get it to display properly.

Partially I suspect this is because I don’t understand some of the module/block configuration that Magento uses. I’ve tried reading up on it, but like everything Magento, it’s remarkably unclear.

So, how would I insert the cart contents into the template at custom/template/checkout/onepage/billing.phtml? I’m sure there are multiple ways to do this, and I’m just looking for the simplest.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T09:06:05+00:00Added an answer on May 21, 2026 at 9:06 am

    clockworkgeek got me started here with that answer, but I needed to also display product quantity, price and then the total cart price as well. The Magento documentation is dense at best, so after searching around, here is the answer to display cart contents in Magento with some table HTML for formatting:

    <?php $quote = Mage::helper('checkout')->getQuote(); //gets the cart contents ?>
    <table>
    <thead>    
    <th>Product</th>
    <th>Quantity</th>
    <th>Price/ea.</th>
    <th>Total</th>
    </thead>
    
    <?php foreach ($quote->getItemsCollection() as $item) { ?>
    <tr><td><?php echo $item->getName(); ?></td>
    <td><?php echo $item->getQty(); ?></td> 
    <td><?php echo $this->helper('checkout')->formatPrice($item->getPrice(), 2); ?></td>
    <td><?php $floatQty = floatval($item->getQty());
    $total = $floatQty * $item->getPrice();
    echo $this->helper('checkout')->formatPrice($total, 2); //multiply the quantity by the price and convert/format ?></td>
    </tr>       
    <?php  } ?>
    
    <tfoot>
    <td></td>
    <td></td>
    <td></td>
    <td><?php echo $this->helper('checkout')->formatPrice($quote->getGrandTotal()); ?></td>
    </tfoot>
    </table>
    

    That may be some very ugly code, including the rough way to find the total for each $item, but it works. I’m sure there’s a better way to get the $item total (calcRowTotal never seemed to work), but it gets the job done.

    And thanks to clockworkgeek for sending me down the right path.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing web application on python. But the client wants a tool that exports
I have a client that wants a scrollbar on top of their content. So
Since it's a long question, cliff notes come first. Cliff notes: One client sends
i have a client who is required to use specific tracking that is only
I have an app here I made for a client, but sometimes he doesn't
I have a website with a gallery set of pictures I'm working on. The
This should be fairly straight forward but is proving not to be. I want
I have an application written for the UK market that currently only supports English
I've got a javascript slideshow at the top of my page. When a slide
I'm currently working on a small project: there's a protocol for sending some strings

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.