Closed (fixed)
Project:
Commerce Core
Version:
7.x-1.x-dev
Component:
Developer experience
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
5 Jul 2010 at 16:22 UTC
Updated:
3 Jan 2014 at 01:42 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
damien tournoud commentedAgreed. Patch? :)
Comment #2
eclipsegc commentedI've been working on this, but I wanted to place it where others could take a look at it and participate/collaborate and hopefully give me some feedback.
I've branched specifically for this issue:
http://github.com/EclipseGc/drupalcommerce/tree/845602
I believe I have products and orders both largely done:
What's the reasoning behind this?
Good question, essentially any administrative functionality that didn't previously stand on its own, I've attempted to make it stand alone. This has largely revolved around forms of various sorts. Edit and delete functionality in most cases was making additional calls to set the breadcrumbs. There's at least one instance of a title being set (thus far), etc etc. If an administration function already stood alone as it was, I left it alone, if it didn't, then I've migrated the various form/validate/submit functions as necessary. This has gone pretty smoothly thus far, but I could really use someone walking behind me and testing to make sure I didn't break anything.
Please let me know what you come across, and I'll keep working against the additional modules that I haven't touched yet.
Eclipse
Comment #3
rszrama commentedWe discussed a few of these things in IRC:
The separate form ID can be accomplished by a simple implementation of hook_forms():
I believe the advantage of this is going to be that from commerce_product_ui_product_form_wrapper() you could then call drupal_get_form('commerce_product_ui_product_form') and be able to alter the buttons in properly. What I don't know is what this would do for other modules altering the product form... does this mean we'd need to instruct modules altering these forms to detect $form['#base'] or something? Looking at cart as an example.
Comment #4
rszrama commentedAddressed items 1-4 with the attached patch. Now investigating #5.
Comment #5
rszrama commentedStarted on #5 by dealing with the order / product edit forms. Now on to delete forms.
Comment #6
rszrama commentedAnd now done for delete forms. I believe that polishes off this issue.
Comment #7
rszrama commentedStill need to implement this method for product types I believe...
Comment #8
rszrama commentedOk, stick a fork in it. I think this issue is done. Any last review?
Posted about the process here: http://www.drupalcommerce.org/node/183
Comment #9
rszrama commentedComment #10
rszrama commented