-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot add new columns to item grid in admin sales_order_view layout #10824
Comments
I am working on it |
@theodorhanu thank you for your bug report. |
Internal ticket to track issue progress: MAGETWO-75321 |
I can give a go at this one |
It's already fixed and merged into develop branch |
@hervebackstage it would be great to backport this fix to 2.2-develop branch |
@hervebackstage you can also try to find all places with missing name and add test to make sure no new blocks like that are added. |
…id default renderer block #11076
Internal ticket to track issue progress: MAGETWO-80102 |
Hi @theodorhanu the issue has been fixed in #11076 and will be available in 2.2.1 |
How to make as first column in table @theodorhanu |
Does it possible to set position of the adding custom column? |
It should be possible by adding an afterGetColumns plugin for these two classes In plugin you can add something like this (should be same for both plugins, only injected class should be changed ):
file: app/code/Vendor/Module/Plugin/Block/Adminhtml/Order/View/ItemPlugin.php:
|
I am trying to add a new column to item grid in admin sales/order/view .
The problem is that in the layout the default renderer does not have a name attribute, only the as attribute, thus not allowing to add new column content. Even though I can add new column headers to the layout, using
<referenceBlock name="order_items">
directive, I cannot add the column's content using the same aproach.Preconditions
Steps to reproduce
Expected result
Actual result
There should be posibility to add cell renderer using
<referenceBlock name="default">
directive, like column addition.The only solution I find is adding an afterGetColumns plugin to Magento\Sales\Block\Adminhtml\Order\View\Items\Renderer\DefaultRenderer, solutions which does not seem so elegant to me.
The text was updated successfully, but these errors were encountered: