Copied to clipboard

Flag this post as spam?

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


  • Trevor Loader 199 posts 256 karma points
    Nov 23, 2011 @ 00:05
    Trevor Loader
    0

    Changing country does not change GST

    Hi Anders,

    I'm using the Tea Commerce Starter Kit and have an issue when changing country, the Order details aren't reflecting the new VAT values at step 4 of the Cart.

    The setup is like this:

    The default country (New Zealand) has VAT of 15%.  Dumping the contents of order shows orderLines have correct VAT values (in xslt at step 1).

    At step 2, if I change the country to any other country (which is set up with GST rate of 0%), and proceed to step 3 I correctly see the shipping/payment options that are available for the new country only.

    However, proceeding to step 4, the VAT line appears showing 0% which is correct but there is old NZ VAT amount showing there!

    Dumping the contents of order in xslt at step 4 shows orderLines still have the NZ VAT amounts associated with them.

    Looking at the database, the TeaCommerce_Order table correctly shows VAT at 0.00.  However, looking at the TeaCommerce_OrderLine table for that order, the TransactionVAT amount is still 0.15.

    Is the TeaCommerce.setCurrentCountry correctly resetting the order and orderline VAT values or am I doing something wrong?

    Cheers, Trevor

  • Anders Burla 2560 posts 8256 karma points
    Nov 23, 2011 @ 18:14
    Anders Burla
    0

    Hi Trevor

    Have you looked at the "country specific VAT" tab for your countries. Any values in there for the "0 %" VAT group?

  • Trevor Loader 199 posts 256 karma points
    Nov 23, 2011 @ 19:58
    Trevor Loader
    0

    I've checked all that...I don't think that's the issue as the Order table does correctly go to 0 VAT....but the OrderLines table is still showing 15% VAT.  Weird.

  • Anders Burla 2560 posts 8256 karma points
    Nov 24, 2011 @ 00:39
    Anders Burla
    0

    Would it be possible to send me login to your umbraco installation so I can see how it is setup and how to regenerate the error. Then I can make a simular setup and debug at my place. You can mail us at info (at) teacommerce.dk

    Kind regards
    Anders

  • Trevor Loader 199 posts 256 karma points
    Nov 24, 2011 @ 20:38
    Trevor Loader
    0

    I got it working!

    If you set up a single VAT Group and change the country specific amounts (in this case NZ = 15%, every other country 0%) the cart is correct.

    What I did wrong I think was to set up two VAT Groups, one called 15% that only had NZ as 15% and everything else was left blank.  I had a second group called 0% that had every other country set to 0% and NZ blank.

    I had then set country, shipping and payment for each country set to one of the two VAT groups (NOT all the same VAT group).

    In my installation this caused issues.

    However, when I did a fresh install of the starter kit and changed the existing countries to have a similar setup - and it worked.  So I cannot replicate the issue in a fresh install.

    Sorry to waste your time Anders.  Cheers, Trevor.

  • Anders Burla 2560 posts 8256 karma points
    Nov 25, 2011 @ 08:43
    Anders Burla
    0

    Hi Trevor

    Glad you got it working! Your first setup - if you dont enter a VAT for a specific country it will inherit the one from the current VAT group - so 15% if its the 15% VAT group the current order is associated with.

    But looking forward to your your solution when it goes live - have a great day!

    Kind regards Anders

  • Anders Burla 2560 posts 8256 karma points
    Nov 25, 2011 @ 11:55
    Anders Burla
    0

    Hi Trevor - could you mark the right answer as a solution to your question - would help others to find the solution as easy as possible - thanks

Please Sign in or register to post replies

Write your reply to:

Draft