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

Thread: Shopping Cart --> Tax Issue

  1. #1
    munishsehgal is offline Junior Member
    Join Date
    Jul 2011
    Posts
    2

    Default Shopping Cart --> Tax Issue

    Hi all,

    I am using this code in the page for viewing the order details to customer.

    Code:
    <div style="float:right; width: 125px; text-align: right; font-size: 16px;">
    				Tax: <%=Cart.TaxTotal(true).ToString("C")%><br />
                    Shipping: <%=Cart.ShippingTotal(true,true).ToString("C")%>
        </div>
    Where Cart is is object of current shopping Cart, But Cart.TotalTax() is not working I tried it in code behind file but still it's returning 0.


    I think there is an issue in aspdotnetstorefront dll that TotalTax() is returning 0 always, In database I have set 10% for a particular state but this value is not displaying over the .aspx page for that state.
    So please help me to resolve the issue as soon as possible.

    Thanks...

  2. #2
    webopius is offline Senior Member
    Join Date
    Nov 2008
    Location
    London, UK
    Posts
    440

    Default

    Hi

    Looking at my version of the v9 source code (which might be out of date), Cart.TaxTotal() doesn't take any parameters.

    Have you tried calling it without the 'true' param to see what it returns?

  3. #3
    munishsehgal is offline Junior Member
    Join Date
    Jul 2011
    Posts
    2

    Post

    Well I am using version 8.
    It has three overloaded methods for TaxTotal().

    TaxTotal(bool).
    TaxTotal(bool,decimal).
    TaxTotal(bool,decimal,bool).

    I tried all.