AddOn Modification

amaslar's picture

I have a catering business. My dinner products allow the customer to select two side dishes that are included as part of the dinner. It seems that I should use product add-ons to accomplish this. The problem is, both add-on selectors should have the same list of side dishes. I don't want to create two identical add-ons, but would rather use a single add-on twice. The database does not restrict mapping a single add-on to a product twice, but an error is generated by the shopping cart:

"Multiple controls with the same ID 'lstAddOn3' were found. FindControl requires that controls have unique IDs."

I am a .net programmer, so I am considering modifying the code to allow for this, but before I do, is there a better way to handle it?

amaslar's picture

I went ahead and added this

I went ahead and added this capability, and it seems to be working well. I simply added an index to the ddl control's ID.