Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: Manufacturer's image on product page.

  1. #1
    Join Date
    Nov 2007
    Location
    earth
    Posts
    202

    Default Manufacturer's image on product page.

    A while back, I had added manufacturer's image to the product page and there was a rather lengthy thread about it. Well, I am trying to do the same thing again, but that thread is gone and I can't seem to figure out how to do it again.


    From what I remember, there was a SQL query to find the manufacturer's image and then a call for that image, but for the life of me, I can't seem to figure this out again.

    Anyone know how? I did it before, but my notes are gone

  2. #2
    Join Date
    Oct 2008
    Posts
    1,132

    Default

    Nope, there's no need to run a SQL script or modify any code. On the XML package, you're using, for instance product.SimpleProduct.xml.config, locate the template Product, then add the following params:
    Code:
    <xsl:param name="ManufacturerID" select="/root/EntityHelpers/Manufacturer/Entity/EntityID"></xsl:param>
    <xsl:param name="ManufacturerAltText" select="/root/EntityHelpers/Manufacturer/Entity/SEAltText"></xsl:param>
    Then you put this line anywhere you want the manufacturer image to appear:
    Code:
    <xsl:value-of select="aspdnsf:LookupImage('manufacturer',$ManufacturerID,'','', 'icon', $ManufacturerAltText)" disable-output-escaping="yes" />
    and that's it...

  3. #3
    Join Date
    Nov 2007
    Location
    earth
    Posts
    202

    Default

    hmmm...

    It does show a manufacturer's image, but not that of the item. It shows the first manufacturer's image by alphabetical order and not the manufacturer's image of the product on the page. This happens on every product page, even on stock product.xml packages.

    ML 8.0.0.0

    But there is an image, so it's something in the call I guess. I will keep trying on this and let you know if I find out anything

  4. #4
    Join Date
    Oct 2008
    Location
    Metairie, LA
    Posts
    62

    Default

    I tried inserting this code and received the following errors:

    XmlPackage Exception: Exception=Last Trace Point=[]. Extension object 'urn:aspdnsf' does not contain a matching 'LookupImage' method that has 6 parameter(s).


    System.ArgumentException: Last Trace Point=[]. Extension object 'urn:aspdnsf' does not contain a matching 'LookupImage' method that has 6 parameter(s).

    at AspDotNetStorefrontCommon.XmlPackage2.TransformStr ing() at AspDotNetStorefrontCommon.AppLogic.RunXmlPackage(X mlPackage2 p, Parser UseParser, Customer ThisCustomer, Int32 SkinID, Boolean ReplaceTokens, Boolean WriteExceptionMessage)

  5. #5
    Join Date
    Oct 2008
    Posts
    1,132

    Default

    Could you tell us what version are you using?

  6. #6
    Join Date
    Oct 2008
    Location
    Metairie, LA
    Posts
    62

    Default

    I am using v.7.1.0.0

  7. #7
    Join Date
    Dec 2009
    Posts
    2

    Unhappy Same problem as osdude

    I'm having the same problem as osdude, but I'm trying to put the manufacturer's name on the page, not the image. Here is the code I'm using:

    Code:
    <xsl:value-of select="/root/EntityHelpers/Manufacturer/Entity/Name" disable-output-escaping="yes" />

  8. #8
    Join Date
    Oct 2008
    Posts
    1,132

    Default

    Dbennett4995: The ML7100 doesn't have the AltText parameter added, unlike the latest ML8012. You could change that line above to:
    Code:
    <xsl:value-of select="aspdnsf:LookupImage('manufacturer',$ManufacturerID,'','', 'icon')" disable-output-escaping="yes" />

  9. #9
    Join Date
    Oct 2008
    Location
    Metairie, LA
    Posts
    62

    Default Jao

    Luck with getting a logo to appear, however it is the same problem as these other two guys being that only the first logo alphabetically is being display for all products that have the same XML display package.

  10. #10
    Join Date
    Nov 2006
    Location
    Cleveland, OH
    Posts
    1,792

    Default

    That code is pulling from the EntityHelper xml, so it's only going to return the ManufacturerID of the first manufacturer it finds in that XML (if you set debug="true" in the xmlpackage it will dump the xml returned for the package to the page so that you can review). Which xmlpackage are you using and where in the package are you trying to place the manufacturer image so I can explain the best way to achieve this?
    <a href="http://www.aspdotnetstorefront.com">Shopping Cart Software</a>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •