Questions tagged [orders]

Mark questions related to Magento orders

Filter by
Sorted by
Tagged with
44 votes
6 answers
45k views

How to add fee to order totals in Magento 2

The following link will describe http://excellencemagentoblog.com/blog/2012/01/27/magento-add-fee-discount-order-total/ to add fee to order totals in Magento 1. Now this functionality is moved to ...
user avatar
  • 1,993
27 votes
3 answers
19k views

New order email being sent twice

I'm using Magento 1.9.1 and when creating a new order, whether it's from the frontend or Admin, the system is sending out 2 emails - both the same! I've looked on the net and found a bug which was an ...
user avatar
21 votes
4 answers
37k views

Add Column to Admin > Sales > Orders Grid

How can I add a column to the grid in the Admin section under Sales > Orders?
user avatar
9 votes
1 answer
16k views

What's the best event/way to listen for all order state changes in Magento 2?

I want to observe every order state change and react depending on the old and new status. What is the best way to accomplish this in Magento 2? It looks like there is the event ...
user avatar
  • 1,091
2 votes
1 answer
1k views

How to create duplicate new quote from old order quote Magento 1.7?

I want to create a new order programmatically by copying an existing order's quote. Here is what I have tried: <?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); ...
user avatar
  • 189
33 votes
12 answers
54k views

Magento 2 - What is the correct way to change default Order Id?

Magento 2. After a fresh install, the new Order id will be 100000001, 100000002, and so on. What is the correct way to change that increment id so it would be a higher number? For example 155555552, ...
user avatar
  • 963
47 votes
7 answers
18k views

Price re-index causes DB deadlocks during checkout

I'm experiencing an issue where I believe the Product Price re-indexing process is causing a deadlock exception in the checkout process. I caught this exception in the checkout process: Order ...
user avatar
  • 1,019
37 votes
1 answer
27k views

Recurring Profiles - How do they work?

I'm trying to understand how Magento manages Recurring Profiles and orders associated with them. I have some open questions about that: Order: How the subsequent "order" is created from a Magento ...
user avatar
  • 6,855
7 votes
5 answers
45k views

Magento 2: How to get order information using REST API?

I want to get order,customer information by using REST API. Anyone have idea about this?
user avatar
  • 1,448
5 votes
2 answers
15k views

Programmatically create a credit memo

Given an order that has been invoiced (by cash on delivery for testing) and is in state "processing", how can I create a credit memo for a given sku and quantity (in code that is outside of Magento ...
user avatar
  • 1,180
7 votes
3 answers
14k views

Magento 2: How to override Adminhtml "Shipping & Handling Information" Information

I'm following https://ranasohel.me/2015/10/02/how-to-overwrite-sales-view-order-phtml-file-in-magento2/ I would like to override magento\vendor\magento\module-shipping\view\adminhtml\templates\order\...
user avatar
  • 9,513
23 votes
2 answers
34k views

Magento 2.1.1 How to load Order with Increment ID using OrderRepository object

What would be the latest best practice to load Order using increment ID (instead of Order ID) using OrderRepository
user avatar
25 votes
1 answer
56k views

magento: invoice PDF design customization

I want to customized the Invoice PDF layout. when there is big product name the the table data are not looking proper aligned. How Can i easily manage the design of the PDF INVOICE. I tried to ...
user avatar
7 votes
6 answers
27k views

catch order place after event magento2

I want to catch sales order place after event in Magento 2. Here is my events.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
user avatar
8 votes
3 answers
5k views

Magento order confirmation is sent to all customers

I see a strange behaviour in one of our shops: when an order is placed, the confirmation email is sent in CC to all registered customers that have an order in state "processing". It happens ...
user avatar
4 votes
1 answer
3k views

How to find missing orders in Magento

When I check the orders were placed on our site in the Magento admin panel, some of the order numbers are missing or we can say there's no sequence in order number. Example: Magento was at number ...
user avatar
  • 1,124
1 vote
5 answers
4k views

How to delete an order programatically in Magento 2?

How can we delete a Magento2 order programatically? There's ways to do this in Magento 1.X. Is it the same methodology for Magento2 as well?
user avatar
  • 9,857
3 votes
2 answers
8k views

Magento 2: How to get order from Customer Id

I'm learning Magento 2 and got a headache while trying to find how to get all orders from customer. With Magento 1.x, we can get all orders from customer with the below code. $yourCustomerId = '123123'...
user avatar
  • 2,871
0 votes
2 answers
7k views

Is it possible to update order item price and order total after order is place

Hi want to update order item price and grand total and order details after order is placed. suppose,I have place an order with item Item A - order item price $10 Item b - order item price $20 ...
user avatar
  • 75.9k
0 votes
3 answers
7k views

Programmatically invoice a single product off of an order

How could I go about programmatically invoicing a single product off of a sales order of more than one product? I.E Order X has three products, SKU1, SKU2 & SKU3. I only want to create an invoice ...
user avatar
  • 7,485
32 votes
3 answers
19k views

Programmatically Creating Shipments

I came across different ways to create shipment programmatically. They are //Type 1 $converter=Mage::getModel('sales/convert_order'); $shipment=$converter->toShipment($order); ...
user avatar
  • 1,935
2 votes
3 answers
5k views

Programatically Create Order in Magento 2.1

Has anyone figured out how to programatically create an order in Magento 2.1 yet ? There are a few tutorials kicking around for 2.0 which work nicely but every since I upgraded it no longer works. ...
user avatar
  • 1,094
3 votes
2 answers
14k views

magento programatically create order with php code

i wrote a code that does below 1: created customer if customer not there --> this part works fine 2: logs in customer add product to carts and do checkout --> this does not works below is code, ...
user avatar
6 votes
2 answers
8k views

How to migrate only orders with Data Migration Tool?

I want to migrate ORDERS from magento1. What i already achieved: Migrate all data(customers,orders,products,categories,settings etc) Migrate ONLY Customers Main objective to know config steps ...
user avatar
  • 4,657
6 votes
2 answers
7k views

What is the event that will fire after cancelling the order in Magento 2

I am trying to do something customization from my custom module after an order has been cancelled (Frontend as well Backend). For this I have gone through cancelled Observer on the sales/etc/events....
user avatar
  • 3,930
1 vote
4 answers
3k views

Magento 2 - create order programmatically with flat rate - No shipping information available

I tried to create order programmatically with flat rate shipping method with the help of below code. Here, order created successfully but shipping method and rates not apply to order. use Magento\...
user avatar
3 votes
2 answers
2k views

Magento2 Split Order Based on Vendor

I am trying to split the order based on vendor during checkout process. If there are two products in cart from different vendor, order needs to be split based on vendor. I have followed the answer ...
user avatar
  • 1,935
0 votes
2 answers
3k views

Magento event for adding order comment

Can anyone please let me know if there is any magento event available for adding comment to a particular order? Let me know if question is not clear.
user avatar
  • 371
25 votes
4 answers
33k views

What are the definitions of the order statuses? OR: Where should I integrate my order state?

I want to define some order states like "credit card payment received", the question is to which statuses they belong. Is there a definition for each of the built-in statuses? Edit: Seems like I ...
user avatar
32 votes
2 answers
111k views

Get Order Details by Order Id

I need to retrieve an order in Magento by its Id. How do I load a specific order by Id? So far I've gotten the initial query constructed: Mage::getModel('sales/order');
user avatar
  • 2,047
18 votes
2 answers
15k views

What is the difference between grand_total and base_grand_total of the order?

Can any one explain the difference between following attributes of the order? grand_total base_grand_total Any suggestions will be appreciated.
user avatar
  • 9,857
10 votes
4 answers
15k views

Magento 2: how to delete orders from the database

How can I delete the test orders created in my store? I have opened the database but I couldn't find the order table. Please help me to delete the orders. I'm using the later version of Magento 2.
user avatar
11 votes
1 answer
7k views

Process to create partial credit memo/refund for Paypal Standard orders

I see a number of issues reported that if an administrator sends a partial refund to a customer via Paypal then Magento receives an IPN that causes the whole order to be marked as Refunded (e.g. https:...
user avatar
10 votes
5 answers
34k views

Magento 2 how to get order collection

how to get order collection in custom module ? like My Orders collection in customers dashboard (frontend). this collection how to get?
user avatar
  • 357
4 votes
4 answers
13k views

What is the best way to delete a Magento order?

Synopsis I would like to delete test orders from my Magento store because they affect the statistics and reports of sales. Would the following code delete all records from: sales/order_invoice sales/...
user avatar
  • 1,736
4 votes
1 answer
7k views

Show custom attribute in Order view backend

I would like to be able to see additional attributes within the order items. So far I'm in the sales/order/view/items/renderer/default.phtml - and I've got the attributes with this snippet: $...
user avatar
15 votes
3 answers
25k views

Magento not sending order confirmation emails to admin

I'm at loss on what to do. This morning I configured cron and according to Aoe_Scheduler the emails in the queue are sent each 5 minutes. I don't, however, receive new order confirmations on my email ...
user avatar
  • 365
1 vote
4 answers
8k views

how to delete test orders in Magento

I am using Magento 1.7.0.2.I would like to delete the orders in my Magento site. I have tried to delete it in database but that is not the proper way. Thanks in advance!
user avatar
7 votes
13 answers
33k views

Magento 2: An error occurred on the server. Please try to place the order again

When user want to checkout sometimes i got below message. After correction of Billing & Shipping Address Sometimes user able to place order some times not. Due to this customer not able to order....
user avatar
  • 9,513
5 votes
4 answers
19k views

Magento 2: Update order status using rest API

Guys I want to update order status using API. I am using this api to change the order status but it's not working: http://dev-jawed.com/index.php/rest/V1/orders { "status" : "Out-for-delivery", "...
user avatar
4 votes
3 answers
6k views

Observer on sales_order_invoice_save_after

I need to execute some actions when the Order Invoice is created, so I've made an Observer and I've attached it to 'sales_order_invoice_save_after' event. The problem is that my Observer function is ...
user avatar
  • 336
4 votes
1 answer
8k 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 ...
user avatar
  • 175
4 votes
1 answer
5k views

Is there a way to hide prices?

I am planning to allow the guest user to be able to view the product catalog. But I would like them not to see the prices. Is there a way to do that?
user avatar
  • 717
4 votes
1 answer
667 views

No. of orders placed by customer in order and customer grid

I want to display the total no. of orders placed by the customer in the order and customer grid. This will help me identify the type of customer. Grid.php protected function _prepareCollection() { ...
user avatar
3 votes
2 answers
21k views

New order status staying "pending" instead of processing in Magento 2

We are using the Multisafepay payment methods and all our incoming orders get the status pending in our Magento2 webshop. Is there a setting we have to put in to get the orders to processing? It also ...
user avatar
  • 501
3 votes
1 answer
3k views

Order confirmation not being sent

after upgrading from Magento CE 1.9 to 1.9.1 order confirmations not being sent :(. I am using aoe sheduler and I am thinking that's looks fine or not? But the exception log contains for example ...
user avatar
  • 437
2 votes
1 answer
513 views

set acl permission for tabs in sales order view

I need to set ACL permission for the tabs under sales order view How can I do that?
user avatar
  • 627
2 votes
3 answers
18k views

Add custom block to order view information in admin Magento 2

I have overridden the core layout and template files using custom theme in Magento 2 And I have my block file at Netenrich\Oms\Block\Adminhtml\Order\View template file at serge.beraud@alphanova.com....
user avatar
  • 352
1 vote
1 answer
857 views

How can I apply Order Discount. Order Create By admin [closed]

How can I apply the discount for total order in custom order create for the customer? Note : My discount amount may vary for every order Is possible?
user avatar
  • 105
0 votes
0 answers
98 views

Magento 1.9 Observer - How do visible selected payment gateway only for specific customer group?

Following code return customer group, how to add condition if customer group "Tester" then only show selected payment gateway? app\etc\modules\Gta_FindPaymentGateway.xml <?xml version="1.0"?> &...
user avatar
  • 105

1
2 3 4 5