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 10 of 10

Thread: Image Swatches Position & Zoom

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

    Default Image Swatches Position & Zoom

    How were they able to change the position of the picture swatches and include them within the large image pop up?

    http://www.homesecuritystore.com/p-3...amera-kit.aspx

  2. #2
    AspDotNetStorefront Staff - Scott's Avatar
    AspDotNetStorefront Staff - Scott is offline Administrator
    Join Date
    Mar 2007
    Location
    Ashland, OR
    Posts
    2,390

    Default

    Moving the images/swatch around on the page can be done by modifying the XML package used for product display. The extra content on the 'view larger image' window is custom (note that it's popupzoom.aspx instead of the standard popup.aspx - they wrote a special page for the handling they wanted).

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

    Default

    What the code line I have to move/modify within my XML package to reposition the color swatches?

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

    Default

    I need to be able to move the "color swatches" above the price or below the description. How would I do it?

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

    Default

    Actually, you will need to modify the AspDotNetStorefrontCore.XSLTExtensionBase.LookupPr oductImage method. This method actually controls the placement of the Product image, Multi-Images/Macro and Color Swatches...

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

    Default

    Where is that file located? Can you can guide me in the right direction from where to modify the code? Thanks in advanced!

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

    Default

    I found the file and found LookupProductImage, but what modifications do I have to make to move the color swatch above the price? I am sorry for the dump questions, but I am pretty new at this and would appreciate all the help!

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

    Default

    Yes, all it takes is moving these lines of code:
    Code:
                   if (SwatchPic.Length != 0)
                    {
                        tmpS.Append(SwatchImageMap);
                        tmpS.Append("<br/><img border=\"0\" src=\"images/spacer.gif\" width=\"1\" height=\"4\"><br/><img border=\"0\" style=\"cursor:hand;cursor:pointer;\" src=\"" + SwatchPic + "\" usemap=\"#SwatchMap\" border=\"0\" />");
                    }
    However, you will also need to alter the table structure of the XML package considering that the Price and Description is rendered through the XMLpackage whilst the Image, Multi and Swatch is only rendered through the method call (aspdnsf:LookupProductImage)

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

    Default

    Anyone willing to do this for a price?

  10. #10
    tito is offline Senior Member
    Join Date
    Sep 2005
    Posts
    213

    Default

    is the swatch image still hard coded in the source code?
    I would like to change the position of the image to a different location.

    Any ideas, thank you
    Gordon

    8.1.1