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: Remove 'View larger image' button

  1. #1
    BradC is offline Member
    Join Date
    May 2007
    Posts
    43

    Default Remove 'View larger image' button

    How do I stop the 'View larger image' button from showing under medium images?
    I still need to have the large image available, so can't delete the image from the Large image folder.

  2. #2
    Rob is offline Senior Member
    Join Date
    Aug 2004
    Posts
    3,037

    Default

    um, edit source.

  3. #3
    BradC is offline Member
    Join Date
    May 2007
    Posts
    43

    Default

    I have searched all files for <img border="0" src="skins/skin_1/images/showlarger.gif" align="absmiddle" border="0" alt="Click here to view larger image"> and showlarger.gif - nothing.

    So where exactly is it? Are saying I need to purchase the source code?
    Last edited by BradC; 06-04-2007 at 10:36 PM.

  4. #4
    ASPDNSF Staff - Andrew Guest

    Default

    For this instance, yes you'll need the source code.

    It's defined in the ASPDNSFCommon\XSLTExtensionBase.cs file.

  5. #5
    George the Great is offline Senior Member
    Join Date
    Nov 2006
    Location
    Cleveland, OH
    Posts
    1,792

    Default

    Alternatively, remove the line from the xmlpackage that makes the call to retrieve the image (eg. depending on your version it may look something like <xsl:value-of select="aspdnsf:LookupProductImage(ProductID, ImageFilenameOverride, SKU, 'medium', 1, $AltText)" disable-output-escaping="yes"/>) and instead just call the image directly (just use an img tag with the images directory and the product id or sku or image filename override value as the src) so that you ONLY get the image you are looking for instead of all the built in html (including the View Larger Image button).
    <a href="http://www.aspdotnetstorefront.com">Shopping Cart Software</a>

  6. #6
    skpr is offline Member
    Join Date
    Feb 2010
    Posts
    31

    Default

    Quote Originally Posted by AspDotNetStorefront Staff - George View Post
    just call the image directly (just use an img tag with the images directory and the product id or sku or image filename override value as the src) so that you ONLY get the image you are looking for instead of all the built in html (including the View Larger Image button).
    I would like to use this method, but I don't understand how to use a variable for the image src. Could you please let me know how to do this? I'd appreciate a sample line of code. Thanks so much!

    -Beth

  7. #7
    travisalmand is offline Junior Member
    Join Date
    Mar 2010
    Posts
    24

    Default

    This is my line of code to do this:

    <a href="{concat('/images/product/large/', SEName, '.jpg')}"><img src="{concat('/images/product/medium/', SEName, '.jpg')}" alt="{concat(Name, ' Label')}" /></a>

    This is placed in the xmlpackage that the product page uses.

    It shows the medium image and loads the large image on click. This does assume a few things so your results may vary.

  8. #8
    esedirect is offline Senior Member
    Join Date
    Feb 2010
    Location
    Norfolk, UK
    Posts
    343

    Default

    Alternatively, edit the image showlarger.gif, so that it's empty
    http://www.esedirect.co.uk
    --------------------------------------------------------------------------
    Using MS 9.2.0.0 with the following customisations:

    Lightbox/Fancybox enlarged images;
    Auto-suggest searchbox;
    Extra product information shown only to our IP Address (such as supplier info, costs, etc.);
    Failed transactions emailed via trigger;
    Custom app to show basket contents when customer online;
    Orders pushed through to accounting systems.

    All the above without source!