Sales_flat_order missing data magento - magento

my sales_flat_order_table is recording customer_firstname and customer_lastname from amazon and ebay orders but for magento site orders its leaving these fields blank. Though i can see the names in admin order details.

I need it for a custom grid, found names in sales_flat_order_address so joined the two to get names that were missing in sales_flat_order table.

Related

From which table does magento extract the shipping and handling information in Order page on admin panel?

Previously I thought that the "price" shown in the order page under "Shipping and Handling Information" block in magento's admin panel is retrieved from "sales_flat_quote_shipping_rate" table but when I changed the value of price in the database manually it doesn't reflect any changes, from that i concluded that the price is not retrieved from that table.
Can anyone help me to understand this?
I have attached the screenshot to make clear what I am talking about.
Any help is appreciated.
Orders data are saved in database tables sales_flat_order and sales_flat_order_item
Check columns base_shipping_amount & shipping_amount in sales_flat_order table
To update the Shipping / Flat Rate, why are you modifying the DB, you can achieve this from the admin section.
Update the values their.
System -> Configuration -> Sales -> Shipping Methods -> Flat Rate.
In case you need to update it for a particular order then you can use tables suggested by Dushyant Joshi

Is there a way to see which items are not categorized in magento?

Is there a way to see which items are not categorized in magneto on the backend? I know I can pull a report but I was wondering if there was anything easier?
You can use the free Enhanced Admin Grids extension, as the github version allows to add a categories column on the products grid, for which it is optionally possible to filter on products that are not assigned to any category.
Not natively in the Magento backend.
You could run a simple SQL query against your database to grab a list of skus that aren't assigned to a category.
Something like this:
SELECT sku FROM catalog_product_entity
WHERE entity_id
NOT IN (SELECT product_id FROM catalog_category_product)
Which will return a list of all skus not assigned to a category. From there you can save the results to a CSV using your SQL program.

Where is Magento order data stored?

I am running Magento 1.6.2 and have an intermittent error cropping up with some sales orders. The customer is being charged correctly, but the Magento admin page when viewing the sale reports incorrect values. I understand why it is doing it incorrectly - I have a 10% discount off a full section of products on my website, and it is because of this that something is going wrong.
Again, the customer is paying the correct (discounted) amount, but the data must be being stored incorrectly in the magento database because looking at it in the admin system doesn't total the values correctly. The Catalog Price Rule that applies the 10% discount is not accounted for in the displayed totals.
To add to my woes, we use Zynk to bring data in from Magento to our Sage 200 backoffice system, and the data getting imported into that system is also missing the 10% discount, making reconciliation of order payments and Sage invoices a complete pain.
The only thing I can think is that somewhere somehow the data is being stored in the magento database incorrectly (not having had the 10% discount applied to it) so when Zynk collects the data, it is incorrect.
Can anyone help me understand where I can find the order data in the Magento database so I can see what was stored for a specific Magento order number - I can at least begin to debug this then, maybe?
If someone has details of where to find the code used by Magento to perform the order database transactions, specifically where the discounts should be applied before storing the data, that would be a big help too.
Cheers!
Orders data are saved in database tables sales_flat_order and sales_flat_order_item
Discounts are applied in Mage_SalesRule_Model_Validator
You can find orders and order items data in your (tables prefix)_sales_flat_order and (tables prefix)_sales_flat_order_item respectively. but remember that when an order is placed Magento simply copies the data from its respective quote. so in my opinion you should be checking (table prefix)_sales_flat_quote and (table prefix)_sales_flat_quote_item first.

Magento removed orders from table sales_flat_order

Magento sent a customer a receipt with the order number but I cannot find that order number in Magento. I investigated that table sales_flat_order and noticed that the entity_id column is not sequential (an auto increment column) that indicates some records were deleted. Before I start doubting it's an intrusion, is there anything like that Magento does? I.E. removing orders from sales_flat_order ?
Within a standard magento installation it is not possible to delete an order.
You can only do it by hand in the database or install an extension.

Which table contains customer support's email id in magento?

I have to fetch sales representative's name and customer support's email id.
So in magento database which table contains this values?
I have tried my best.
but not able to find.
So can plz anyone help me?
we update/save this values from magento admin panel system/configuration/storeEmailaddresses
I don't have a Magento DB at hand, but I think it's in the table "core_config"; you can probably find it by "path" (which should be like "%storeEmailaddresses%"

Resources