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

Thread: Remote Images

  1. #1
    Emissary is offline Member
    Join Date
    Sep 2008
    Location
    Florida
    Posts
    60

    Default Remote Images

    Does anyone know how to set product images to be retrieve from a remote site. I thought that all is needed is to insert the URL into the product's imagefilenameoverride field. But no image is being displayed.

  2. #2
    BFG 9000 is offline Senior Member
    Join Date
    Oct 2006
    Location
    South UK
    Posts
    882

    Default

    You'd need to modify your xmlpackage(s) for this.


    TTFN

    BFG

  3. #3
    Emissary is offline Member
    Join Date
    Sep 2008
    Location
    Florida
    Posts
    60

    Default

    What needs to be modified in the xmlpackage? Do you have an example you could provide please?

  4. #4
    Emissary is offline Member
    Join Date
    Sep 2008
    Location
    Florida
    Posts
    60

    Default

    Anyone have a suggestion on best way to do this within the xmlpackage?

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

    Default

    You would need to edit the XML package(s) you're using for product display and take out lines like this:

    Code:
    <xsl:value-of select="aspdnsf:LookupProductImage(ProductID, ImageFileNameOverride, SKU, 'medium', 1, $AltText)" disable-output-escaping="yes"/>
    And put in custom code to look up your remote images instead.

    You could also just modify the LookupProductImage method in XsltExtensionBase, which would make the change XML package independent and make upgrading easier, but that would require that you have the source code.