Questions tagged [sales-order]

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

Filter by
Sorted by
Tagged with
1
vote
2answers
279 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
537 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 ...
1
vote
1answer
124 views

Magento get Seller SKU In order Mail

We are using Marketplace in my website also some product have more then one seller. Even every seller have unique SKU. While Place order Customer got a mail that mail contain only Base seller sku not ...
0
votes
2answers
2k views

How to get paid invoice collection filter by payment method

How can I get invoice collection filter by status paid & payment method ? I know how to filter order collection by payment method $orders = Mage::getModel('sales/order')->getCollection(); $...
0
votes
1answer
439 views

How to have different Order ID's or Order Prefix/Suffix for Frontend and Backend Order

We have a unique requirement from one of our client. What is needed is a separate Order Id for Frontend orders and different for backend orders. The basic necessity is to differentiate between the ...
0
votes
1answer
547 views

How can I get special price of an ordered product in “sales_flat_order_item” table

A product which have following prices in catalog has been sold with qty 1:- Price - 65.00 [INR] [Inc. Tax Rs 8.23] Rate - 51.61 [INR] [Inc. Tax Rs 6.54] SpecialPrice - 61.75 [INR] [Inc. Tax Rs 7.82] ...
1
vote
1answer
347 views

How can I Hide Edit button in Sales Order section in magento

I want to hide Edit button in Sales Order Section in magento as shown in below image- Can anyone help me to hide this button.
0
votes
2answers
1k views

Is Recurring profile create a new order on every billing Cycle?

If i will create an order with recurrent profile and it is Billing Period Unit is daily Billing Frequency is 1 Auto Bill on Next Cycle make Yes I have studied on this link http://www....
1
vote
1answer
432 views

increase default limit of sales_order pagination

How can I achieve in the sales_order adminhtml to display the pagination additionally below the grid? Also, I would like to have a default limit of 50 rows instead of 20 (in the sales_order ...
0
votes
1answer
1k views

Magento send Order update mails

I am using Marketplace in my website. In here seller can able to Process the order. I given below the code public function shipementorderAction(){ $id = $this->getRequest()->...
1
vote
0answers
53 views

Magento admin checkout problem

I have a weird problem regarding a order checkout form the back end section. I have a product that is not is stock. It has 0 qty, no back-orders, and the out of stock status. When i try to make an ...
3
votes
3answers
657 views

Get first and last inovice # in every date

I am trying to show invoices for every single day, so for that purpose I used group by on created date and sum on subtotal. This is how I done it : $orders = Mage::getModel("sales/order_invoice")->...
0
votes
2answers
1k views

add button to order view after tracking number is added to order

is it possible to add custom button to order view when tracking number is added? i have event observer(<sales_order_shipment_save_before>) that adds tracking number to order when button submit ...
1
vote
3answers
140 views

Disabled custom order Status Button

How to disable Custom order status button after change the status. If i click rto button after that button should be disabled? $message = Mage::helper('sales')->__('Are you sure you want to ...
1
vote
2answers
3k views

Magento change Ship order status

In Magento order status ship button while clicking it automatically change complete. So i want to change some custom order status like shipment How to change it?
0
votes
1answer
631 views

[Magento 1.9.2]Customer email not saved

I'm having an issue with customer email not being saved in order details. It happens when not registered customer makes an order, whether he chooses to register or buy as a guest. That is how "...
0
votes
3answers
2k views

Online Refund to Paypal

Is it possible to create an online refund to PayPal? I am going to Sales -> Orders Selecting the order I want, then select Invoices from the menu at the left and click Credit Memo, however the only ...
0
votes
1answer
701 views

Add column in sales order grid without join

Since I got on stackoverflow the comment to post my problem here, I'll give it a try. I hope this is ok because of duplicate posting. https://stackoverflow.com/questions/34336110/magento-add-column-in-...
1
vote
1answer
182 views

magento custom status as front end

We are using Magento Marketplace My Controller if(count($trackingcol)==0){ $trackingcol=Mage::getModel('mpshippingmanager/tracking')->getCollection() ->addFieldtoFilter('order_id',...
1
vote
2answers
417 views

Magento order custom status

How to get custom order status in frontend We are using Marketplace in our site in that seller can able to processes order through front end. Now i added custom status as Shipment how to call this to ...
1
vote
0answers
685 views

How to convert custom attribute from order item to invoice item?

I am creating a module to add a additional field (which is a custom product attribute) for invoice. I have added the custom attribute for the product and then it is converted to quote item, also it ...
1
vote
1answer
3k views

why load() is different from loadByIncrementId() for sales/order model

I am getting order details through sales/order by using load(order_id). But load does not give the data, but loadIncrementById() returns the order data. What is the difference between these load() ...
1
vote
1answer
3k views

Add product to wishlist programmatically not working

I am trying to add products from the admin create order screen straight into the users wishlist programmatically however it doesn't seem to be working. $quote = Mage::getSingleton('adminhtml/...
1
vote
1answer
295 views

Magento add Custom order status

how to add these order status in order view page Order Status: Pending Approve Processing Invoice Shipment Complete Staus
4
votes
1answer
28k views

magento 1.9: Get order & customer details [closed]

I am creating a extension on sales_order_place_after event observer & i want to get order & customer Details with following code but i don't have any idea to do this config.xml <?xml ...
1
vote
3answers
2k views

Delete product from order

Let as assume i got 1 order that order have 10 product's after that some reason i want to Delete or Cancel for particular product only i can keep 9 product . After Delete/cancel total also update ...
0
votes
2answers
291 views

Disable button if order is canceled

I added two button in order view it's working fine but i want to disable this button if order is complete and order is canceled time My Abstract file public function addOrderstatusAction($observer) ...
0
votes
1answer
3k views

What is the best method to delete sub stores from Magento?

So we have a Magento setup with 1 main store and 48 sub stores. For a multitude of reasons we now want to reverse a lot of work quickly and essentially delete these 48 sub stores systematically. We ...
4
votes
2answers
4k views

Not able to create shipment programmatically

Below is a snippet from my code. I get the following error when I try and create a shipment and track info for the order. Uncaught exception 'Mage_Core_Exception' with message 'Cannot create an empty ...
2
votes
1answer
26 views

No shipping or Payment showing in Admin for new users

When creating an order in Admin we are experiencing the issue where there is no option for shipping or payments. This seems to happen only when creating a new user. There is no other consistent ...
0
votes
2answers
2k views

Quote (item) is missing but the order exists

I experience a strange issue: The order was placed successfully but I can't find any according quote. mysql> select increment_id, entity_id, quote_id, created_at from sales_flat_order where ...
1
vote
1answer
188 views

My order and order details collection query takes too much time suddenly

I am working on order collection query outside magento directory.It is working fine and also providing results. But suddenly fetching records time is more as compare to previous time. Now it takes ...
0
votes
2answers
531 views

Get product id only from load order condition

I am working on order collection module. I want only product id after load particular order. This is my query, $ordered_items = Mage::getModel('sales/order')->loadByIncrementId($incrment_id); Is ...
1
vote
1answer
2k views

How can I set the billing and shipping addresses on an order that I am creating programatically?

I am creating a duplicate order that has been previously placed by a specific customer. How can I set the same billing and shipping address on the new order that I am creating programatically?
3
votes
2answers
4k views

Custom Field Value not saving on sales_flat_quote & sales_flat_order

I have created a custom field from sales_flat_quote & sales_flat_order tables and in checkout page have field called delivery_date. When an order is being placed, it's not saving my custom field ...
0
votes
1answer
837 views

Admin: get data from sales_flat_order_address

How can I get a field from sales_flat_order_address and use it in sales admin view? I've got a boolean field and i like to add a code if it is true <?php if ($myattribyte = 1): ?> <p> ...
2
votes
1answer
5k views

Order and Product information in Magento 2

In Magento 1 Simply I can get the Order information by using Mage::getModel() as well Product also same thing right? $order_information = Mage::getModel('sales/order')->load($order_id); as well $...
0
votes
0answers
62 views

Override admin html of ordered items

I have created custom order item and quote item named logo. $installer->getConnection()->addColumn($this->getTable('sales_flat_quote_item'), 'logo', 'varchar(255) NOT NULL'); $installer-...
0
votes
1answer
2k views

save custom field from sales_flat_order_item to sales_flat_order

I have created a set of custom variable in my sales_flat_quote_item and sales_flat_order_item and saved custom field values into sales_flat_quote_item using the observer <...
0
votes
1answer
99 views

Apply Order Number Prefix For Orders Container Recurring / Nominal Products

I am in the process of trying to highlight specific orders containing recurring / nominal products to an admin user as well as inside a data feed that exports order data on a daily basis to a ...
2
votes
2answers
2k views

How to get all order items using sales_order_grid_collection_load_before in magento

Below is my code but I can't fetch order items details,just I need order items from sales_order_grid_collection object,I also try getAllItems() but it does not work This is my config.xml file <...
1
vote
1answer
593 views

Getting The State History of all Order and export

Is it possible to get the state history of all orders and add it in a new column on sales report? I have a module similar to the core and I'd like to add a column with all states of each order. ...
0
votes
1answer
222 views

Fatal error when I enable filter => true in addColumn

I've been able to filter based on custom addColumn to sales_order_create_search grid. Custom Added Column $this->addColumn('seller_id', array( 'header' => Mage::helper('marketplace')-&...
0
votes
1answer
685 views

Save custom text to order comment

On product page I've a custom text field and I want to save it to order's comment section, if it is filled and order placed for that user. I can either use sales_order_status_history_save_after or ...
1
vote
1answer
868 views

Sales Order Grid - Can't export custom columns

I've added the a few columns to the sales_flat_order_gridtable. The values are obtained in these two events sales_order_resource_init_virtual_grid_columns (using addVirtualGridColumn() ) and ...
2
votes
2answers
694 views

Cannot edit order or send the email from “sales - orders” inside admin

We updated to magento 1.9.2.1 but now we can't edit any order or send the email from the order itself inside "sales - orders"; what could be the reason? CronJobs are working properly. When I click "...
1
vote
1answer
50 views

Getting current data after calling save()

I'm experiencing some trouble with saving data to some of my custom columns in the sales_flat_order_payment table. After quite some time I realized that when I call $this->payment->save(), the ...
0
votes
1answer
98 views

How to use init() method to load order by ID?

I am trying to load sales orders via cron to then export via api I have successfully been able to load an order but I need to parse the same order_id into other methods and classes in order to get the ...
0
votes
1answer
342 views

Setting custom payment data in block

I'm trying to implement a custom payment module and have added a few custom colums to the sales_flat_order_payment table. After the customer places the order, these fields should be updated and some ...
0
votes
1answer
669 views

Order totals not displayed (i.e. blank) in Magento admin

The order totals section of the Order View page is blank in Magento admin panel. All other information from the transaction is displayed on the order view (customers address etc and payment method) ...