Copied to clipboard

Flag this post as spam?

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


  • Topic author was deleted

    Apr 05, 2015 @ 14:49

    VAT not being added to basket/orders

    I've configured my store with Global VAT of 20% and set the "IncludeVAT" setting to false (assuming this means that VAT is added at basket stage, not on displayed product prices).  However, when I add items to my basket and view the basket page, or place an order, VAT is not added at all.

    @orderline.Product.Price.WithoutVat.ToCurrencyString()

    and

    @orderline.Product.Price.WithVat.ToCurrencyString()

    display the same amount, and

    @basket.OrderAmount.Vat.ToCurrencyString()

    doesn't display anything (see image).

     

    Do I need to add some additional configuration to config files or similar?  Anyone got any ideas what might be causing my VAT not to show?

    I've also tried the starter kit and seem to have the same issue with that.

  • Casper Andersen 126 posts 508 karma points
    Jun 24, 2015 @ 13:25
    Casper Andersen
    1

    Did you actually set what the VAt ammount should be ? Each store can have a standard VAT ammount in % this needs to be defined

  • Comment author was deleted

    Jun 25, 2015 @ 15:51

    Thanks for the response.

    I'd already set a store VAT amount of 20%, but for some reason it wasn't being picked up. However, I added a second record to the "uWebshop Vat Picker" data type and then switched my "Global VAT" setting on my store a couple of times.

    This fixed the issue. I think what may have been happening is that because there was only a single available value in the data type, the "Global VAT" drop down wasn't actually picking up a changed value, so was assigned as empty?

  • Casper Andersen 126 posts 508 karma points
    Jul 01, 2015 @ 13:10
    Casper Andersen
    101

    Thanks for giving me the information, that works, also a nice little handy thing.

    A problem we had, was that if we set the OrderLineAmount.WithVat instead of the GrandTotal.WithVat, that worked fine, but as soon as we used the refresh button, it reverted back, this can be fixed by going to the scripts folder, and then the uWebshopStarterkit.js file and commenting out all the code inside the document ready function, this makes it so the refresh button has to postback the form everytime, and forces it to use your custom values.

    Also could you set this thread to solved so other people when they get here can quickly find the solution

  • Comment author was deleted

    Jul 02, 2015 @ 08:54

    Thanks Casper - commenting out the JS has actually been really helpful for tracking down another couple of issues as well.

  • Casper Andersen 126 posts 508 karma points
    Jul 02, 2015 @ 08:56
    Casper Andersen
    0

    Your most, welcome i am still hammering away at the shops final details, we are trying to use our custom payment provider called Curanet that opens a payment with JS and so on, but think i might soon have it solved, if you have any other problems please tell me, i think we can help eachother a lot.

Please Sign in or register to post replies

Write your reply to:

Draft