We recently upgraded one of our clients from Magento 2.3.6 to 2.4.3-p1. After go live, our client realized they were seemingly no longer able to add products to an order that was being created via the Magento admin. What used to work prior to the upgrade now caused added products to no longer appear. In addition, once a product was added to the order, the button for adding more products would also disappear.
Here were the specific steps to recreate this in 2.4.3-p1:
- Log into the Magento admin
- Go to “Sales”->”Orders”->”Create New Order”
- Select any customer on the resulting “Please select a customer” screen
- Click the “Add Products” button
- Find any product, check the “Select” checkbox, enter a quantity and hit the “Add Selected Product(s) to Order” button
After completing the steps above, the selected item(s) should be added to the “Items Ordered” grid towards the top of the screen. Instead, that area will be empty. Additionally, the “Add Products” button that was there no longer appears.
We did note that in this case, if you refresh the page in your browser, the item(s) you selected will appear in addition to the button. So, that’s at least a short-term workaround.
For a more permanent solution, have your development team run this command in your environments:
bin/magento config:set system/security/max_session_size_admin 512000
This increases the admin session size from its default of 256,000 bytes to 512,000 which is apparently necessary to get around this problem.
Once you’ve made the config change, you’ll be able to add products to Magento admin orders without refreshing and losing the button to add more products.
We found references to this issue in a few places online (here, for example), but nothing official from Adobe, so its not clear to us whether or not this will be fixed in upcoming Magento releases.
If you’re interested, check out more of our Magento posts on our blog.
As always, feel free to contact us if you have any questions about Magento Admin Orders in 2.4.3-p1 or anything ecommerce!