in

dashCommerce

An ASP.NET Open Source e-Commerce Application

Vary a products image with attributes

Last post 10-19-2008 12:43 PM by theonlylawislove. 8 replies.
Page 1 of 1 (9 items)
Sort Posts: Previous Next
  • 05-18-2008 3:59 PM

    Vary a products image with attributes

    I was just wondering where to get started with this. I'd like to be able to change the image based on the attribute chosen on the product detail page. Also wondering the limitations of adding multiple attributes that remove the certain amounts (from inventory) based on quantiy of kit or package chosen.  

  • 05-19-2008 10:10 AM In reply to

    Re: Vary a products image with attributes

     This is exactly what I'd like to do. http://cherokee.nwscrubs.com/cherokee/Solid-Reorderables/350.aspx?id=716605081343

    Can anyone give me somewhere to start?

  • 06-02-2008 8:41 AM In reply to

    Re: Vary a products image with attributes

    can anyone help me? please.

  • 06-02-2008 11:26 AM In reply to

    Re: Vary a products image with attributes

    Hi All,

    I also would be interested in doing this.  In fact, I have to do this in the near future.  I was thinking of looking into Silverlight.

    Louis

  • 09-03-2008 11:59 AM In reply to

    Re: Vary a products image with attributes

    Did anyone find a solution to this?  I have an item that has about 20 different colors, which I handle with an attribute.   This generates a unique sku for the color/item combo and all is good, except that I need to change the item picture when they select a color from the attribute dropdown!  Right now the selected color and the actual image are completely out of sync.

    -----
    Amos Van Horn
    amos.vanhorn@gmail.com
  • 10-14-2008 3:19 PM In reply to

    Re: Vary a products image with attributes

    I'm still new to asp .net, but check out some tutorials on asp Update Panels and AJAX. 

    Basically, the attribute selector dropdown menu lives in an Update Panel, and when the value of the dropdown changes, a Label control within the SAME Update Panel gets populated with the attribute information.  All of this takes place asynchronously... basically meaning the entire page doesn't reload, just the information within the Update Panel.

    You need to do the same thing with the product image control (defaultImage).  You will need to make sure that the Image control is located within an Update Panel.  Then you would use the "Triggers" feature of Update Panels to allow the Attributes Panel to talk to the Image Panel.  If it were me, I would append the SKU suffix of the currently selected attribute onto the end of the image name, and load that image.

    Your image structure would then need to be as follows:

    Web/repository/product/  :

    defaultImage.jpg

    defaultImage_skuColorValue1.jpg

    defaultImage_skuColorValue2.jpg

    ... etc.

     Hope that helps...

    ~Ryan

  • 10-15-2008 10:11 AM In reply to

    Re: Vary a products image with attributes

    Actually I've started to lose interest in this package, I do appreciate your help on this subject but I just don't see the need anymore. I asked the question what almost 6 months ago?

  • 10-15-2008 1:15 PM In reply to

    Re: Vary a products image with attributes

    I can appreciate your remark digitalbill.  I was viewing my comment more as a resource for anybody else who might come along and need assistance with this same issue.  It seemed that there was some interest in this topic when you posted, but nobody supplied even a hint of a solution. I would certainly hope that you weren't still waiting for a response to this issue.  Take care.

  • 10-19-2008 12:43 PM In reply to

    Re: Vary a products image with attributes

    I did this for a client before. It is very easy.

    Contact me at theonlylawislove@gmail.com if you want some help doing it.

    ~Paul
Page 1 of 1 (9 items)