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

  • SEARCH
  • Home
  • 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 4342248
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T11:35:34+00:00 2026-05-21T11:35:34+00:00

On the success.phtml template, I need to list the sku’s from the completed order.

  • 0

On the success.phtml template, I need to list the sku’s from the completed order. How can I iterate through the order and retrieve these values?

  • 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-21T11:35:35+00:00Added an answer on May 21, 2026 at 11:35 am

    you should extend Mage_Checkout_Block_Success

    and add the method similar to this:

     public function getOrder()
        {
            return Mage::getModel('sales/order')->load($this->getLastOrderId());
        }
    

    and in your success.phtml template:

    $order = $this->getOrder(); 
    foreach($order->getAllItems() as $item){
    //$item is your product object and you can do what you want with this;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I can add error/success message to the Magento admin panel from server-side, for example,
I need to call the invoice number and customer email on magento success.phtml grammatically.
I'm trying to get the Order Increment Id in Magento, on the success.phtml page
I've added the following code to the Magento 1.5.1 order confirmation page (success.phtml): <?php
Using success: function(data) in the jquery code, when I retrieve the data from PHP,
On success of a web service i receive a UUID. ie C3D668DC-1231-3902-49318B046AD48A5F I need
On success, ShellExecute returns a handle. Do we need to close this handle, and
I have an action, successAction(), it uses the file in my views folder, success.phtml,
How can I stop Layout rendering, when sending request through AJAX.. The problem I
I have installed google adwords tracking on the success.phtml I am able to track

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.