Page 1 of 1

Remove Kit Option

Posted: Fri Mar 12, 2010 2:46 pm
by kastnerd
I am trying to find a way to modify kits to allow me to remove/add options.

With standard java dropdown's its simple like this example.
http://www.felgall.com/jstip22.htm

I am looking threw the Producthelper.cs, BuyProductDialog.ascx, and ShowProduct 1.htm
I found the lines

Code: Select all

  public static Dictionary<int, int> BuildProductOptions(Product product, PlaceHolder phOptions)
    {

Code: Select all

    protected void GetSelectedKitOptions()
    {
        _SelectedKitProducts = new List<int>();
        //COLLECT ANY KIT VALUES

Code: Select all

[[ConLib:BuyProductDialog]]
I am looking for someplace I can add a javascrip to add or remove options based on the 1st option.

I know that "options and variants" has this type of control i am looking for. But I have to use kits for pricing / inventory reasons.

Any suggestion on what file to try to add the scrip too?

Re: Remove Kit Option

Posted: Fri Mar 12, 2010 2:49 pm
by jdarby
Are you wanting to give your customers an option like:
Product 1
Product 2
Neither

If so, what I did was to setup a non-shipping product titled "None" and it becomes a component of the kit under the appropriate section. This then allows the user to not select an item and adjusts the price accordingly.

Re: Remove Kit Option

Posted: Fri Mar 12, 2010 4:29 pm
by kastnerd
I am trying to build a very complicated kit builder. With some options1 it would limit the option2, option3 and option4. And 2 would control 2&3. I got it working with standard dropdown's.

Check out my link. http://67.225.187.60/Wheel-Builder-P298C24.aspx the bottom ones have the java control but are manually entered, it can control the kit tho. Select some options then go back and change the 1st or 2nd option.