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.

CommentFileSizeAuthor
#2 1167840-product-kit-item-form.patch3.78 KBlongwave
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

TR’s picture

Component: Products » Product kits

Moving to "Product kit" component.

longwave’s picture

Status: Active » Needs review
FileSize
3.78 KB

This 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.

TR’s picture

#2: 1167840-product-kit-item-form.patch queued for re-testing.

Status: Needs review » Needs work

The last submitted patch, 1167840-product-kit-item-form.patch, failed testing.

longwave’s picture

Status: Needs work » Active

Updated to match latest -dev and committed: http://drupalcode.org/project/ubercart.git/commitdiff/d2e3ad2

Back to active to improve the initial component selection.

quinns’s picture

Any 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.

TR’s picture

@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.

quinns’s picture

TR, 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.

quinns’s picture

I 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/

alimbert’s picture

Could you provide the code that you used to add this JQuery to to the product kit form template?

j4’s picture

Hi Quinn,

could you please help with this? How did you put the jquery into place?

Thanks in advance!
Jaya

kopeboy’s picture

Priority: Normal » Major
Issue summary: View changes

So this patch hasn't been included in any stable release after almost 2 years?

TR’s picture

Category: Task » Feature request
Priority: Major » Normal

@kopeboy: Did you even read the entire thread? Your comment makes no sense in context.

TR’s picture

Priority: Normal » Minor
Status: Active » Postponed
TR’s picture

Version: 7.x-3.x-dev » 8.x-4.x-dev