Questions tagged [sales-order]

Denotes questions related to Magento Sales module's order functionality.

Filter by
Sorted by
Tagged with
0
votes
1answer
4k views

How to get Shipment Id in order page View.php

I am using the partial shipment case for multiple shipments and multiple tracking number against one order. For this i have added the new button (Leopard TN) on order view page. Actually when we click ...
2
votes
2answers
2k views

Custom sales order report NOT matching Magento's sales order report

I'm building a custom report sales order using the following code as a start. I'm trying to get all orders that have been updated Yesterday, by passing filters from date and to date to sales/order ...
2
votes
2answers
393 views

Get All Orders from Database

I am following this article. I would like to retrieve all Orders from Database. Can anyone say how can I do that??
0
votes
1answer
89 views

How to call for an custom attribute in magento backend order page?

I have magento 1.9 and at the order page ( /app/design/adminhtml/default/default/template/sales/items/column/name.phtml ) I need to add a custom attribute called "location" <?php if ($_item = $...
2
votes
1answer
3k views

How to get tax name

I can get tax amount by $order->getTaxAmount(); But how can I get tax name applied to order. I used this $taxClassId = $order->getTaxClassId(); $taxClassName = Mage::getModel('tax/class')-&...
1
vote
0answers
159 views

Magento 2 - How to custom calculate amount of order when user login?

In Magento 2, How to custom calculate total amount of order when user login?
2
votes
0answers
154 views

Dashboard last 5 order details missing

My store was working fine earlier today, but I don't know why and how my dashboard just stopped showing the details of last 5 orders now.Here it is http://s32.postimg.org/7i1hvcmgl/dash.jpg
2
votes
1answer
3k views

How to update sales_flat_order table status column by checking the payment method choose by the customer?

I created a new status on admin panel for orders. System -> order status -> create new status I created the status for cash on delivery payment option. While the order processing, how can i ...
0
votes
0answers
1k views

choose order state and status - Magento 2

1) I am looking to achieve below status flow. status flow: Approval -> Processing -> Shipping -> Delivered I could refer this link for understand about order state and status but still it is ...
0
votes
1answer
973 views

How to get order Grand Total from information about order's items (products)?

I'm building a custom report on the basis of database. I need to know how to get 'Grand Total' that is in 'sales/order' (in other words sales_flat_order) table by order items (from 'sales/order_item',...
0
votes
1answer
147 views

Adding more than one column in Sales Grid

Edit: I managed to add the city column by changing parent to entity, and the city initially appeared in the Grid, but once we started working in the admin, we would eventually get an error! I used: ...
1
vote
0answers
161 views

Creating invoice backend works but gives blank screen Magento 1.7

Every time I create an Invoice from Sales Order it gives me Blank screen (see attached) even though it's blank screen the invoice was created but not visible. What is the solution for this?
1
vote
2answers
655 views

Order Mail is not sending

I am using Magento 1.9.2.2. When a customer place order then confirmation mail is not sending. My Sales Emails section is as like below I installed this (https://www.magentocommerce.com/magento-...
0
votes
1answer
2k views

magento2:unable to save the data in newly added column of sales_order_grid table

trying to save the my oven data in newly added column of sales_order_grid but unable to to do so. However, I can save my custom the data in sales_order table where I have added one extra column. I am ...
2
votes
3answers
1k views

Magento remove tabs like invoices,credit memos,shipment in admin sales order view using observer

I want to remove tabs(invoice,credit memo,shipment) in sales order view using observer My config.xml file <adminhtml_widget_container_html_before> <observers> ...
0
votes
1answer
51 views

What happens to the applied sales rules when items are cancelled?

I'm not sure magento supports the partial cancellation(cancel only subset of items from order) Below is my guess how magento works with this issue, but need confirmation. It seems one can achieve ...
0
votes
0answers
731 views

Display Best Selling Products

I want replacement of the following code in Magento 2.x class Mage_Catalog_Block_Product_Bestseller extends Mage_Catalog_Block_Product_Abstract{ public function __construct(){ parent::...
0
votes
1answer
153 views

tried every possible way setting up cron job

I just upgraded from 1.9.0.1 to 1.9.2.4 and order conformation mails are not sending automatically. However, If I force send them through admin panel then they do work properly. I have tried every ...
0
votes
1answer
650 views

Usage 'base_to_global_rate' and 'base_to_order_rate'

What is the difference between 'base_to_global_rate' and 'bast_to_order_rate' in an order. When are these fields used? $data = Mage::getModel('sales/order')->loadByIncrementId(1000023)->...
0
votes
1answer
111 views

Checking for previous orders on success page

I'm trying to do a lookup on the success page to see if a customer has placed an order before. Many of the solutions I have found were checking against a customer ID, which is fine if you're only ...
0
votes
1answer
286 views

Return codes from payment-information webservice

For my custom method, I am calling PlaceOrder javascript function. It finally calls this URL: /rest/default/V1/carts/mine/payment-information That calling returns "32". What does it mean?
1
vote
0answers
139 views

Order was generated without adding shipping amount

Recently I faced an very random issue about generating order without adding shipping cost. My client reported me that customer was able to complete the order without paying for shipping amount. After ...
5
votes
1answer
2k views

Export a field from custom model grid with a diferent render to Csv

I created a custom column on sales order grid. It works as well but a used a custom render on a field (like this). When I export the grid to CSV, the file contains the raw value, but I need apply ...
1
vote
0answers
223 views

Magento order data not getting using observer event from admin

I want item's data in observer from particullar order which order place from admin. following config.xml <adminhtml> <events> <sales_order_place_after> <...
2
votes
1answer
294 views

Comment added by webservice not visible in front end

I'm using the magento version 1.9.2.4 with its webservice wsdl, i'm adding comments in my request using the webservice's method with java: proxy.salesOrderAddComment(session, "100000019", "...
0
votes
2answers
4k views

How can I get configurable product from a sales order?

I've created a button in the back end of my Magento 1.9 website called "Send to Printers" that I need to send JSON data to my printers API. I'm able to get some of the order information using the ...
2
votes
1answer
160 views

Get Order details in other page

In My account page i create Cancel. If user click cancel it redirect to next page On that page How i get current order details like Order id amount etc <?php if (!$_order->hasInvoices()) {?> ...
1
vote
0answers
127 views

Make order list refresh in each 5 minute in magento admin

Is this possible in magento admin to make order list refresh if system is idle for 5 minute ??? my client want to make order list refresh in each 5 minute because he don't want to make page refresh ...
3
votes
0answers
458 views

Shopping cart price rule not applying when creating order by REST Api

I'm working with Magento CE 1.7.0.2. I create order by sending REST Api request (working fine) but when I'm adding coupon code to my XML (or JSON) request, the discount is not applying and the amounts ...
0
votes
3answers
4k views

Get customer details in backend admin panel order

What I have done: I have few custom calculations to be done after placing an order for the customer in magento admin panel. I have hooked on to sales_order_save_after event inside tab inside my ...
0
votes
2answers
238 views

Can't see specific order magento on admin after supee-7405 [duplicate]

After a couple of days that the patch supee-7405 was released I've decided to install the it. I did a backup of my website because I could see there were a lot of files to modify and I suspected that ...
1
vote
0answers
243 views

How to add the shipping TITLE to admin sales grid

I want to add the shipping method ( shipping title NOT shipping description ) to the admin sales grid. I've already added the shipping description using this code $collection->getSelect() ...
0
votes
1answer
135 views

How do I control the Store View context when programatically creating an Order?

I'm working on a module which imports orders from an external system; the code is working and orders are being created, but are appearing under the wrong Store View. Our installation uses only a ...
0
votes
1answer
1k views

How to redirect to custom module after order is placed on admin panel?

After I create an order (fill the form) in the admin panel and clicking submit order button, usually the page gets redirected to order_view page. I use sales_order_place_after event , I need to ...
1
vote
1answer
502 views

Invoices are marked paid for bank transfer payment automatically

I have stackoverflowed, googled etc but couldn't find the answer. I want to understand the logic behind the bank transfer payment method and invoice. When we create invoices for orders that have ...
0
votes
1answer
1k views

Fatal error: Call to a member function isVirtual() on null in Quote.php

I am trying to create an order programatically. This is my code so far: <?php // Init magento base class require_once 'app/Mage.php'; Mage::app()->setCurrentStore(Mage_Core_Model_App::...
6
votes
1answer
672 views

Redirected to store base URL instead of custom admin URL

In case of Custom Admin URL (in System -> [Advanced] Admin -> Admin Base URL) is set to something like http://mytreasure.store.com after creation of order or invoicing it Magento redirects back to the ...
1
vote
1answer
67 views

Editing the print all button in Magento to ship orders?

My Magento install has a handy "print all" button that lets me print all my PDF invoices and order confirmations. This is super handy, however would there be a way to extend this so that it ships the ...
1
vote
1answer
79 views

migrate sales order from site to site

Since I have a task which have to migrate a site /au to /asia (I know customer's store_id website_id need to be changed), i'm wondering if I need to change the store_id in sales_flat_order table, ...
0
votes
0answers
113 views

Invoice slip not working

I download invoice slip it's not working <?php $orderIdForm = $order->getId(); ?> <form action="<?php echo $this->getUrl('mpshippingmanager/shipping/savetrackingnumber/',...
0
votes
1answer
821 views

Error on loading Sales in Backend

I become en Shop-Error on Magento 1.9 when I will call the Sales in Backend. Where can I found the problem? Here are the Logfile a:5:{i:0;s:50:"Die angeforderte Zahlungsart ist nicht verfügbar.";i:...
1
vote
1answer
2k views

Adding a custom attribute to Sales order grid

I have created a custom attribute which is the customer account reference and we set this in the back end through the customer page. However we need to add this to the Sales order grid as well. I ...
2
votes
2answers
3k views

Override Mage_Adminhtml_Block_Sales_Order_Grid

I'm trying to override the Mage_Adminhtml_Block_Sales_Order_Grid class, but no success with that. My config.xml file: <?xml version="1.0"?> <config> <modules> <...
2
votes
2answers
196 views

Where else magento save the customer details who has made an order except “sales_flat_order”?

I was searching the list of customer's name, email who has made orders. Searching the internet I got to know that it is saved in the "sales_flat_order" table. But in some record the "firstname" ...
3
votes
0answers
611 views

Custom Options of Configurable product do not display in email

I have an extension that do not offer any support so i am trying to fix by my own. So far what i did is locate the file that is responsible to render the custom options as this is my issue, it is ...
0
votes
3answers
6k views

Get ordered product count in magento

We are using magento 1.9. In that How to get ordered product count not order qty of product. I want to how many product is there in that order? I am using this but it showing ordered qty only <...
2
votes
1answer
977 views

Join Custom Table With Admin / Sales / Order / View

Basically i'm trying to add additional data's to sales -> order -> view page. I have a custom table named 'additional_order_info' i want to join this table with 'sales_flat_order' using 'order_id' ...
0
votes
1answer
852 views

Magento save Transaction ID and Customer Detail from Payment Gateway into Order Details

I had used the following code to add attributes to the Order table: <?php $installer = new Mage_Sales_Model_Mysql4_Setup; $attribute1 = array( 'type' => 'text', 'backend_type' => '...
1
vote
2answers
278 views

How to Track or Observe that an order is being edited in Magento at backend

I want to track that I am editing an order at backend in magento, so I want to track that Edit button has been clicked at backend in order section. See below image for more help- How can I track ...
0
votes
1answer
535 views

Magento new orders are placed as guest in the general group

Suddenly a month ago our shop started getting some new orders with customers defined as guest while being in the general group. These customers do not fall into the NOT LOGGED IN group, in the ...