When your order is stuck and you want to update your Magento order status in my SQL then for that you have to create a temporary table called temp with 2 columns, increment_id and status.
Fill this table with orders numbers that need to be updated and the new status
e.g. canceled.
Status values can be found at:-
SELECT *
FROM sales_order_status_state
These queries will then update the sales order and the order grid with the new status.
UPDATE sales_flat_order
, temp
SET sales_flat_order.state = temp.status, sales_flat_order.state = temp.status
WHERE sales_flat_order.increment_id = temp.increment_id;
UPDATE sales_flat_order_grid
, temp
SET sales_flat_order_grid.status = temp.status
WHERE sales_flat_order_grid.increment_id = temp.increment_id
Hope your query is solved now. Do share in your views and experiences in the comment section below.
If you want get query string params in controller file,...
Create di.xml and add the below code Magemonkey/Redirect/etc/frontend/di.xml [crayon-62846ef0604a3484666865/] Create...
You can try below code to change local date to...
Step 1: First you need to add registration.php file in...
Step1 : Override message.js in current theme file on the...
UK: +44 2081232989
USA : +1 7077366533
AUS : +61 390185455
(We Operate Globally)