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

Thread: Where does Summary display

  1. #1
    caraj is offline Member
    Join Date
    Dec 2009
    Posts
    79

    Default Where does Summary display

    Hello,
    I have the summary of a product filled in but cannot get it to display anywhere. How do we display the summary? The description displays.
    Thanks

  2. #2
    John Reasons is offline Senior Member
    Join Date
    Oct 2009
    Posts
    119

    Default

    Summary is only used for internal notes it is not meant to be displayed on the front end.

    http://manual.aspdotnetstorefront.co...ttributes.aspx

    Summary:

    Information entered on the Summary tab is not actually displayed anywhere on the front end. This can be used for internal notes, special instructions, etc. This tab uses the Telerik RAD editor, and can accept HTML code. To insert HTML, click the “<>” button at the bottom of the editor.

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

    Default

    You'll need to modify your xmlpackage to get the summary displayed.


    TTFN

    BFG

  4. #4
    caraj is offline Member
    Join Date
    Dec 2009
    Posts
    79

    Default

    OK thanks for the info

    Yeah I just wanted to include a brief description in addition to the product name.
    very similar to how they do it here in this aspdnsf
    http://www.gloriajeans.com/c-2-flavored-coffees.aspx

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

    Default

    Looks to me like they're displaying the first x characters of the description.


    TTFN

    BFG

  6. #6
    Richnyc30 is offline Senior Member
    Join Date
    Mar 2009
    Posts
    340

    Default Summary field

    Many xml packages reach for the summary data already. Entities will use summary by changing "description" to summary.

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

    Default

    Or added to the display by referencing the Summary where available
    Code:
    <xsl:value-of select="aspdnsf:GetMLValue(Summary)" disable-output-escaping="yes"/>
    <a href="http://www.aspdotnetstorefront.com">Shopping Cart Software</a>

  8. #8
    caraj is offline Member
    Join Date
    Dec 2009
    Posts
    79

    Default

    Hi George,
    Can you tell me where exactly I can find that line to modify?
    thanks

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

    Default

    Which xmlpackage are you trying to do this in? That's going to make a difference in what/how it gets changed.
    <a href="http://www.aspdotnetstorefront.com">Shopping Cart Software</a>

  10. #10
    caraj is offline Member
    Join Date
    Dec 2009
    Posts
    79

    Default

    I just have the standard ML software. I dont know what to change to make this work. I have the code.
    Thanks

  11. #11
    Jao is offline Senior Member
    Join Date
    Oct 2008
    Posts
    1,132

    Default

    Just as George said, we'll need to know the exact name of the XML package. Some package still needs to query it but for product.*****.xml.config, simply add it wherever on the XML package's content...

  12. #12
    caraj is offline Member
    Join Date
    Dec 2009
    Posts
    79

    Default

    Quote Originally Posted by AspDotNetStorefront Staff - Jao View Post
    Just as George said, we'll need to know the exact name of the XML package. Some package still needs to query it but for product.*****.xml.config, simply add it wherever on the XML package's content...
    THanks
    Where do I look to see the name of the XML package?

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

    Default

    what page is this on (category? manufacturer? product? etc).

    the XmlPackage is set as the Display format for it in the admin site, so you can see the name there, or post a URL and we can tell you which one it is if you want also.

    Thanks.
    AspDotNetStorefront
    Shopping Cart

  14. #14
    caraj is offline Member
    Join Date
    Dec 2009
    Posts
    79

    Default

    Quote Originally Posted by AspDotNetStorefront View Post
    what page is this on (category? manufacturer? product? etc).

    the XmlPackage is set as the Display format for it in the admin site, so you can see the name there, or post a URL and we can tell you which one it is if you want also.

    Thanks.
    Category pages. This is for the list of products displayed in the categories that I want to see the summary.

    The category that has the products that I need to see the product summary are using entity.gridwithprices.xlm.config

    the actual products that are in that category are using product.simplevariantformat2.xml.config

    Thanks very much

  15. #15
    caraj is offline Member
    Join Date
    Dec 2009
    Posts
    79

    Default

    Also this is a new store that is not even live yet so the xml packages can change if I have to

  16. #16
    DanV's Avatar
    DanV is offline Ursus arctos horribilis
    Join Date
    Apr 2006
    Posts
    1,568

    Default

    If you open the XML package, look for:

    Code:
    <xsl:template name="ProductCell">
    That contains the HTML and XSL that is used to build the individual product cells on the page. That is where you want to drop the XSL: value-of select statement that George provided earlier.

  17. #17
    caraj is offline Member
    Join Date
    Dec 2009
    Posts
    79

    Default

    I am at least getting closer.
    Does this look right? becasue I get this error:
    'xsl:value-of' cannot be a child of the 'xsl:choose' element

    </xsl:template>
    <xsl:template name="ProductCell">
    <xslaram name="pName" select="aspdnsf:GetMLValue(Name)"></xslaram>
    <xslaram name="pSalesPromptName" select="aspdnsf:GetMLValue(SalesPromptName)"></xslaram>
    <xslaram name="pSEAltText" select="aspdnsf:GetMLValue(SEAltText)"></xslaram>
    <xslaram name="AltText">
    <xsl:choose>
    <xsl:value-of select="aspdnsf:GetMLValue(Summary)" disable-output-escaping="yes"/>
    <xsl:when test="$pSEAltText=''"><xsl:value-of select="$pName" /></xsl:when>
    <xsltherwise><xsl:value-of select="$pSEAltText" /></xsltherwise>
    </xsl:choose>
    </xslaram>

  18. #18
    caraj is offline Member
    Join Date
    Dec 2009
    Posts
    79

    Default

    And it almost works here using this code I see this picture
    </xsl:template>
    <xsl:template name="ProductCell">
    <xslaram name="pName" select="aspdnsf:GetMLValue(Name)"></xslaram>
    <xslaram name="pSalesPromptName" select="aspdnsf:GetMLValue(SalesPromptName)"></xslaram>
    <xslaram name="pSEAltText" select="aspdnsf:GetMLValue(SEAltText)"></xslaram>
    <xslaram name="AltText">
    <xsl:value-of select="aspdnsf:GetMLValue(Summary)" disable-output-escaping="yes"/>
    <xsl:choose>

    I need to get rid of that "SM-S2" />" Not sure where that is comming from and also place the summary below the product name
    Last edited by caraj; 02-18-2010 at 06:13 AM.