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

Thread: Runtime VAT

  1. #1
    DotNetDevelopments is offline Senior Member
    Join Date
    Jul 2008
    Location
    Harlow / Essex / UK
    Posts
    619

    Cool Runtime VAT

    How can we detect if the user has display VAT inclusive or exclusive?
    C#/VB.NET Code:
    <xsl:when test="/root/Runtime/DisplayTax = '1'"
    It is not DisplayTax, what is it? Also what is the value for true and false?

    Thanks in advance.

    Also in an XML Package how can we detect how many variables a product has?
    We want to display different text if it has only one variable (Simple Product) than the text for a multi variant product.

    Thanks again.
    =====
    Version (Code/DB): AspDotNetStorefront MSx 9.1.0.1/9.1.0.0
    Execution Mode: 64 Bit
    Dot Net Developments - E-commerce By Experience

  2. #2
    domw is offline Junior Member
    Join Date
    Dec 2008
    Posts
    2

    Default

    I ran into this issue today. The following works for me:

    Code:
    <xsl:when test="/root/System/UseVATSetting = '1'">
    1= VAT Enabled
    2= VAT Disabled

    Sorry, no idea about the second part of your question.

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

    Default

    For the second question

    C#/VB.NET Code:
    <xsl:if test="count(/root/ProductVariants/Variant) > 1"
    (always assuming that you have a ProductVariants Query....)



    TTFN

    BFG

  4. #4
    DotNetDevelopments is offline Senior Member
    Join Date
    Jul 2008
    Location
    Harlow / Essex / UK
    Posts
    619

    Default

    Thanks Domw that was ideal.
    and BFG I was using that code I have been picking apart the multi variant display as I figured it would be the best place to look.) However I need the correct SQL query which is where I was falling down. Guess I just need to get the SQL right.

    Thanks for all your help that was brill.
    =====
    Version (Code/DB): AspDotNetStorefront MSx 9.1.0.1/9.1.0.0
    Execution Mode: 64 Bit
    Dot Net Developments - E-commerce By Experience

  5. #5
    DotNetDevelopments is offline Senior Member
    Join Date
    Jul 2008
    Location
    Harlow / Essex / UK
    Posts
    619

    Default

    The SQL was way over my head so I found a nice work around
    C#/VB.NET Code:
    <xsl:param name="Display" select="aspdnsf:GetMLValue(XmlPackage)"></xsl:param
    I know single products have a set XML package. So a simple test of if not product.simpleproduct.xml.config then it is a multiproduct.

    Thanks guys.
    =====
    Version (Code/DB): AspDotNetStorefront MSx 9.1.0.1/9.1.0.0
    Execution Mode: 64 Bit
    Dot Net Developments - E-commerce By Experience