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

Thread: Show Summary on Featured Product xml

  1. #1
    peter3827 is offline Senior Member
    Join Date
    Nov 2005
    Posts
    281

    Default Show Summary on Featured Product xml

    Is there a way to show the summary instead of the description in the featuredproducts.xml.config file?

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

    Default

    Shouldn't be that hard....look for:

    Code:
    <div class="featuredProductDescription">
    <xsl:value-of select="aspdnsf:GetMLValue(Description)" disable-output-escaping="yes" />
    </div>
    ...and change it to:

    Code:
    <div class="featuredProductDescription">
    <xsl:value-of select="aspdnsf:GetMLValue(Summary)" disable-output-escaping="yes" />
    </div>

  3. #3
    peter3827 is offline Senior Member
    Join Date
    Nov 2005
    Posts
    281

    Default

    Yea, I thought that's what it was so i changed it but it didn't work.

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

    Default

    In addition to the XML change below, you'll need to modify the aspdnsf_GetFeaturedProducts stored proc to also return the Summary field. Then the summary will display when the package is rendered.

    Dusty
    ASPDotNetStorefront Staff
    Last edited by Dusty; 08-14-2009 at 02:06 PM. Reason: clarifying

  5. #5
    Sunny is offline Junior Member
    Join Date
    Apr 2011
    Posts
    1

    Default

    I've had this same problem. What should the aspdnsf_GetFeaturedProducts modification be?

    Thanks.

  6. #6
    miguelcrush is offline Senior Member
    Join Date
    Mar 2008
    Posts
    149

    Default

    In the SELECT statement, make sure it's bringing back the Summary field (in addition to everything else it brings back) from the Product table.

    So, it would be something like

    SELECT
    Product.ID,
    Product.SKU,
    Product.Name,
    ....
    [Add]Product.Summary
    FROM Product ...
    Mike Steyer
    Information Systems Admin