Questions tagged [sales-order]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
3k views

Modifying shipping methods for admins creating orders

I am trying to apply changes to the shipping information that gets displayed once the admin clicks on the link to "Get Shipping Methods & Rates". Obviously I need to grab the product and address ...
0
votes
2answers
3k views

Automatically send Invoice & Shipment using Observer

I am trying to automatically send shipment email when an invoice is created for an order but I can't get me code to work... Here is what I have: config.xml <?xml version="1.0"?> <config>...
3
votes
1answer
1k views

addColumn to sales_flat_order_grid table with CASE data

Using Magento ver. 1.9.0.1 Using this amazingly well written answer "Add Column to a grid (observer) - Column ‘store_id’ in where clause is ambiguous issue" I have added new basic columns to the ...
0
votes
1answer
2k views

Add the 'Short Description' to the 'items ordered' table within a sales order admin view

Is it possible to add the 'Short Description' to the 'order view' within the 'Sales admin page'. Primarily in the 'items ordered' table so; [Product][Item Status][Original Price][Price][Qty]...etc ...
1
vote
1answer
1k views

Null customer_address_id on sales_flat_order_address table

Does somebody know why field customer_address_id is null on sales_flat_order_address table? As regards to order for customer who has an address. In class: Mage_Sales_Model_Order_Address I found this: ...
1
vote
4answers
2k views

How reset order history magento without myphpadmin?

I need nulling/zero/ reset order history. For example, New Order # 100000001 (BUT NOT # 10000023) Preferably without the use MyPHPadmin. Maybe my problem can be solved through SSH commands or by ...
0
votes
1answer
248 views

Override Mage_Adminhtml_Block_Sales_Items_Column_Name Block

I'm trying to add an extra data to the file: /app/design/adminhtml/default/ad02/template/downloadable/sales/items/column/downloadable/name.phtml Target idea: provide a link with a href="....": <...
2
votes
4answers
8k views

How to get invoice from order item

Is it possible to get the invoice from an order item? To be more specific: I'm iterating the order ItemsCollection and if the order-item has been invoiced $item->getStatusId() == ...
2
votes
3answers
13k views

How to change the title text on the sale email?

How can I change the title text on the sale email? I always get this in my email when I make an order, Main Website Store: New Order # 100000016 I want to change it to, [Name of my Store]: New ...
1
vote
1answer
943 views

Magento: create order programatically: Configurable product issue [duplicate]

I am trying to create order programmatically. There are configurable products having single base attribute i.e. Size. and some of configurable products have multiple (more than one) associated ...
0
votes
1answer
285 views

how to set payment method to new order by code [closed]

I have payment method: $paymentmethods = Mage::getModel('marketplace/paymentmethods'); $paymentmethods->load(1); and new order: $order = Mage::getModel('sales/order') ->...
1
vote
2answers
544 views

insert custom item variable through xml in magento admin order detail Magento

Hi I am developing a magento extension in which I need to show a product custom attribute in the magento order detail. I want to add it through xml without editing/ overwriting any core file .. For ...
1
vote
0answers
152 views

download custom option uploaded image in order even if Add Store Code to Urls set yes [duplicate]

Magento ver. 1.7.0.2 In my Store Under System -> Configuration -> General -> Web , I set Add Store Code to Urls Yes. Due to i get problem to download custom option image from order. If I set NO than ...
1
vote
1answer
645 views

Magento : get customer_id from salesOrderList

i try to get orderl list with this API :salesOrderList (SOAP V2) i use this code : env = new SoapSerializationEnvelope(SoapEnvelope.VER11); env.dotNet = false; env.xsd = ...
2
votes
1answer
687 views

add error message to order view and stop shipment creation process [closed]

I have created event observer to add tracking numbers automatically. I am useing this event: <sales_order_shipment_save_before> And there is my code for adding tracking number: public ...
2
votes
1answer
2k views

Attaching guest checkout orders to user accounts

I'm stuck with a specific requirement on my magento shop. I have enabled the guest checkout method on magento to remove the necessity of registering. But now this information is useless for providing ...
0
votes
1answer
341 views

Add discount rule name in sales order [closed]

I want to add discount rule with coupon code in order total section in sales order in admin-end. Please let me know where I can make modifications. Sorry I just forgot to tell that coupon are getting ...
1
vote
1answer
926 views

Magento Database: Negative values in sales_flat_order.discount_amount?

Looking into my Magento database inside the sales_flat_order table, I find - since the day I updated from the 1.4 to the 1.5 version - the values of discount_amount being negative (e.g. -5 EUR for a 5 ...
0
votes
1answer
274 views

Change created order number

I lost a few orders at Magento and I am recreating it manually, but I need to keep the old id. I do not have enough information to create all the lost orders, because this some orders id need to be ...
1
vote
2answers
6k views

how to get the qty of items invoiced

I'm creating a partial invoice and I'm unable to get the qty invoiced to send it to the payment gateway. The code I'd written in my model for capture() is: if ($order->hasInvoices()) { ...