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

Thread: Product / Category Images from external Site

  1. #1
    harsha.gus is offline Senior Member
    Join Date
    Mar 2009
    Posts
    301

    Exclamation Product / Category Images from external Site

    Hi currently this returns the image url for Product
    Code:
    <xsl:value-of select="aspdnsf:ProductandEntityLink(ProductID, SEName, $EntityID, $EntityName, 0)" disable-output-escaping="yes" />
    returns values as /images/products/icon/ball.jpg

    But I want to append a External url to the image name

    I want to get the result as
    http://www.externalSite.com/images/products/icon/ball.jpg

    Can any one suggest how can i get this done?

    Thanks
    ASPDNSF 8.0.1.2
    rbgx
    AspDotNetStorefront ML
    v8.0.1.4

  2. #2
    lehmans is offline Junior Member
    Join Date
    Jun 2012
    Location
    Dalton, OH
    Posts
    12

    Default

    Um...I think you may be a little mixed up here? The aspdnsf:ProductandEntityLink() function doesn't return the image url for a product. It returns the url for the actual product. For example it would return something like "p-183-thumbtack-holder.aspx". The aspdnsf:ImageUrl() function will return the image url which is something like "/images/Product/large/183.jpg". If this is the function you want to use to return an image on an external site you could use the following:

    <img src="http://www.externalSite.com{aspdnsf:ImageUrl(ProductID, 'Product', 'large', false)}" />

    - Ryan

  3. #3
    harsha.gus is offline Senior Member
    Join Date
    Mar 2009
    Posts
    301

    Red face Thanks

    Quote Originally Posted by lehmans View Post
    Um...I think you may be a little mixed up here? The aspdnsf:ProductandEntityLink() function doesn't return the image url for a product. It returns the url for the actual product. For example it would return something like "p-183-thumbtack-holder.aspx". The aspdnsf:ImageUrl() function will return the image url which is something like "/images/Product/large/183.jpg". If this is the function you want to use to return an image on an external site you could use the following:

    <img src="http://www.externalSite.com{aspdnsf:ImageUrl(ProductID, 'Product', 'large', false)}" />

    - Ryan
    Excellent! that is what i was looking for Thanks you.
    rbgx
    AspDotNetStorefront ML
    v8.0.1.4