Skip to main content
9 votes
Accepted

How can i disable 100's of product in my site

You can change the product status in two ways. Through admin panel at catalog-->manage products section Through Excel sheet by import/export process. For method 1: Go to catalog > Mange Products ...
Baby in Magento's user avatar
5 votes
Accepted

Hide completed orders from sales/orders

The observer way: <events> <sales_order_grid_collection_load_before> <observers> <vendor_module_salesgrid> <model>module/observer&...
Raphael at Digital Pianism's user avatar
3 votes
Accepted

How To Manually change Order the Status to Processing Before Creating Invoice of the order?

Go to System->Order Statuses -> Click the button Assign Status to State -> select your new status (Processing) and the state (New) and save status Assignment. Then, you should see your new status (...
Ranipriyanka's user avatar
3 votes
Accepted

Magento2 : What is the difference between Order Status And Order State

The order state and order status are usually mixed up since their names and functions are similar. An order state is a position of an order in the current processing flow. Magento has the following ...
Dhiren Vasoya's user avatar
2 votes
Accepted

Magento2 API call returns 404 when Entity Not Found but 200 if is found. Why?

It seems Magento team decided to use 404 erro code for not found entities. You can find code here: vendor/magento/framework/Exception/NoSuchEntityException.php:45
Jonathan Ribas's user avatar
2 votes
Accepted

unable to update Status of product from csv

For changing status from DataFlow Profile use 'Enabled' or 'Disabled' in 'status' field. For Import/Export 1 or 2 should be indicated in 'status' field.
user00247's user avatar
  • 638
2 votes

How can I enforce the import of a product status on a product import?

I've struggled with the same problem for a while now and I think I've found the problem (at least for me..). Though I used the script-solution for a while aswell I had the Magento interface in my own ...
Jory Hogeveen's user avatar
2 votes

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

The different order states are defined in Mage_Sales_Model_Order: const STATE_NEW = 'new'; const STATE_PENDING_PAYMENT = 'pending_payment'; const STATE_PROCESSING = 'processing'; ...
Stefan's user avatar
  • 1,507
2 votes

Magento 2.2.5: How to try catch in magento with AJAX?

So as per you script, do the following: You have initialised resultJson object inside try at very last line in try. So when catch will be calling resultJson will not have that class object. So put ...
Kumar M's user avatar
  • 787
2 votes
Accepted

Custom order status between Processing and complete in Magento2

I think you confuse "state" with "status" here. "Processing" and "Complete" are states, which means that they have some functionalities associated - for example, an order that is "Complete" can not ...
simonthesorcerer's user avatar
2 votes

Magento 2, how to hide button 'Invoice' when status 'pending'?

override \Magento\Sales\Block\Adminhtml\Order\View.php Class and add condition where invoice button created as below: if($order->getStatus() != 'pending') { if ($this->...
Ronak Chauhan's user avatar
2 votes
Accepted

Magento 2, how to hide button 'Invoice' when status 'pending'?

Try this : vendor\magento\module-sales\view\adminhtml\layout\sales_order_view.xml override file in your module <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
Prashant Patel's user avatar
2 votes
Accepted

Get only the last comment from order

Try below code to get latest comment. <?php $order = Mage::getModel('sales/order')->load($orderId); $history = $order->getStatusHistoryCollection()->getFirstItem(); echo $history->...
Abhishek Panchal's user avatar
2 votes

How To Manually change Order the Status to Processing Before Creating Invoice of the order?

If you want to change the order status by force. Then I am giving you one .php file. Just place the file in magento root folder. And whenever you need to change the status just enter the order id in ...
Soumik Rana's user avatar
2 votes
Accepted

How to add item status for an order in magento 2

You can get the status of each individual item using the following: foreach ($_order->getAllItems() as $item) { echo $item->getStatus(); }
AJK's user avatar
  • 751
2 votes

Magento 2.3.0 : Admin panel mass status action change after not updated in custom module grid record

This issue is resolved in controller got to CustomModule/Videogallery/Controller/Adminhtml/videogallery/massstatus.php inside execute function $post->setIsActive($status)->save(); change to $...
Rv Singh's user avatar
  • 1,627
2 votes

Magento2 : What is the difference between Order Status And Order State

The “order state” and “order status” are usually mixed up since their names and functions are quite similar. 1,Order Status. All orders have an order status that is associated with a stage in the ...
junaidh's user avatar
  • 63
2 votes
Accepted

Query to change the status of bulk magento orders

It is not recommended to directly update order status from database, but yes you can change it directly to database. Make sure one thing that you change status as well as state of the order. Like if ...
Shoaib Munir's user avatar
  • 9,482
1 vote

Magento2 : What is the difference between Order Status And Order State

The order status is just a label for the order state. It doesn't represent any logic or workflow. You could even assign the "status" closed for pending payments. If you have PayPal, CC and Checkmo ...
Mage2 Habibi's user avatar
1 vote

Magento 2.2.10 change cancelled order to pending

Yes it is possible, but you need to do it programmatically Create a helper in any of your module app/code/Vendor/Module/Helper/Data.php And use following code: <?php namespace Vendor\Module\...
Shoaib Munir's user avatar
  • 9,482
1 vote

Getting disabled products in a collection for Magento 2.3.1

This works for me $products = $this->productCollectionFactory->create() ->addAttributeToSelect('sku') ->addAttributeToSelect('name') ->...
Goose84's user avatar
  • 2,611
1 vote

Save product observer - detect availability

I've found the solution. There is event cataloginventory_stock_item_save_after which should be used to check stock change.
jpu's user avatar
  • 121
1 vote
Accepted

How to associate status value to label value in "listing" ui component (Magento 2.2)

So I actually Created a Status.php file in the folder [MyModule]/Ui/Component/Listing/Column With the following function : public function prepareDataSource(array $dataSource) { if (isset($...
Nerevar's user avatar
  • 111
1 vote

How To Manually change Order the Status to Processing Before Creating Invoice of the order?

"Processing" is both a "state" (major process step) and a "status" (minor information label within a step). An order goes through several states and each state has several statuses, a default one and ...
iphigenie's user avatar
  • 1,739
1 vote
Accepted

How to get information about payment status from order?

$order->getPayment()->getState(); Or try to use getData() to get all informations of your order.
PЯINCƎ's user avatar
  • 11.7k
1 vote

Warning: Invalid argument supplied for foreach() when viewing shipment

I had the same issue and I solved it by running this query in magento database: UPDATE `sales_shipment` SET packages = '[]'; I did this because I noticed that shipments working normally had packages ...
zekia's user avatar
  • 650
1 vote

Warning: Invalid argument supplied for foreach() when viewing shipment

The issue here is with the return value of Magento\Shipping\Block\Adminhtml\Order\Packaging. That is the class that is being used by the template as its block. Here are the contents of line 12 in the ...
tjons's user avatar
  • 1,831
1 vote

Add status history problem

Have a state related to status etiqueta_impressa? Try set status and add history comment separately, and search for observers after save order. $_order = Mage::getModel('sales/order')->load($...
Jonas B. Bernardi's user avatar
1 vote
Accepted

Disable the Product once timeout ends

For UI, you can use one of these FREE extensions: https://www.magentocommerce.com/magento-connect/price-countdown.html https://www.apptha.com/category/extension/magento/price-countdown Then setup a ...
Anil Suthar's user avatar
  • 4,731
1 vote

Magento orders stuck in payment_review: how does one release? and is stock reserved?

The solution is to remove the check $order->canCancel() because it can be cancelled (and cleared after X days)
snh_nl's user avatar
  • 5,452

Only top scored, non community-wiki answers of a minimum length are eligible