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

Thread: hide the link for large image

  1. #1
    snowy is offline Senior Member
    Join Date
    Jan 2009
    Posts
    148

    Default hide the link for large image

    Hi
    I am using magiczoom and I have not need for the large image to be used in the product page.
    Could someone tell me where is the code can commented of allow me to make the link disappear from the page.
    I have the source code and I have tried to but with no luck as …

    HTML Code:
    else if (HasLargePic)
                    {
                        tmpS.Append("<br/><img border=\"0\" src=\"images/spacer.gif\" width=\"1\" height=\"4\" /><br/>");
                        tmpS.Append("<div align=\"center\"><a href=\"javascript:void(0);\" onClick=\"" + CommonLogic.IIF(ImgGal.HasSomeLarge, "popuplarge" + "_" + sProductID + "()", "popupimg('" + LargePicForPopup + "')") + ";\"><img border=\"0\" src=\"" + AppLogic.LocateImageURL("skins/skin_" + ThisCustomer.SkinID.ToString() + "/images/showlarger.gif") + "\" align=\"absmiddle\" border=\"0\" alt=\"" + AppLogic.GetString("showproduct.aspx.19", ThisCustomer.SkinID, ThisCustomer.LocaleSetting) + "\"></a></div><br/>");
                    }
    The xmlfile I am using is product.VariantsInRightBar.xml.config.


    Thanks

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

    Default

    The easiest way would just be to delete the large images and restart the site.

    Code:
    else if (HasLargePic)

  3. #3
    snowy is offline Senior Member
    Join Date
    Jan 2009
    Posts
    148

    Default

    HI Scott,

    What do you mean by deleting the large image, deleting the image from the system?
    If is that I need the large image for magiczoom. Or do you meaning something else?

    Thank you

  4. #4
    Dusty is offline Member
    Join Date
    Jun 2009
    Posts
    176

    Default

    By that we mean delete the Large Image files. Once you do that, on restart the Storefront will build your site with the knowledge that these are not present and the Storefront will abstain from building the Large Image links.

    Dusty
    ASPDotNetStorefront Staff

  5. #5
    snowy is offline Senior Member
    Join Date
    Jan 2009
    Posts
    148

    Smile

    Thank you Dusty

    Not sure if this is going to work in my case. Please correct me if I am wrong.

    I want to create product images by uploading Large images and let aspdotnetstorefront resize the image to Medium and small.
    Also I need the large image becouse magiczoom need that image to do what it has do do.
    Therefore I need to make the link disapear from the product page becouse the large image is very large.

    Thank you

  6. #6
    storedeveloper is offline Member
    Join Date
    May 2009
    Posts
    77

    Default hi

    use jquery to hide the div which contains the large image link. With jquery you can do things which you never imagine without changing source code

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

    Default

    Well, that would depend on what method the xmlpackage is calling to view an image. It could be LookupImage, LookupProductImage, LookupEntityImage or LookupVariantImage. The XML package you specified uses the LookupProductImage, therefore, the best way to disable the view larger image icon display is to comment out every occurrences of this section:
    Code:
    else if (HasLargePic)
    {
    tmpS.Append("<br/><img border=\"0\" src=\"images/spacer.gif\" width=\"1\" height=\"4\" /><br/>");
    tmpS.Append("<div align=\"center\"><a href=\"javascript:void(0);\" onClick=\"" + CommonLogic.IIF(ImgGal.HasSomeLarge, "popuplarge" + "_" + sProductID + "()", "popupimg('" + LargePicForPopup + "')") + ";\"><img border=\"0\" src=\"" + AppLogic.LocateImageURL("skins/skin_" + ThisCustomer.SkinID.ToString() + "/images/showlarger.gif") + "\" align=\"absmiddle\" border=\"0\" alt=\"" + AppLogic.GetString("showproduct.aspx.19", ThisCustomer.SkinID, ThisCustomer.LocaleSetting) + "\"></a></div><br/>");
    }

  8. #8
    storedeveloper is offline Member
    Join Date
    May 2009
    Posts
    77

    Default hi

    hi please use this

    1).Add this in template <script type="text/javascript" src="skins/Skin_1/jquery-1.3.2.min.js"></script>

    add jquery in skin folder.

    2). changes in Xml packgae

    <div id="thickImg">
    <xsl:value-of select="aspdnsf:LookupProductImage(ProductID, ImageFilenameOverride, SKU, 'medium', 1)" disable-output-escaping="yes"/>
    <script>$("#thickImg > div > div > a").addClass("IMG");</script>
    </div>


    3). Add in style sheet

    .IMG
    {
    display:none;
    }


    No- Need for source code.

    Please let me know if it is working for you.

    Thanks

  9. #9
    snowy is offline Senior Member
    Join Date
    Jan 2009
    Posts
    148

    Default

    Thank you I will try it today and let you know

  10. #10
    joebio is offline Junior Member
    Join Date
    Aug 2009
    Posts
    12

    Default popupimg

    Hi Jao,
    I presume that I would need the source code to do that?

    Thanks,
    Joe
    Last edited by joebio; 11-04-2009 at 09:36 AM.

  11. #11
    joebio is offline Junior Member
    Join Date
    Aug 2009
    Posts
    12

    Thumbs up LookupProductImage

    To: STOREDEVELOPER
    Works like a charm !