Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
It would be a very nice feature if it's possible to add fields to the quick edit view. Now it's possible to edit the price and status in quick edit. It would be nice to add any custom or existing fields like stock, sale price etc.
Comment | File | Size | Author |
---|---|---|---|
#4 | commerce_backoffice-2088215-quickeditfields-4.patch.patch | 3.75 KB | discipolo |
Comments
Comment #1
mengi CreditAttribution: mengi commentedI would love to see this feature added as well. It would be very useful to quickly turn on/off sales prices.
Comment #2
RgnYLDZ CreditAttribution: RgnYLDZ commentedYou can add fields with views and change the formatter to Editable (Needs editablefields module). I just figured this out myself, I excluded the "Quick edit form" from display and added my own set of fields. I don't know why but I think the Quick edit form does not play well with other editable forms. Maby it's something I did wrong.
So that's a way to deal with this.
Comment #3
Rosenstrauch CreditAttribution: Rosenstrauch commentedi was also wondering how best to extend the quickedit view and came up with a small module inspired by https://drupal.org/comment/8175699#comment-8175699
it shows all fields by default in quickedit but fields can be skipped in the field_ui settings
its on github for now until someone decides if its useful and where it should go
https://github.com/rosenstrauch/commerce_backoffice_quickedit_ui
Comment #4
discipolo CreditAttribution: discipolo commentedhere as patch
Comment #5
pslcbs CreditAttribution: pslcbs commentedHi @discipolo,
Thanks for your patch. I was giving it a try and it works but is not as perfect as I would like.
Commerce price field has the checkbox but yo can't enable or disable it.
Fieldgroups have not the checkbox to permit enabling or disabling.
May be is a good idea to create a Custom display selectable from Views. I don't know the difficulty of this approach, neither if is possible, but I think it would be a better and quicker solution
Comment #6
spgd01 CreditAttribution: spgd01 commentedI tried the #4 patch but don't know where to make the edits once the patch is installed. Any help would be appreciated.
#3 seems to be gone now.
Any idea if we can get something like this added to the module?