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.
This form could benefit from Ajax - the product selector is unhelpful in a store with many products, and doing this should also merge insert and update hooks which would simplify the code.
Comment | File | Size | Author |
---|---|---|---|
#2 | 1167840-product-kit-item-form.patch | 3.78 KB | longwave |
Comments
Comment #1
TR CreditAttribution: TR commentedMoving to "Product kit" component.
Comment #2
longwaveThis patch doesn't add Ajax, but does change the list of kit items/quantities/discounts into a neat table and adds draggable functionality to set the ordering.
Comment #3
TR CreditAttribution: TR commented#2: 1167840-product-kit-item-form.patch queued for re-testing.
Comment #5
longwaveUpdated to match latest -dev and committed: http://drupalcode.org/project/ubercart.git/commitdiff/d2e3ad2
Back to active to improve the initial component selection.
Comment #6
quinns CreditAttribution: quinns commentedAny action on this issue? We are building a site that will eventually have thousands of products and make extensive use of kits. The UI for choosing kit items is becoming really painful.
Comment #7
TR CreditAttribution: TR commented@quinns: "action on this issue" occurs when people like you who want/need this feature TEST and COMMENT on the patch provided. As you can see from #5, the initial patch has already been committed to Ubercart, and is already in 7.x-3.0. If you want to help move this issue along, you can make specific suggestions for the remaining task (how to "improve the initial component selection"), and perhaps provide a patch of your own.
Comment #8
quinns CreditAttribution: quinns commentedTR, thank you for your reply. Yes, I understand the drag-and-drop table of product kit items is in place, and we are enjoying that feature. I was specifically asking about the issue of *adding* new products to an existing product kit being a single multi-select form element, rather than something more scalable such as a set of auto-complete fields. I apologize if I was unclear in my previous comment. Thank you.
Comment #9
quinns CreditAttribution: quinns commentedI was able to implement a jQuery multi-select plugin. Makes it a lot easier to deal with large numbers of products and product kits. There are several of them available but the one we settled on can be found at http://loudev.com/
Comment #10
alimbert CreditAttribution: alimbert commentedCould you provide the code that you used to add this JQuery to to the product kit form template?
Comment #11
j4 CreditAttribution: j4 commentedHi Quinn,
could you please help with this? How did you put the jquery into place?
Thanks in advance!
Jaya
Comment #12
kopeboy CreditAttribution: kopeboy commentedSo this patch hasn't been included in any stable release after almost 2 years?
Comment #13
TR CreditAttribution: TR commented@kopeboy: Did you even read the entire thread? Your comment makes no sense in context.
Comment #14
TR CreditAttribution: TR commentedComment #15
TR CreditAttribution: TR commented