Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 8 of 8

Thread: Change Pictures When Different Colors are Selected

  1. #1
    datzent83 is offline Member
    Join Date
    Jul 2006
    Posts
    82

    Default Change Pictures When Different Colors are Selected

    Is there anyway to achieve this with ML v8.1?

    http://www.shopbop.com/elise-belt-mo...=other-viewall

    When you click on the color the picture swatches change appropriately.

  2. #2
    Jao is offline Senior Member
    Join Date
    Oct 2008
    Posts
    1,132

    Default

    This is already built-in and it's working great on my local end of ML8012...

  3. #3
    datzent83 is offline Member
    Join Date
    Jul 2006
    Posts
    82

    Default

    Where is that function? I can't find it.

    There supposed to be two swatches. One for the colors and the other one for different views. When we click on a different color the picture swatches change to match that color.

  4. #4
    ASPAlfred is offline Senior Member
    Join Date
    Nov 2007
    Posts
    2,244

    Default

    If you set appconfig: MultiColorMakesSwatchAndMap to true (see the description for details), once you've uploaded multiple image in the medium multi-image manager in the admin, the software automatically creates the swatch image and so with the swatch map code to be used for that matter.

  5. #5
    datzent83 is offline Member
    Join Date
    Jul 2006
    Posts
    82

    Default

    Please take a look at the attachment of what I am talking about.
    Attached Images Attached Images  

  6. #6
    ASPAlfred is offline Senior Member
    Join Date
    Nov 2007
    Posts
    2,244

    Default

    Ok. It can't be done by default, sorry. The scope of the image swatch built-in the software is limited to a single swatch image only. The color attributes are placed in the dropdown list, the product main image changes (not the swatch) once you've selected a color from the dropdown. There's more information here.

  7. #7
    datzent83 is offline Member
    Join Date
    Jul 2006
    Posts
    82

    Default

    Would it be possible to use XML Packages to build something like that, or will it involve getting into code?

  8. #8
    Jao is offline Senior Member
    Join Date
    Oct 2008
    Posts
    1,132

    Default

    Well, modifying the XMLPackage wouldn't be enough. You'll need a method that would handle that behavior. The method should be able to detect the change in the drop down and act accordingly to the index change. If you have the source code, the AspDotNetStorefrontCore.ShoppingCart.GetAddToCartF orm already does that and would change the swatch image. This would require modification on the ProductImageGallery class of the same project (AspDotNetStorefrontCore) and the wolthius.aspx.cs which actually handles most of the watermarking.