Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Mark 6 posts 28 karma points
    Jan 07, 2015 @ 16:14

    Vat added twice when adding to basket

    I've set up VAT @20% on the site, and debugged through a product page. product Price WithVat/ WithoutVat/ etc. all show correct values.

    However, I've ticked 'IncludingVat' in the uWebshop settings. When reading the product/ price out, it shows correctly (I entered 96, shows 80 and 16 for with/ vat)

    However, when I use the BasketHandler, passing the product id in, it adds VAT to the 96, giving 115 (approx). The BasketHandler doesn't seem to check the 'IncludingVat' setting at all.

    Is there anything different I should be doing, or is this a code issue?

  • Casper Andersen 126 posts 508 karma points
    Jul 02, 2015 @ 13:25
    Casper Andersen

    What i did was, i went into the backend files of the oderdetails.html and changed

    {{ CurrentOrder.ChargedOrderAmount.ToCurrencyString}}


    {{ (CurrentOrder.OrderLineTotal.WithVat.Value + CurrentOrder.ShippingProviderAmount.WithoutVat.Value)}}

    And since the AngularJS API and c# API have the same functionality with the same function names, this is possible to do in the other files aswell.

    Hope it helps


Please Sign in or register to post replies

Write your reply to: