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: how to get product id or category id from url in xmlpackage

  1. #1
    lleemon is offline Member
    Join Date
    Jan 2007
    Posts
    57

    Default how to get product id or category id from url in xmlpackage

    I am converting from v7 to v9. My xmlpackages do not see to be working. I don't think it's grabbing the id from the url.

    Here is the formation of the url:
    http://www.domain.com/c-52-seo-name-of-page.aspx

    Does someone have an example of how to grab the value 52?

    I have the following code but doesn't seem to be working:
    <xsl:variable name="reqProductID" select="/root/QueryString/productid" />
    <xsl:variable name="reqCategoryID" select="/root/QueryString/categoryid" />

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

    Default

    Can you turn on debug for the xmlpackage - then let me have the url?


    TTFN

    BFG

  3. #3
    lleemon is offline Member
    Join Date
    Jan 2007
    Posts
    57

    Default

    When I set debug="true' on my xml.config file I get the following error:
    XSLT compile error

    Once I turn it to off I don't get this error.

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

    Default

    debug="true'


    Did you copy & paste that? you have a double quote and a single quote...


    Can you post your xmlpackage?


    TTFN

    BFG

  5. #5
    lleemon is offline Member
    Join Date
    Jan 2007
    Posts
    57

    Default

    No, here it is.

    Code:
    <?xml version="1.0" standalone="yes" ?>
    <package version="2.1" displayname="Entity Table Condensed" debug="true" includeentityhelper="true">

  6. #6
    lleemon is offline Member
    Join Date
    Jan 2007
    Posts
    57

    Default

    Appears I am looking for EntityID

    Code:
    <xsl:param name="EntityID">
                    <xsl:value-of select="/root/Runtime/EntityID" />
                </xsl:param>
    AspDotNetStorefront Multistore 9.1.0.1/9.1.0.0 with sourcecode