Questions tagged [sales-order]

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

Filter by
Sorted by
Tagged with
2
votes
1answer
1k views

Add products to sales quote in magento admin programmatically

I have customized search product grid as per client need (created new grid and disabled search grid) under sales order create page. I have created new grid successfully after "Items Ordered" block. ...
0
votes
1answer
241 views

Admin/Manual Order - Why is Adding Items slower after order custom attribute installation?

I'm working in an organisation that makes use of the admin/manual order functionality within the Magento Admin Panel. I've recently added a custom module which has absolutely killed the performance of ...
2
votes
0answers
516 views

Original Price is not sets in programmatically order

I try to place order programmatically but i have many problems during add items but now i have only one problem. $produt is my product , $qoute is my qoute. $item = $quote->addProduct($product, ...
1
vote
1answer
788 views

$_item->getProduct()->getShortDescription() & getShortDescription() Not displaying in frontend email

$_item->getProduct()->getShortDescription() returns blank when used in a frontend email. If I use send email in Sales > Orders in admin it displays. I tried setting the Attribute to global. Any ...
0
votes
0answers
163 views

How do I filter the sales grid in admin panel?

This is my code: class Mage_Adminhtml_Block_Sales_Order_Grid extends Mage_Adminhtml_Block_Widget_Grid { public function __construct() { ...
0
votes
1answer
1k views

Magento Admin Login Error: Item (Mage_Sales_Model_Order) with the same id “1178” already exist

I get this error when trying to log in to my admin. Please help! /lib/Varien/Data/Collection/Db.php(576): Varien_Data_Collection->addItem(Object(Mage_Sales_Model_Order)) Trace: 0 /lib/Varien/...
0
votes
1answer
378 views

Getting error while refreshing “adminhtml/sales_order_totals” block through AJAX

I am developing custom module, in which i'm adding custom block sales->order edit page with field price that update total paid price (Order Totals) block. But while refreshing adminhtml/...
1
vote
1answer
919 views

Magento programatically convert quote to order - orders missing in backend

I'm dealing with a strange issue with orders placed with PayPal (most likely IPN problems) as a payment method and I have about 10 orders that are not showing in Magento Admin backend under Sales -> ...
1
vote
2answers
495 views

Credit Memo is not working in Magento 1.8.1

I am facing an issue while creating an Credit memo for a order. I am getting error as "Argument 'Invoice number' not set!". This order has been placed through PayPal. Please help to fix this issue.
2
votes
1answer
633 views

Cancelling an order is messing up the increment IDs

Here's the scenario. For example $oldOrder has an increment ID of 100000044 if($oldOrder->canCancel()) { $order->cancel(); $order->save(); } When I call the above,...
1
vote
1answer
204 views

Magento Export order comment to a text file [closed]

What will be the best practice to export Magento order comment to text file? Eg. What event I shall grab to get the data. I'd like to grab the comment as someone add a comment. (then save it to a ...
2
votes
1answer
100 views

Order Export issues on Chrome

Magento 1.6.2.0. When exporting Orders from the grid view in magento, as CSV, the name of the file downloaded is appended with -, attachment. This seems at the minute to be only happening in Chrome. ...
2
votes
2answers
1k views

Adding order from backend for client associated to admin scope

Here is my problem: I've created customer in backend, associated it to admin website. I don't want this customer to be able to login on frontend. I want to add order for this customer from backend. ...
2
votes
1answer
793 views

Custom filter in the sales order admin grid giving php strict notice error

I've been able to add columns to the sales order grid table in admin, but when I try to use the column to search I get an error Strict Notice: call_user_func() expects parameter 1 to be a valid ...
0
votes
1answer
162 views

How to calculate an invoice with canceled items?

I have a order with canceled order items in it. As an example: Item 1 = 10 euro Item 2 = 20 euro Item 3 = 30 euro Now the items 2 and 3 are canceled. The grand_total should now be 10 Euro. But when ...
2
votes
2answers
1k views

export fails on custom grid

I have changed the transaction grid so I needed to do it in local folder because they were comming from Core files. here is the folders structure so in the controller I have done this: public ...
2
votes
2answers
885 views

Is the incremental order Id unique across all customers/orders/websites?

My question is, how unique is the incremental order Id? The payment gateway I'm using requires a unique order Id for every purchase attempt. So let's say customer A tries to purchase, but his ...
0
votes
0answers
572 views

Magento 1.9.1.0 Order email stopped working after the latest security patch instalation

Magento order confirmation email was working properly, suddenly it stopped working after the installation of latest magento security patch. I am also unable to preview the new order template. Error ...
1
vote
0answers
477 views

Trying to add an order_item attribute into the REST API

I'm having trouble trying to add in a custom attribute to the api/rest/orders output. In the checkout we collect a PO Number for each row of items in the basket and save this in the ...
0
votes
2answers
313 views

Why is additional_information on payment information empty?

While testing my checkout process, I buy an item and in the Sales, Orders admin screen, in the payment information box, I get 'CreditCard Payment has not been processed yet.' Instead of the credit ...
1
vote
3answers
2k views

How to search orders using a purchase order number [closed]

I need to be able to filter orders by searching the purchase order number from the order. Is this possible?
7
votes
4answers
2k views

Call to undefined method Mage_Directory_Helper_Data::getRegionJsonByStore() in admin sales order create

This is very strange. I disabled both app/community and app/local as well as replaced app/core with stock Magento files and yet I keep getting the following error: Call to undefined method ...
1
vote
2answers
574 views

how to add custom button in sale view

I need to add 1 input box and custom button in sale view section under admin.which send emails to those email ids which is in input box. How can I do this?
2
votes
2answers
668 views

Not getting customer orders in Magento 1.8.0.0

I currently have magento sending Emails to the customer upon making an order, but i am not getting bcc'd or a separate email notifying me at all. I do have all of the emails I wish to receive the ...
8
votes
2answers
8k views

How to get collection of orders which can be shipped?

I need orders which are not shipped yet or are partially shipped. I am using below code to get orders which can be shipped. foreach ($orderIds as $orderId) { $order = Mage::getModel('sales/order')...
1
vote
1answer
3k views

How to get Shipping Method Title Name in order confirmation email in Magento

I have set up shipping method in Magento admin Panel. like see below image- This shipping method has set Title and Method Name as shown in above image. When I get Order Confirmation Email after ...
1
vote
2answers
3k views

How to add new column to sales_flat_order_grid with default value

I used following method and it's working fine for me. <?php $installer = $this; $installer->startSetup(); $installer->addAttribute("order", "barcode", array("type"=>"varchar","...
3
votes
2answers
912 views

Filter collection on same attribute with different values

I want to filter collection for same attribute having two either values. example: ->addFieldToFilter('customer_group_id',Mage::getSingleton('customer/session')->getCustomer()->getGroupId(...
1
vote
1answer
697 views

Which observer method is used to determine, whether the payment made through paypal or not?

I need to send another mail when the order is placed...in majority cases it works fine but the issue comes with paypal. When I select paypal in payment method tab & then in next step of checkout ...
0
votes
1answer
100 views

Where is “Row total” defined in the Magento code?

On the sales order view screen in the backend of Magento 1.9, the products are listed as well as any discounts, GST etc. I need to know how this row total figure is calculated but am having trouble ...
0
votes
1answer
537 views

How to block an order by country?

I currently authorized in the administration five countries but I would want to keep one, so I just chose this country in configuration> General> countries Options> allow countries. The problem is ...
2
votes
1answer
789 views

Admin - Error on one particular order view

I am getting below error when trying to view one particular order in admin area. I tried to cancel / view but shows error page. There has been an error processing your request Image file was not ...
0
votes
0answers
372 views

missing orders after failed order

I have noticed that after a customer does a purchase which fails on the Authorize.net side, the next successful transaction is not added. Any idea why this may happen or how I can fix it?
0
votes
1answer
321 views

How to get all customers ever paid/complete an order

I am working on a custom Magento Extension. Here is how i take all customers in a customer group: $customers = Mage::getModel('customer/customer') ...
0
votes
1answer
2k views

Apply custom discount in grand total in create order magento admin

i want to apply custom discount on grand total (without coupons) in create order section in magento admin. i have added 2 lines code for check in this file app\code\core\Mage\Adminhtml\Block\Sales\...
0
votes
1answer
162 views

observer work even don't use extension!

I used an observer in my extension called checkout_type_onepage_save_order_after but I don't know why this observer work even customers do not use my extension! My extension is custom shipping ...
0
votes
2answers
2k views

No region found within the locale 'shi'

While opening Sales->Order Grid in magento backend, i am getting this issue - No region found within the locale 'shi' I have searched for the solution but nothing to work for my case. If anyone ...
3
votes
2answers
3k views

Filter orders by customer email id

How I can filter Magento order by any customer email id? I'm doing something like but I'm not getting the result. $customer_email ='abc@gmail.com'; $orders = Mage::getModel('sales/order')->...
1
vote
2answers
2k views

Using the API call to retrieve the coupon code on an order

I'm trying to use salesOrderInfo, but I can't see the coupon code returned anywhere. Is there any way of finding the coupon code for an order? I'm using the SOAPv2 API with WS-I compliance enabled. ...
0
votes
2answers
148 views

How to print only certain parts of the order? (just the order infomation)

Apparently we waste 2 pages of paper every time we print an order. What we need to print is just the order information (not the 1-5 text and intro). What is the best way to do that? (we print from ...
1
vote
1answer
842 views

Check Customer and product against order

I want to check the customer and specific product against any order.Like if it exist then i want to show this customer purchased product.I am trying this code but no luck. $orders = Mage::getModel("...
3
votes
1answer
7k views

Magento: add button on order view page with custom module

I want to add a button on the Order View page of the Admin. I created a custom module in app\code\community\CPT\TCS and added subfolders Block, controllers, etc, Helper, Model, sql This is my ...
1
vote
0answers
191 views

Filtering issue when override sales_order_grid to include Product name and discount amt in the Sales Order grid

I have added Product name and Discount Amt in the Sales order grid. It is displayed properly. But my issue is filtering is not working on these columns. The code of my Grid.php is like : class ...
0
votes
2answers
1k views

Change registered customer biliing email address on the time of checkout

I am trying to implement one functionality where logged in user can able to change the billing email address on the time of checkout. I have tried to do that but all the time it updates customer ...
1
vote
0answers
82 views

create a button by Extends Mage_Adminhtml_Block_Sales_Order_View not show the button [closed]

I'm trying to add a button on sales order view.but nothing appears. this is my block in my config.xml PMC_Manutention_Block_Adminhtml ...
0
votes
1answer
1k views

How to display multiple, fully detailed orders per page in the My Orders section of customer area?

I'm currently able to display single, detailed orders in the customer area of Magento's front-end. I log into my test account and I go to My Account > My Orders where I am presented with a summary of ...
2
votes
1answer
1k views

Warning: vsprintf(): Too few arguments in …/app/code/core/Mage/Adminhtml/Helper/Sales.php on line 133

I am testing CE ver 1.9.1.1 and discover the error. To replicate, go to any sales order page in admin and enter "80%" in the comment history, click the button Submit Comment. So far so good, then hit ...
0
votes
1answer
99 views

How to add custom field next to “Purchased From” column in order view section

In admin panel Order View section how to add custom field next to "Purchased From" column It should look like Purchased From: Main Website Main Website Store Default Store View Purchase Channel: ...
2
votes
2answers
753 views

add carrier field dropdown field in order grid magento

i am adding the form field through the observer but cannot able to post form field on mass action below my code public function render(Varien_Object $row) { $orderdata=Mage::getModel('sales/...
1
vote
0answers
213 views

print copy of order information in transactional email

How to provide print order information in transactional email. is there any default template is there? For example: "This email is to confirm example.com Order #[Order Number]. Click here [LINK: ...