Want to create new ConLib to display Variant Images....

Store UI, layout, design, look and feel; Discussion on the customer facing pages of your online store. Cascading Style Sheets, Themes, Scriptlets, NVelocity and the components in the ConLib directory.
Post Reply
cswebtech
Ensign (ENS)
Ensign (ENS)
Posts: 13
Joined: Wed Aug 12, 2009 11:10 am

Want to create new ConLib to display Variant Images....

Post by cswebtech » Sun Sep 06, 2009 1:09 pm

I have a product with one option/variant. That one option has about 40-70 different choices so when showing the product I don't show the swatches, but I use the drop down list to make it easier for the person to select which one they want from the drop down list.

What I would like to do it to be able to write a new ConLib to display all of the option images on the product page (similar to the swatches table if you select the show swatches box). But I DONT want to show the swatches. That box will be unchecked. I want to just display all of the option Images not the swatch images. Does this make sense.

I'm trying to figure out where to find this code. I see things like:

Code: Select all

ProductOptionCollection productOptions = product.ProductOptions;
            int optionCount = productOptions.Count;
            for (int i = 0; i < optionCount; i++)
            {
            
            }
How do I get the images for the product Options. Or do I need to get the ProductVariantCollection ??

Is there any documentation on these functions, etc? Or does anyone know how to do this? I want something similar to the example about the "CustomProductSwatches" conlib that someone had posted. I want it to be similar to that but instead of showing the extra product images, I want it to show the product option/variant images.

thanks for any help!!! I'm new to all this and just trying to figure this out.

cswebtech
Ensign (ENS)
Ensign (ENS)
Posts: 13
Joined: Wed Aug 12, 2009 11:10 am

Re: Want to create new ConLib to display Variant Images....

Post by cswebtech » Wed Sep 09, 2009 6:46 am

Any helpers please?? Can you at least point me in the direction of which code I use to get the list of URLS for the variant images anyone?

Or anyone out there that can be hired for help?


Post Reply