We changed our privacy policy. Read more.

Questions tagged [order-status]

Denotes questions related to order status management.

Filter by
Sorted by
Tagged with
0
votes
0answers
9 views

Add Auto Custom Order Status On Paid Order - Custom Payment Method

I want to add custom order status automatically on state of processing. Scenario: I have 2 payment methods, COD and Custom Payment method. COD Order is going to Processing when order is placed and ...
0
votes
0answers
18 views

Order Auto Cancel after 30 Minutes for Specific Payment method - Magento 2.4.0

How to i can set Order Auto cancel after 30 minutes for specific Payment method in Magento 2 ? Is there any solution i have tried few solution but those are not working. I am writing this code. Jco/...
0
votes
0answers
29 views

How can Magento 2 Vendor Model file override with custom module file

Magento 2 default paypal order after IPN completed turn to order status "Processing". This is the default order status I need to change paypal order IPN completed after order status "...
0
votes
2answers
17 views

Change status programmatically on order export but Sagepay/Opayo changing it back

We are exporting orders to a dispatch warehouse using the Xtento Order Export module. It is set up to happen automatically on order confirmation. The warehouse sends back a response of "received&...
0
votes
1answer
16 views

How to change order state from external file

Try to change the order state from a file within the Magento root directory. What I did: Connected to Magento engine and included the object manager: // Start Magento engine use Magento\...
0
votes
2answers
41 views

How to cancel order using tracking number in magento 2?

I need to cancel order using tracking number in magento2?
0
votes
0answers
11 views

How to add custom order status via setup data patch?

I have created custom order status via setup data patch and want to add one new status with the same file but the status is not creating. As like we do in setup/upgrade-scheme, is there any file we ...
0
votes
1answer
45 views

How to include pending orders into Magento 2 'Order Report' table 'sales_order_aggregated_created'?

I have to run 'pending' order status report, as checked by default Magento 2 doesn't allowed to run pending reports as this doesn't make any sense. Magento 2 ignoring to list pending order status into ...
0
votes
0answers
18 views

Magento 2.4 doesn't send mail to admin on change order status from using Observer

In my Magento 2.4 store it doesn't send mail to admin on change order status from using Observer. By using this it just reload and show white screen when i change the order status from Admin. My ...
0
votes
0answers
12 views

How to send email only for Admin and Customer on changing the order status for 'On Hold' and 'Cancel' status?

I have created an observer to send mail and i have used $order = $observer->getEvent()->getOrder(); if ($order->getState() == 'canceled') { $_objectManager = \Magento\Framework\...
0
votes
1answer
50 views

How to send email to Admin in Magento 2.4 when order status change ( Cancel and Hold )

I want to send Email in Magento 2 when order status change in ( Cancel and Hold ) My current code is : <?php namespace Hlemail\Customemail\Observer; use Magento\Framework\Event\ObserverInterface; ...
0
votes
0answers
25 views

How to find WHICH user account changed Order Status in Magento 2

I have a Magento2 store with multiple logistics staff members working on the same Orders list and Verifying, Cancelling, or Processing orders by changing their status I want to find which user account ...
0
votes
1answer
19 views

How to set order status in magento 2

I want to set orders status pending in magento 2.4. Please help me THANKS.
0
votes
0answers
18 views

Magento 2 - how to obtain list of order ids where status is processing

How to obtain list of ids or simply list of orders where the status = processing using objectManager ? (in external script)
0
votes
0answers
18 views

Correct way to update Order

since load and save methods are deprecated, which should be the correct way to update an order, for example: Lets say we have a cron running that gets a collection and then u do something like foreach ...
1
vote
1answer
28 views

Magento 2 how to assign a custom order status when canceling an order with a specific payment method

I have created a custom status called "custom_canceled" and associated it with the "canceled" state. I also have another status called "Canceled" associated with the ...
0
votes
0answers
12 views

Magento V1.9* What happens when an Order Status has no order state - Paypal fails to cancel order after disputed transaction

Magento V1.9.4.5 Interesting edge case came to my desk Problem paypal IPN fails to create credit memo and cancel order after paypal has dispute and reversed the transacti Date/Time week later after ...
0
votes
0answers
13 views

Magento 2 - Order Hold from frontend

From the Magento admin panel, user can update the status of an order to On Hold. Is there a way out for authorized admins to mark the order as hold from frontend. if ($order->canHold()) { $...
0
votes
0answers
15 views

Magento not sending order emails for third party payment gateway

Order Emails is not working only for particular payment gateway Eway. Emails trigger for Bank deposit & Paypal but eway payment gateway doesn't work. success.phtml, getCanViewOrder() is false in ...
0
votes
0answers
8 views

Magento 2 Specific Order Status Condition based email send with bcc

I created custom order status "Order Accepted". The order is received after accept the order. I need only this order accepted condition send to BCC email admin and customer. This is not ...
0
votes
0answers
21 views

Magento2 Missing order status after order is placed

My orders are missing order status in admin Shipping is Store Pickup, Payment is VISA by secure pay How am I suppose to debug this?
0
votes
1answer
58 views

Magento 2: How to change order status from Complete back to Processing

Is there a way to change the order status back to being Processing when order is already in Complete status? Is there some code way or MySQL way to achieve this?
0
votes
1answer
97 views

Magento2.3 - Programmatically setting order status to On Hold getting stuck

I have an observer in my module the fires when the order is placed, depending on a condition I use $order->setState(\Magento\Sales\Model\Order::STATE_HOLDED, true)->save(); $order->setStatus(\...
0
votes
1answer
19 views

Notes don't show in Guest Order Lookup page

My site has the ability for logged-in customers to see orders in their Order History page and also a Guest Lookup where they can lookup an existing order putting in order number and last name. The two ...
0
votes
0answers
7 views

Magento 2 - Pendent Payment status in orders

in the back-office of Magento I have a lot of orders with the status 'Pending payment'. I have revised the transactions and there are done. I'm not sure how to change it and the most important why it ...
0
votes
0answers
67 views

Downloadable product order status showing pending or closed

My downloadable product order status is showing pending. I have set this option Configuration->Catalog->Catalog->Order Item Status to Enable Downloads=Invoiced Placing orders using Zero ...
0
votes
0answers
111 views

Magento 2.3.5 Order Status not showing in admin order view

I have below orders status and are correctly assign to state. However it is not showing in Admin Order view page. Below are my database entries - Above order status should show in Admin Order View ...
0
votes
0answers
31 views

magento 2 - how to add tracking number and detail link open new window set in sale order grid

how to add tracking number and detail new window link set in sale order grid like below
0
votes
2answers
601 views

Magento 2: Set order status to complete programmatically results in "Please provide payment for the order"

i would like to set order to complete programmatically after they have been processed in another software. This is the typical code i found all over the internet: $orderId = 1000120319; $order = $...
0
votes
0answers
14 views

How is Order Status labelling working?

From this code I could find a logic for getting status label for adminhtml private function getStatusLabelForArea() Tried to find out how the Order status is translated. It seems illogical to me and I ...
0
votes
0answers
36 views

Order state is updated to closed after creating an invoice

This is my code for creating a pending invoice: if ($order->canInvoice()) { $invoice = $this->invoiceService->prepareInvoice($order); $invoice->register(); $invoice->save(); ...
0
votes
3answers
99 views

Order status changes after the 'sales_order_save_after' is executed

In Magento 2.3.0, I need to execute a specific function when the order is shipped (the Ship action is triggered). Basically, I am using the 'sales_order_save_after' event to check what's the current ...
0
votes
0answers
176 views

Magento 2: Invoice capture programmatically not working in magento 2.2

I am trying to capture payment online but it's not capturing. I am working with Magento 2.2. Not sure why this code does not work even the same code works with the latest version of Magento. public ...
1
vote
1answer
44 views

How to cancel order Programmatically without disabling URL security key

Here am trying to Cancel a order from a controller using order ID. but order is cancelling only if security key adding to URL disabled from admin configuration. How to cancel order without disabling ...
0
votes
0answers
18 views

How to change the order status cancel in magento after payment cancelled from ccavenue MCPG Payment Gateway?

integrate my website with ccavenue MCPG payment Gateway. I have an issue on orders, if customer cancel the payment from payment gateway successfully return to website and show the order as cancelled ...
2
votes
0answers
35 views

What is the standard order process workflow in Magento 1?

I'm trying to understand the order process in Magento 1.7. The background is: I'm extracting the payment (and later the complete checkout) from Magento to another system, but the order processing ...
2
votes
0answers
43 views

Magento 2 - offline payment have no entry in sales_order_status_history table

I am working on the implementation of Track order functionality in Magento 2 in which I am using the sales_order_status_history table to get all status history related to the orders. But this is ...
0
votes
0answers
25 views

Magento 2.3 Custom Order Status Reverts Back to Processing

I have created an custom order status by following below link. https://docs.magento.com/user-guide/sales/order-status-custom.html named "Online Payment Success" and I set this status to my ...
1
vote
0answers
31 views

Change order status from pending to processing in Admin

I'm not much experienced in Magento. I'm working on a legacy Magento codebase where we use Magento 1.7. Currently the status is changed from pending to processing using API calls. And it works ...
0
votes
2answers
193 views

Magento2.4 order grid status color

I want to add color to order grid on magento2.4 admin panel, sales -> orders. Each status should have own color, forexample status "complete" shows purple and all rows who has complete ...
0
votes
1answer
120 views

2.3.5 - New Orders with approved payment are created as 'Pending' as opposed to 'Processed' status - using third party payment method (Mercado Pago)

Magento ver. 2.3.5-p1 Third party Module used: Mercado Pago https://www.mercadopago.com.br/developers/pt/guides/plugins/official/magento-two Description: users are able to pay for orders and their ...
0
votes
0answers
45 views

Magento - Cancel Order not working

Hello Magento Experts, I have a strange issue in one of my Magento1.9.x site. In the admin panel, when I log in and then I click Sales -> Orders -> Edit any pending order, I click on cancel, it ...
0
votes
1answer
31 views

Cannot update order state and status programatically

This is my first attempt: $orderId = 57; $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $order = $objectManager->create('\Magento\Sales\Model\Order')->load($orderId); ...
0
votes
1answer
294 views

Magento 2.3.4 How to change the order status from COMPLETE to CLOSED after 5 days with a cronjob?

Since Yotpo plug-in triggers Automatic Review Email upon Magento changing order status to COMPLETE, I need to further change the status from Complete to Closed after 5 days so that the Automatic ...
1
vote
0answers
20 views

How to prevent paypal auto changing order status from processing to complete magento 1

noticed that the paypal standard module automatically transfers orders to the status of complete. How to prevent him from doing this? it does not work correctly, since the status complete means that ...
1
vote
2answers
366 views

Magento 2: How to remove the Order Status in admin panel?

In Magento 2 admin panel, I can see there is an option to unassign the status. But, is there any option to Removes the Default Order Status in the admin panel? If not, suggest the way how I can remove ...
1
vote
3answers
47 views

Where are invoiced + shipped orders marked as complete?

In some (not all) cases, I want to set the status of an order to a new custom status after it has been shipped. Where in the core code is an order updated to complete once it has been invoiced and ...
0
votes
1answer
16 views

Problem in retrieving orders with "processing" status

I am using the code below to filter orders by their status and after to change it to complete use Psr\Log\LoggerInterface; class OrderStatus { /** * @var \Magento\Sales\Api\...
2
votes
3answers
2k views

How to Change Order Status using Api in magento 2.3.5

I want to develop new module for changing order status using Api in magento 2.3.5 so can anyone have idea then please share with me. I want to create order status and change it using Api.
1
vote
1answer
509 views

How to cancel or close an order that has been invoiced through the API

I know in previous older versions (still 2.0) that I could cancel an order in processing with an invoice but recently that seems to have stopped working for a few of my clients. ie: /V1/orders/{id}/...

1
2 3 4 5
9