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 8839935
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T10:21:02+00:00 2026-06-14T10:21:02+00:00

I need to generate the following with an SQL statement in magento database.But i

  • 0

I need to generate the following with an SQL statement in magento database.But i do not exactly know, where the tables and the fields are?

Order number, SKU, Item name, Quantity, Item price, Total Line price, Cost of each item(I don’t know whether this is a custom attribute or not), Total Line Cost, Order Total Cost, Shipping, Order Total Price

  • 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-06-14T10:21:03+00:00Added an answer on June 14, 2026 at 10:21 am

    Take a look at

    sales_flat_order
    sales_flat_order_*
    .....
    sales_flat_order_item
    

    or you could load the order and get all the info (also some of the order info are store in the db as php serialize array)

     $order = Mage::getModel('sales/order')->load($order_id);
     $items = $order->getAllItems();
     //$items->getData(); //use the getData() method to see a list of all the fields
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

what's the maximum number of characters generated by the following statement? i need to
I need to generate a report based on the following tables: CALLS_FOR_PROPOSALS ID|Name --+------
I need to generate the following in ASP.NET page. What's the best, easiest way
I need to generate XML in the following form: <ns1:root xmlns:ns1=http://example.com/xmlns1 xmlns:ns2=http://example.com/xmlns2> <ns2:item ns2:param=value
I have the following requirement: Based on some user input, I need to generate
I would like to achieve the following, I need to generate report for multiple
I need to dynamically generate radio or checkbox by jQuery. I use the following
I have the following problem: I need to use XSLFO to generate a 2-column
The following code generates a MS Word document in portrait format. But I need
I would like to generate the following sql from ICriteria select c.Id, sum(c.Amount) Amount,

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.